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