53 lines
1.3 KiB
Python
53 lines
1.3 KiB
Python
{
|
|
"includes": [ "deps/common-sqlite.gypi" ],
|
|
"variables": {
|
|
"sqlite%":"internal",
|
|
"sqlite_libname%":"sqlite3"
|
|
},
|
|
"targets": [
|
|
{
|
|
"target_name": "<(module_name)",
|
|
"include_dirs": ["<!(node -e \"require('nan')\")"],
|
|
"conditions": [
|
|
["sqlite != 'internal'", {
|
|
"include_dirs": [ "<(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": [
|
|
"deps/sqlite3.gyp:sqlite3"
|
|
]
|
|
}
|
|
]
|
|
],
|
|
"sources": [
|
|
"src/database.cc",
|
|
"src/node_sqlite3.cc",
|
|
"src/statement.cc"
|
|
]
|
|
},
|
|
{
|
|
"target_name": "action_after_build",
|
|
"type": "none",
|
|
"dependencies": [ "<(module_name)" ],
|
|
"copies": [
|
|
{
|
|
"files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
|
|
"destination": "<(module_path)"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|