Commit a01efe7d by Dane Springmeyer

make sqlite3 library name configurable - enabling support for linking to sqlite3…

make sqlite3 library name configurable - enabling support for linking to sqlite3 variants like SQLCipher - refs #195
parent 2abb7697
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
"sqlite%":"internal", "sqlite%":"internal",
"module_name":"<!(node -e \"console.log(require('./package.json').binary.module_name)\")", "module_name":"<!(node -e \"console.log(require('./package.json').binary.module_name)\")",
"module_path":"<!(node -e \"console.log(require('./package.json').binary.module_path)\")", "module_path":"<!(node -e \"console.log(require('./package.json').binary.module_path)\")",
"sqlite_libname":"sqlite3"
}, },
"targets": [ "targets": [
{ {
...@@ -12,7 +13,7 @@ ...@@ -12,7 +13,7 @@
["sqlite != 'internal'", { ["sqlite != 'internal'", {
"libraries": [ "libraries": [
"-L<@(sqlite)/lib", "-L<@(sqlite)/lib",
"-lsqlite3" "-l<(sqlite_libname)"
], ],
"include_dirs": [ "<@(sqlite)/include" ], "include_dirs": [ "<@(sqlite)/include" ],
"conditions": [ [ "OS=='linux'", {"libraries+":["-Wl,-rpath=<@(sqlite)/lib"]} ] ] "conditions": [ [ "OS=='linux'", {"libraries+":["-Wl,-rpath=<@(sqlite)/lib"]} ] ]
......
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