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' ],
|
2012-10-24 02:34:46 +08:00
|
|
|
}]
|
|
|
|
],
|
|
|
|
|
2012-08-15 11:27:28 +08:00
|
|
|
'conditions': [
|
|
|
|
[ 'OS=="mac"', {
|
|
|
|
'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"', {
|
|
|
|
'libraries': [ '-l<(node_root_dir)/$(Configuration)/node.lib' ],
|
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 ],
|
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' ],
|
|
|
|
}]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|