This commit is contained in:
Siarhei Fedartsou 2022-11-10 21:08:29 +01:00
parent ac51de4075
commit 3ab5beeee8
2 changed files with 1 additions and 2 deletions

View File

@ -70,6 +70,7 @@
}, },
"main": "lib/index.js", "main": "lib/index.js",
"binary": { "binary": {
"napi_versions": [8],
"module_name": "node_osrm", "module_name": "node_osrm",
"module_path": "./lib/binding/", "module_path": "./lib/binding/",
"host": "https://github.com", "host": "https://github.com",

View File

@ -11,9 +11,7 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/node_modules/node-cmake")
message(STATUS "Configuring node_osrm bindings for NodeJs ${NODEJS_VERSION}") message(STATUS "Configuring node_osrm bindings for NodeJs ${NODEJS_VERSION}")
add_definitions(-DNAPI_VERSION=8) add_definitions(-DNAPI_VERSION=8)
#message(FATAL_ERROR "HELLO ${CMAKE_CURRENT_SOURCE_DIR}/../../node_modules/node-addon-api/")
include_directories(SYSTEM ${CMAKE_JS_INC}) include_directories(SYSTEM ${CMAKE_JS_INC})
include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/../../node_modules/node-addon-api/)
add_library(node_osrm SHARED node_osrm.cpp) add_library(node_osrm SHARED node_osrm.cpp)
set_target_properties(node_osrm PROPERTIES PREFIX "" SUFFIX ".node") set_target_properties(node_osrm PROPERTIES PREFIX "" SUFFIX ".node")