2014-11-03 10:59:34 -05:00
|
|
|
{
|
|
|
|
"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'", {
|
2014-11-25 14:23:08 -05:00
|
|
|
"include_dirs": [ "<(sqlite)/include" ],
|
2014-11-03 10:59:34 -05:00
|
|
|
"libraries": [
|
|
|
|
"-l<(sqlite_libname)"
|
|
|
|
],
|
|
|
|
"conditions": [ [ "OS=='linux'", {"libraries+":["-Wl,-rpath=<@(sqlite)/lib"]} ] ],
|
|
|
|
"conditions": [ [ "OS!='win'", {"libraries+":["-L<@(sqlite)/lib"]} ] ],
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'AdditionalLibraryDirectories': [
|
2014-11-25 14:23:08 -05:00
|
|
|
'<(sqlite)/lib'
|
2014-11-03 10:59:34 -05:00
|
|
|
],
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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)"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|