Merge remote-tracking branch 'ry/v0.8'
[platform/upstream/nodejs.git] / deps / npm / node_modules / node-gyp / addon.gypi
1 {
2   'target_defaults': {
3     'type': 'loadable_module',
4     'product_prefix': '',
5     'include_dirs': [
6       '<(node_root_dir)/src',
7       '<(node_root_dir)/deps/uv/include',
8       '<(node_root_dir)/deps/v8/include'
9     ],
10
11     'target_conditions': [
12       ['_type=="loadable_module"', {
13         'product_extension': 'node',
14       }]
15     ],
16
17     'conditions': [
18       [ 'OS=="mac"', {
19         'libraries': [ '-undefined dynamic_lookup' ],
20         'xcode_settings': {
21           'DYLIB_INSTALL_NAME_BASE': '@loader_path'
22         },
23       }],
24       [ 'OS=="win"', {
25         'libraries': [ '-l<(node_root_dir)/$(Configuration)/node.lib' ],
26         # warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>'
27         # needs to have dll-interface to be used by clients of class 'node::ObjectWrap'
28         'msvs_disabled_warnings': [ 4251 ],
29       }],
30       [ 'OS=="freebsd" or OS=="openbsd" or OS=="solaris" or (OS=="linux" and target_arch!="ia32")', {
31         'cflags': [ '-fPIC' ],
32       }]
33     ]
34   }
35 }