Commit 82f63cb4 by Nathan Rajlich

Prepare the bindings.gyp file.

parent 7ef826c1
{
'targets': [
{
'target_name': 'node_sqlite3',
'sources': [
'src/database.cc',
'src/node_sqlite3.cc',
'src/statement.cc'
],
'dependencies': [
'deps/sqlite3/sqlite3.gyp:sqlite3'
]
}
]
}
{
'variables': {
'node_module_sources': [
"src/database.cc",
"src/node_sqlite3.cc",
"src/statement.cc",
"deps/sqlite3/sqlite3.c"
],
'node_root': '/usr/local',
'node_root_win': 'c:\\node',
},
'targets': [
{
'target_name': 'node_sqlite3',
'product_name': 'node_sqlite3',
'type': 'loadable_module',
'product_prefix': '',
'product_extension':'node',
'sources': [
'<@(node_module_sources)',
],
'defines': [
'PLATFORM="<(OS)"',
'_LARGEFILE_SOURCE',
'_FILE_OFFSET_BITS=64',
],
'conditions': [
[ 'OS=="mac"', {
'libraries': [
'-undefined dynamic_lookup'
],
'include_dirs': [
'src/',
'<@(node_root)/include/node',
'<@(node_root)/include',
],
}],
[ 'OS=="win"', {
'defines': [
'PLATFORM="win32"',
'_LARGEFILE_SOURCE',
'_FILE_OFFSET_BITS=64',
'_WINDOWS',
'BUILDING_NODE_EXTENSION'
],
'libraries': [
'node.lib',
],
'include_dirs': [
'deps\\sqlite3\\',
'<@(node_root_win)\\deps\\v8\\include',
'<@(node_root_win)\\src',
'<@(node_root_win)\\deps\\uv\\include',
],
'msvs_settings': {
'VCLinkerTool': {
'AdditionalLibraryDirectories': [
'<@(node_root_win)\\Release\\lib',
'<@(node_root_win)\\Release',
],
},
},
},
], # windows
] # condition
}, # targets
],
}
\ No newline at end of file
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