Skip to content

QuickJS C Bridge for windows/linux/openharmony

Notifications You must be signed in to change notification settings

yeliulee/quickjs-c-bridge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Desktop bridges for quickjs

Generates shared binaries libraries to be consumed by flutter_js on desktop platforms.

Windows

  • Creating Ninja Structure

Run in Developer Command Prompt for VS2019 in this project rootFolder:

First, prepare to target x64:

"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64

Now generate the Ninja project:

Release

cmake -S .\windows -B build\windows -DCMAKE_BUILD_TYPE=Release -G "Ninja"

or

Debug

cmake -S .\windows -B build\windows -G "Ninja"

Now compile using the ninja project generated:

cmake --build .\build\windows

How to see symbols exported from a dll

dumpbin.exe /exports build/windows/quickjs_c_bridge.dll

Linux

At the project root directory, run:

cmake -S ./linux -B ./build/linux

now build the library executing the command bellow:

cmake --build build/linux

OpenHarmony

At the project root directory, run:

cmake -S ./ohos -B ./build/ohos -DOHOS_STL=c++_shared -DOHOS_ARCH=arm64-v8a -DOHOS_PLATFORM=OHOS -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/path/to/native/build/cmake/ohos.toolchain.cmake

now build the library executing the command bellow:

cmake --build build/ohos

Windows References

References

https://github.com/jerson/flutter-openpgp/blob/master/scripts/upgrade_bridge_libs.sh https://github.com/jerson?tab=repositories

https://github.com/jerson/flutter-rsa

https://github.com/jerson/openpgp-mobile/tree/master/proto

https://github.com/jerson/rsa-mobile/blob/master/Makefile

https://github.com/onelson/jq-rs

https://github.com/onelson/jq-sys

https://github.com/stedolan/jq

https://github.com/itchyny/gojq

About

QuickJS C Bridge for windows/linux/openharmony

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.0%
  • Other 1.0%