Skip to content
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

Merged
merged 18 commits into from
Oct 2, 2024
Merged

Conversation

LandryNorris
Copy link
Contributor

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.

@LandryNorris LandryNorris requested a review from ItsHarper October 2, 2024 19:19
@LandryNorris
Copy link
Contributor Author

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",
Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package.json Show resolved Hide resolved
@ItsHarper
Copy link
Contributor

Please update the lockfile

@LandryNorris LandryNorris merged commit af3ee03 into main Oct 2, 2024
@LandryNorris LandryNorris deleted the refactor/use-cmake-js branch October 2, 2024 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants