2011-12-21 14:03:32 +08:00
|
|
|
{
|
|
|
|
'target_defaults': {
|
|
|
|
'type': 'loadable_module',
|
|
|
|
'product_extension': 'node',
|
2012-01-05 20:01:29 +08:00
|
|
|
'product_prefix': '',
|
2012-01-17 06:06:55 +08:00
|
|
|
'include_dirs': [
|
2012-03-06 04:21:16 +08:00
|
|
|
'<(node_root_dir)/src',
|
|
|
|
'<(node_root_dir)/deps/uv/include',
|
|
|
|
'<(node_root_dir)/deps/v8/include'
|
2012-01-17 06:06:55 +08:00
|
|
|
],
|
2011-12-21 14:03:32 +08:00
|
|
|
|
|
|
|
'conditions': [
|
|
|
|
[ 'OS=="mac"', {
|
2012-01-17 06:06:55 +08:00
|
|
|
'libraries': [ '-undefined dynamic_lookup' ],
|
2012-01-07 07:48:23 +08:00
|
|
|
}],
|
|
|
|
[ 'OS=="win"', {
|
|
|
|
'libraries': [ '-l<(node_root_dir)/$(Configuration)/node.lib' ],
|
2012-02-09 11:47:31 +08:00
|
|
|
}],
|
|
|
|
[ 'OS=="freebsd" or OS=="openbsd" or OS=="solaris" or (OS=="linux" and target_arch!="ia32")', {
|
|
|
|
'cflags': [ '-fPIC' ],
|
2011-12-21 14:03:32 +08:00
|
|
|
}]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|