2012-08-15 11:27:28 +08:00
|
|
|
{
|
|
|
|
'target_defaults': {
|
|
|
|
'type': 'loadable_module',
|
|
|
|
'product_prefix': '',
|
|
|
|
'include_dirs': [
|
|
|
|
'<(node_root_dir)/src',
|
|
|
|
'<(node_root_dir)/deps/uv/include',
|
|
|
|
'<(node_root_dir)/deps/v8/include'
|
|
|
|
],
|
|
|
|
|
2012-10-24 02:34:46 +08:00
|
|
|
'target_conditions': [
|
|
|
|
['_type=="loadable_module"', {
|
|
|
|
'product_extension': 'node',
|
2012-12-13 06:41:28 +08:00
|
|
|
'defines': [ 'BUILDING_NODE_EXTENSION' ],
|
2013-03-29 02:35:12 +08:00
|
|
|
}],
|
|
|
|
['_type=="static_library"', {
|
|
|
|
# set to `1` to *disable* the -T thin archive 'ld' flag.
|
|
|
|
# older linkers don't support this flag.
|
|
|
|
'standalone_static_library': '<(standalone_static_library)'
|
|
|
|
}],
|
2012-10-24 02:34:46 +08:00
|
|
|
],
|
|
|
|
|
2012-08-15 11:27:28 +08:00
|
|
|
'conditions': [
|
|
|
|
[ 'OS=="mac"', {
|
2013-01-25 01:06:31 +08:00
|
|
|
'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ],
|
2012-08-15 11:27:28 +08:00
|
|
|
'libraries': [ '-undefined dynamic_lookup' ],
|
2012-10-24 02:34:46 +08:00
|
|
|
'xcode_settings': {
|
2012-12-22 00:42:29 +08:00
|
|
|
'DYLIB_INSTALL_NAME_BASE': '@rpath'
|
2012-10-24 02:34:46 +08:00
|
|
|
},
|
2012-08-15 11:27:28 +08:00
|
|
|
}],
|
|
|
|
[ 'OS=="win"', {
|
2013-08-16 23:19:31 +08:00
|
|
|
'libraries': [
|
|
|
|
'-lkernel32.lib',
|
|
|
|
'-luser32.lib',
|
|
|
|
'-lgdi32.lib',
|
|
|
|
'-lwinspool.lib',
|
|
|
|
'-lcomdlg32.lib',
|
|
|
|
'-ladvapi32.lib',
|
|
|
|
'-lshell32.lib',
|
|
|
|
'-lole32.lib',
|
|
|
|
'-loleaut32.lib',
|
|
|
|
'-luuid.lib',
|
|
|
|
'-lodbc32.lib',
|
|
|
|
'-lDelayImp.lib',
|
2014-03-20 00:25:40 +08:00
|
|
|
'-l"<(node_root_dir)/$(ConfigurationName)/node.lib"'
|
2013-08-16 23:19:31 +08:00
|
|
|
],
|
2012-08-22 06:29:03 +08:00
|
|
|
# warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>'
|
|
|
|
# needs to have dll-interface to be used by clients of class 'node::ObjectWrap'
|
|
|
|
'msvs_disabled_warnings': [ 4251 ],
|
2013-01-25 01:06:31 +08:00
|
|
|
}, {
|
|
|
|
# OS!="win"
|
|
|
|
'defines': [ '_LARGEFILE_SOURCE', '_FILE_OFFSET_BITS=64' ],
|
2012-08-15 11:27:28 +08:00
|
|
|
}],
|
|
|
|
[ 'OS=="freebsd" or OS=="openbsd" or OS=="solaris" or (OS=="linux" and target_arch!="ia32")', {
|
|
|
|
'cflags': [ '-fPIC' ],
|
|
|
|
}]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|