@auto_js/napi_exports 0.0.7 → 0.0.8
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 +1 -0
- package/js_native_api.cc +1 -0
- package/js_native_api_types.cc +1 -1
- package/napi_js/extern.h +10 -0
- package/node_api.cc +1 -0
- package/package.json +1 -1
- package/uv.cc +1 -1
- /package/{version.h → napi_js/version.h} +0 -0
package/CMakeLists.txt
CHANGED
|
@@ -52,6 +52,7 @@ endif()
|
|
|
52
52
|
message(STATUS "Using Node.js headers from '${NODE_DIST_DIR}'")
|
|
53
53
|
|
|
54
54
|
# Configuration
|
|
55
|
+
target_include_directories(nodejs SYSTEM PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
55
56
|
target_include_directories(nodejs SYSTEM PUBLIC "${NODE_DIST_DIR}/include/node")
|
|
56
57
|
if(WIN32)
|
|
57
58
|
if(EXISTS "${NODE_DIST_DIR}/win-${NODE_ARCH}/node.lib")
|
package/js_native_api.cc
CHANGED
package/js_native_api_types.cc
CHANGED
package/napi_js/extern.h
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#if __linux__
|
|
2
|
+
#define NAPI_EXTERN __attribute__((weak))
|
|
3
|
+
#elif __APPLE__
|
|
4
|
+
#define NAPI_EXTERN __attribute__((weak))
|
|
5
|
+
#elif _WIN64
|
|
6
|
+
#define NAPI_EXTERN __declspec(dllimport) __attribute__((weak))
|
|
7
|
+
#else
|
|
8
|
+
#define NAPI_EXTERN
|
|
9
|
+
#endif
|
|
10
|
+
#define UV_EXTERN NAPI_EXTERN
|
package/node_api.cc
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auto_js/napi_exports",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "C++ module exports for nodejs & n-api",
|
|
5
5
|
"author": "https://github.com/laverdet/",
|
|
6
6
|
"homepage": "https://github.com/laverdet/isolated-vm/tree/experimental/packages/third_party/nodejs",
|
package/uv.cc
CHANGED
|
File without changes
|