-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert to use cmake-js and pkg-prebuilds #31
Conversation
Note: I still need to take a look at how to best work with #30. |
package.json
Outdated
"test": "node --napi-modules test/test_binding.js" | ||
"install": "pkg-prebuilds-verify binding-options.cjs || npm run build", | ||
"build": "node scripts/download-CanBridge.mjs && cmake-js compile && tsc", | ||
"prepublishOnly": "npm run build && pkg-prebuilds-copy --baseDir build/Release --source node_canbridge.node --name node_canbridge --napi_version=8", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other platforms besides windows need baseDir set to build, if I imagine correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/Julusian/node-jpeg-turbo/blob/main/.github/workflows/node.yaml always uses build/Release
…an-bridge into refactor/use-cmake-js
Please update the lockfile |
CMake has much better IDE support (allowing for development in VSCode and CLion). WPILib is also looking at moving C builds to CMake, so using it here may make pulling CANBridge and WPILib easier in the future.