abner / quickjs-c-bridge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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


Languages

Language:C 99.0%Language:C++ 0.8%Language:CMake 0.1%Language:Makefile 0.0%