wip
This commit is contained in:
parent
73fb77e8d4
commit
58081a3d9b
2
.gitignore
vendored
2
.gitignore
vendored
@ -104,4 +104,4 @@ node_modules
|
||||
debug.lua
|
||||
|
||||
# node-osrm artifacts
|
||||
lib/binding
|
||||
lib/binding_napi_v8
|
||||
|
||||
@ -72,7 +72,7 @@
|
||||
"binary": {
|
||||
"napi_versions": [8],
|
||||
"module_name": "node_osrm",
|
||||
"module_path": "./lib/binding_napi_{napi_build_version}/",
|
||||
"module_path": "./lib/binding_napi_v{napi_build_version}/",
|
||||
"host": "https://github.com",
|
||||
"remote_path": "./Project-OSRM/osrm-backend/releases/download/v{version}/",
|
||||
"package_name": "{module_name}-v{version}-{node_abi}-{napi_build_version}-{platform}-{arch}-{configuration}.tar.gz"
|
||||
|
||||
@ -4,7 +4,10 @@ cmake_minimum_required(VERSION 3.1)
|
||||
|
||||
message(STATUS "Building node_osrm")
|
||||
|
||||
set(BINDING_DIR "${PROJECT_SOURCE_DIR}/lib/binding")
|
||||
set(NAPI_VERSION 8)
|
||||
add_definitions(-DNAPI_VERSION=${NAPI_VERSION})
|
||||
|
||||
set(BINDING_DIR "${PROJECT_SOURCE_DIR}/lib/binding_napi_v${NAPI_VERSION}")
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/node_modules/node-cmake")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user