mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-30 16:25:57 +00:00
* simplex-chat-nodejs: adjust binding.gyp for windows * simplex-chat-nodejs: different library linkage for windows * simplex-chat-nodejs: remove non-moving GC in Windows "non-moving GC is broken on windows with GHC 9.4-9.6.3" from: https://github.com/simplex-chat/simplex-chat/blob/master/apps/multiplatform/common/src/commonMain/cpp/desktop/simplex-api.c#L11-L17 * ci: add windows to release-nodejs-libs * simplex-chat-nodejs: same curl flags for dll.def download
51 lines
1.2 KiB
Python
51 lines
1.2 KiB
Python
{
|
|
"targets": [
|
|
{
|
|
"target_name": "simplex",
|
|
"sources": [ "cpp/simplex.cc" ],
|
|
"include_dirs": [
|
|
"<!@(node -p \"require('node-addon-api').include\")"
|
|
],
|
|
"dependencies": [
|
|
"<!(node -p \"require('node-addon-api').gyp\")"
|
|
],
|
|
"cflags!": [ "-fno-exceptions" ],
|
|
"cflags_cc!": [ "-fno-exceptions" ],
|
|
"defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ],
|
|
"conditions": [
|
|
["OS=='mac'", {
|
|
"libraries": [
|
|
"-L<(module_root_dir)/libs",
|
|
"-lsimplex"
|
|
],
|
|
"xcode_settings": {
|
|
"OTHER_LDFLAGS": [
|
|
"-Wl,-rpath,@loader_path/../../libs"
|
|
]
|
|
}
|
|
}],
|
|
["OS=='linux'", {
|
|
"libraries": [
|
|
"-L<(module_root_dir)/libs",
|
|
"-lsimplex"
|
|
],
|
|
"ldflags": [
|
|
"-Wl,-rpath,'$$ORIGIN'/../../libs"
|
|
]
|
|
}],
|
|
["OS=='win'", {
|
|
"libraries": [
|
|
"<(module_root_dir)/libs/libsimplex.lib"
|
|
],
|
|
"copies": [{
|
|
"destination": "<(PRODUCT_DIR)",
|
|
"files": [
|
|
"<(module_root_dir)/libs/*"
|
|
]
|
|
}]
|
|
}]
|
|
]
|
|
}
|
|
]
|
|
}
|