deps: make node-gyp work with io.js
[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         'defines': [ 'BUILDING_NODE_EXTENSION' ],
15       }],
16       ['_type=="static_library"', {
17         # set to `1` to *disable* the -T thin archive 'ld' flag.
18         # older linkers don't support this flag.
19         'standalone_static_library': '<(standalone_static_library)'
20       }],
21     ],
22
23     'conditions': [
24       [ 'OS=="mac"', {
25         'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ],
26         'libraries': [ '-undefined dynamic_lookup' ],
27         'xcode_settings': {
28           'DYLIB_INSTALL_NAME_BASE': '@rpath'
29         },
30       }],
31       [ 'OS=="win"', {
32         'libraries': [
33           '-lkernel32.lib',
34           '-luser32.lib',
35           '-lgdi32.lib',
36           '-lwinspool.lib',
37           '-lcomdlg32.lib',
38           '-ladvapi32.lib',
39           '-lshell32.lib',
40           '-lole32.lib',
41           '-loleaut32.lib',
42           '-luuid.lib',
43           '-lodbc32.lib',
44           '-lDelayImp.lib',
45           '-l"<(node_root_dir)/$(ConfigurationName)/iojs.lib"'
46         ],
47         # warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>'
48         # needs to have dll-interface to be used by clients of class 'node::ObjectWrap'
49         'msvs_disabled_warnings': [ 4251 ],
50       }, {
51         # OS!="win"
52         'defines': [ '_LARGEFILE_SOURCE', '_FILE_OFFSET_BITS=64' ],
53       }],
54       [ 'OS=="freebsd" or OS=="openbsd" or OS=="solaris" or (OS=="linux" and target_arch!="ia32")', {
55         'cflags': [ '-fPIC' ],
56       }]
57     ]
58   }
59 }