add port node and call for help #37667
Draft
+272
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background:
Node.js provides several C++ APIs that can be used to execute JavaScript in a Node.js environment from other C++ software. but there is no embedded lib release for use out of the box.
This port hopes to add a node port, which will provide a node package, including:
Tips:
This pull request is just a draft, the purpose is to depict a prototype for more people to participate in the future, it may not even be able to run at all, I need help:)
I have manually compiled and used libnode on both windows and linux, there is no problem, I have been a node runtime guy in the fast two months.
If we can make libnode the official port of vcpkg, the use of it will be very easy.
Others
Yes
TBD, as it's WIP
Embeded Node related refs:
#23027
nodejs/node#51824
https://nodejs.org/api/embedding.html
https://v8.dev/docs/embed
Vcpkg refs:
https://decovar.dev/blog/2022/10/30/cpp-dependencies-with-vcpkg/
https://github.com/boostcon/cppnow_presentations_2017/blob/master/05-19-2017_friday/effective_cmake__daniel_pfeifer__cppnow_05-19-2017.pdf
https://www.youtube.com/watch?v=bsXLMQ6WgIk&t=2937s&ab_channel=CppNow (_find_package trick here)
https://learn.microsoft.com/en-us/vcpkg/concepts/overlay-ports
https://learn.microsoft.com/en-us/vcpkg/contributing/maintainer-guide
https://learn.microsoft.com/en-us/vcpkg/get_started/get-started-packaging
https://learn.microsoft.com/en-us/vcpkg/get_started/get-started-adding-to-registry
https://learn.microsoft.com/en-us/vcpkg/maintainers/functions/vcpkg_check_features
https://learn.microsoft.com/en-us/vcpkg/maintainers/variables
https://crascit.com/2018/09/14/do-not-redefine-cmake-commands/
Other refs:
nodejs/node#52126