Commit ae5a67db by chuxuewen

delete node-gyp-pre

parent 918052b5
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
}, },
"targets": [ "targets": [
{ {
"target_name": "<(module_name)", "target_name": "node-sqlite3",
"cflags!": [ "-fno-exceptions" ], "cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ], "cflags_cc!": [ "-fno-exceptions" ],
"xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES", "xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
...@@ -18,30 +18,9 @@ ...@@ -18,30 +18,9 @@
}, },
"include_dirs": [ "include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"], "<!@(node -p \"require('node-addon-api').include\")"],
"conditions": [
["sqlite != 'internal'", {
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")", "<(sqlite)/include" ],
"libraries": [
"-l<(sqlite_libname)"
],
"conditions": [ [ "OS=='linux'", {"libraries+":["-Wl,-rpath=<@(sqlite)/lib"]} ] ],
"conditions": [ [ "OS!='win'", {"libraries+":["-L<@(sqlite)/lib"]} ] ],
'msvs_settings': {
'VCLinkerTool': {
'AdditionalLibraryDirectories': [
'<(sqlite)/lib'
],
},
}
},
{
"dependencies": [ "dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")", "<!(node -p \"require('node-addon-api').gyp\")",
"deps/sqlite3.gyp:sqlite3" "deps/sqlite3.gyp:sqlite3"
]
}
]
], ],
"sources": [ "sources": [
"src/backup.cc", "src/backup.cc",
...@@ -51,16 +30,5 @@ ...@@ -51,16 +30,5 @@
], ],
"defines": [ "NAPI_VERSION=<(napi_build_version)", "NAPI_DISABLE_CPP_EXCEPTIONS=1" ] "defines": [ "NAPI_VERSION=<(napi_build_version)", "NAPI_DISABLE_CPP_EXCEPTIONS=1" ]
}, },
{
"target_name": "action_after_build",
"type": "none",
"dependencies": [ "<(module_name)" ],
"copies": [
{
"files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
"destination": "<(module_path)"
}
]
}
] ]
} }
var path = require('path'); var path = require('path');
var sqlite3 = require('./sqlite3-binding.js'); // var sqlite3 = require('./sqlite3-binding.js');
var sqlite3 = require('../build/Release/node-sqlite3');
var EventEmitter = require('events').EventEmitter; var EventEmitter = require('events').EventEmitter;
module.exports = exports = sqlite3; module.exports = exports = sqlite3;
......
...@@ -40,8 +40,7 @@ ...@@ -40,8 +40,7 @@
"url": "git://github.com/mapbox/node-sqlite3.git" "url": "git://github.com/mapbox/node-sqlite3.git"
}, },
"dependencies": { "dependencies": {
"node-addon-api": "^4.2.0", "node-addon-api": "^4.2.0"
"@mapbox/node-pre-gyp": "^1.0.0"
}, },
"devDependencies": { "devDependencies": {
"@mapbox/cloudfriend": "^1.9.0", "@mapbox/cloudfriend": "^1.9.0",
...@@ -61,7 +60,6 @@ ...@@ -61,7 +60,6 @@
"node-gyp": "7.x" "node-gyp": "7.x"
}, },
"scripts": { "scripts": {
"install": "node-pre-gyp install --fallback-to-build",
"pretest": "node test/support/createdb.js", "pretest": "node test/support/createdb.js",
"test": "mocha -R spec --timeout 480000", "test": "mocha -R spec --timeout 480000",
"pack": "node-pre-gyp package" "pack": "node-pre-gyp package"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment