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 11
11
},
12
12
"scripts" : {
13
13
"copy-examples" : " tsx scripts/copy-examples.mts" ,
14
- "gyp-to-cmake" : " gyp-to-cmake ." ,
14
+ "gyp-to-cmake" : " gyp-to-cmake --weak-node-api ." ,
15
15
"build" : " tsx scripts/build-examples.mts" ,
16
16
"copy-and-build" : " node --run copy-examples && node --run gyp-to-cmake && node --run build" ,
17
17
"verify" : " tsx scripts/verify-prebuilds.mts" ,
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.15...3.31)
2
2
project (tests-async)
3
3
4
+
4
5
include (${WEAK_NODE_API_CONFIG} )
5
6
6
7
add_library (addon SHARED addon.c)
7
8
target_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 1
1
cmake_minimum_required (VERSION 3.15...3.31)
2
2
project (tests-buffers)
3
3
4
+
4
5
include (${WEAK_NODE_API_CONFIG} )
5
6
6
7
add_library (addon SHARED addon.c)
7
8
target_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