Comments (2)
../pkg/lib/libpulsarwithdeps.a
is have, it is x86_64 static library that I compiled through it.
This is my binding.gyp
configuration:
binding.gyp
{
'conditions': [
['OS=="win"', {
'variables': {
'os_arch%': '<!(echo %OS_ARCH%)',
}
}],
],
"targets": [
{
"target_name": "Pulsar",
"cflags_cc": ["-std=gnu++11"],
"cflags!": ["-fno-exceptions"],
"cflags_cc!": ["-fno-exceptions", "-std=gnu++14", "-std=gnu++17"],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
],
"defines": ["NAPI_VERSION=4"],
"sources": [
"src/addon.cc",
"src/Message.cc",
"src/MessageId.cc",
"src/Authentication.cc",
"src/Client.cc",
"src/SchemaInfo.cc",
"src/Producer.cc",
"src/ProducerConfig.cc",
"src/Consumer.cc",
"src/ConsumerConfig.cc",
"src/Reader.cc",
"src/ReaderConfig.cc",
"src/ThreadSafeDeferred.cc"
],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'GCC_ENABLE_CPP_RTTI': 'YES',
'MACOSX_DEPLOYMENT_TARGET': '11.0',
'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++11',
'OTHER_CFLAGS': [
"-fPIC",
]
},
"dependencies": [
"<!@(node -p \"require('node-addon-api').gyp\")"
],
"include_dirs": [
"pkg/mac/build-pulsar/install/include"
],
}],
['OS=="win"', {
"defines": [
"_HAS_EXCEPTIONS=1"
],
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": 1
},
},
"include_dirs": [
"<(pulsar_cpp_dir)\include",
],
"libraries": [
"-l<(pulsar_cpp_dir)\\lib\Release\pulsar.lib"
],
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
],
"copies": [
{
"destination": "<(PRODUCT_DIR)",
"files": [
"<(pulsar_cpp_dir)\\lib\Release\pulsar.dll",
"<(pulsar_cpp_dir)\\vcpkg_installed\\<(os_arch)\\bin\libcurl.dll",
"<(pulsar_cpp_dir)\\vcpkg_installed\\<(os_arch)\\bin\libprotobuf.dll",
"<(pulsar_cpp_dir)\\vcpkg_installed\\<(os_arch)\\bin\libssl-1_1-x64.dll",
"<(pulsar_cpp_dir)\\vcpkg_installed\\<(os_arch)\\bin\libcrypto-1_1-x64.dll",
"<(pulsar_cpp_dir)\\vcpkg_installed\\<(os_arch)\\bin\dl.dll",
"<(pulsar_cpp_dir)\\vcpkg_installed\\<(os_arch)\\bin\snappy.dll",
"<(pulsar_cpp_dir)\\vcpkg_installed\\<(os_arch)\\bin\zlib1.dll",
"<(pulsar_cpp_dir)\\vcpkg_installed\\<(os_arch)\\bin\zstd.dll",
]
}
]
}, { # 'OS!="win"'
"dependencies": [
"<!@(node -p \"require('node-addon-api').gyp\")"
],
"libraries": [
"../pkg/lib/libpulsarwithdeps.a"
],
}]
]
},
{
"target_name": "action_after_build",
"type": "none",
"dependencies": [ "<(module_name)" ],
"copies": [
{
"files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
"destination": "<(module_path)"
}
]
}
]
}
from node-pre-gyp.
cclauss
commented on September 17, 2024
For support of Node.js > v17, see the workaround:
from node-pre-gyp.
Related Issues (20)
-
Security: reject 3rd unsigned party binaries
-
How to build for all available platforms?
HOT 1
-
Vulnerability warning due to make-dir version
HOT 7
-
replace `rimraf` with native rm
-
Getting error: @mapbox/node-pre-gyp/.github/workflows/codeql.yml: special characters are not allowed
-
I am getting error while working with Nextjs app directory - error ./node_modules/@mapbox/node-pre-gyp/lib/clean.js:8:0 Module not found: Can't resolve 'fs' Import trace for requested module: ./node_modules/@mapbox/node-pre-gyp/lib/ sync ^\.\/.*$ ./node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js ./node_modules/argon2/argon2.js ./node_modules/next-auth-sanity/credentials.js ./node_modules/next-auth-sanity/index.js ./src/lib/auth.ts ./src/lib/index.ts ./src/app/upload/page.tsx
HOT 4
-
Upgrade to semver > 7.5.2
HOT 1
-
Security issue in node-fetch < 2.7.0
-
pos
-
Allow forcing local build with environment variables
-
Vulnerability in inflight
HOT 5
-
Error: Unsupported target versions: Node.js > v17
HOT 2
-
mapbox / node-pre-gyp
HOT 1
-
Error: spawn EINVAL on Windows
-
security vulnerability in tar v6.1.11
HOT 1
-
`README.md` has a broken `Build Status` link
HOT 1
-
Migrate AWS SDK for JavaScript v2 APIs to v3
-
Needed: A GitHub Action to package and publish a new version
HOT 6
-
DEP0155 and DEP0156 warnings during build
HOT 1
-
Depreciation warnings for dependencies during installation
HOT 2
Recommend Projects
-
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
-
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
-
from node-pre-gyp.