File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
packages/node-addon-examples Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1111 },
1212 "scripts" : {
1313 "copy-examples" : " tsx scripts/copy-examples.mts" ,
14- "gyp-to-cmake" : " gyp-to-cmake ." ,
14+ "gyp-to-cmake" : " gyp-to-cmake --weak-node-api ." ,
1515 "build" : " tsx scripts/build-examples.mts" ,
1616 "copy-and-build" : " node --run copy-examples && node --run gyp-to-cmake && node --run build" ,
1717 "verify" : " tsx scripts/verify-prebuilds.mts" ,
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.15...3.31)
22project (tests-async)
33
4+
45include (${WEAK_NODE_API_CONFIG} )
56
67add_library (addon SHARED addon.c)
78target_link_libraries (addon PRIVATE weak-node-api)
8- target_compile_features (addon PRIVATE cxx_std_20)
9+ set_target_properties (addon PROPERTIES PREFIX "" SUFFIX ".node" )
10+ target_compile_features (addon PRIVATE cxx_std_17)
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.15...3.31)
22project (tests-buffers)
33
4+
45include (${WEAK_NODE_API_CONFIG} )
56
67add_library (addon SHARED addon.c)
78target_link_libraries (addon PRIVATE weak-node-api)
8- target_compile_features (addon PRIVATE cxx_std_20)
9+ set_target_properties (addon PROPERTIES PREFIX "" SUFFIX ".node" )
10+ target_compile_features (addon PRIVATE cxx_std_17)
You can’t perform that action at this time.
0 commit comments