mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-27 13:39:28 +00:00
* core: add chat_migrate_init_queue FFI export * bots: fix BadgeServiceErrorCode API type * nodejs: pass required command fields * nodejs: fix migration error types * nodejs: install libsimplex from SIMPLEX_LIBS_DIR * nodejs: add queue size option * nodejs: regenerate docs * python: add queue size option * bots: pass incognito in APIConnect * nodejs: accept documented success responses * python: accept documented success responses * nodejs: dispatch each bot message once * nodejs: fix startChat events loop lifecycle * nodejs, python: parse multi-line bot commands * nodejs: fix file buffer handling in addon * nodejs: keep events loop when chat stop fails * python: fix send_and_wait race, load lib off loop * python: make queue size export optional * nodejs: receive events on a dedicated thread * nodejs: release haskell thread after receive * python: receive on a dedicated thread per chat * python: test receive shutdown order * nodejs: one receive thread per chat controller * nodejs: harden receiver shutdown and tests * nodejs: stop chat before closing store * python: stop chat before closing store * nodejs, python: harden close regression and retry * python: free results with ucrt on windows * nodejs: enable c++ exceptions on mac and windows
53 lines
1.3 KiB
Python
53 lines
1.3 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" ],
|
|
"xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES" },
|
|
"msvs_settings": { "VCCLCompilerTool": { "ExceptionHandling": 1 } },
|
|
"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/*"
|
|
]
|
|
}]
|
|
}]
|
|
]
|
|
}
|
|
]
|
|
}
|