@auto_js/napi 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CMakeLists.txt +12 -7
- package/package.json +4 -4
package/CMakeLists.txt
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
# Locate dependencies (napi_exports is always `nodejs`)
|
|
2
|
+
find_package_from_npm(@auto_js/js AS @auto_js/${AUTO_JS_PREFIX}js PROPAGATE auto_js)
|
|
2
3
|
find_package_from_npm(@auto_js/napi_exports)
|
|
3
|
-
find_package_from_npm(@auto_js/v8_exports)
|
|
4
|
+
find_package_from_npm(@auto_js/v8_exports PROPAGATE google_v8)
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
# Initialize target [napi_js or napi_isolated_js]
|
|
7
|
+
set(napi_js ${AUTO_JS_PREFIX}napi_js)
|
|
8
|
+
add_library(${napi_js} STATIC)
|
|
9
|
+
set_npm_package_properties(@auto_js/napi auto_js napi_js)
|
|
10
|
+
target_compile_features(${napi_js} PUBLIC cxx_std_23)
|
|
11
|
+
target_include_directories(${napi_js} INTERFACE include)
|
|
12
|
+
target_link_libraries(${napi_js} PRIVATE ${auto_js} ${google_v8} utility_js)
|
|
13
|
+
target_link_libraries(${napi_js} PUBLIC nodejs)
|
|
9
14
|
|
|
10
|
-
target_sources(napi_js
|
|
15
|
+
target_sources(${napi_js}
|
|
11
16
|
PRIVATE
|
|
12
17
|
api/uv_dlib.cc
|
|
13
18
|
api/uv_scheduler.cc
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auto_js/napi",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"author": "https://github.com/laverdet/",
|
|
5
5
|
"description": "Automatic JavaScript to N-API bindings",
|
|
6
6
|
"homepage": "https://github.com/laverdet/isolated-vm/tree/experimental/packages/auto_js/napi",
|
|
7
7
|
"license": "ISC",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@auto_js/
|
|
10
|
-
"@auto_js/
|
|
11
|
-
"@auto_js/
|
|
9
|
+
"@auto_js/js": "^0.0.6",
|
|
10
|
+
"@auto_js/napi_exports": "^0.0.6",
|
|
11
|
+
"@auto_js/v8_exports": "^0.0.4"
|
|
12
12
|
},
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|