3 'type': 'loadable_module',
4 'win_delay_load_hook': 'false',
8 '<(node_root_dir)/src',
9 '<(node_root_dir)/deps/uv/include',
10 '<(node_root_dir)/deps/v8/include'
13 'target_conditions': [
14 ['_type=="loadable_module"', {
15 'product_extension': 'node',
16 'defines': [ 'BUILDING_NODE_EXTENSION' ],
19 ['_type=="static_library"', {
20 # set to `1` to *disable* the -T thin archive 'ld' flag.
21 # older linkers don't support this flag.
22 'standalone_static_library': '<(standalone_static_library)'
25 ['_win_delay_load_hook=="true"', {
26 # If the addon specifies `'win_delay_load_hook': 'true'` in its
27 # binding.gyp, link a delay-load hook into the DLL. This hook ensures
28 # that the addon will work regardless of whether the node/iojs binary
29 # is named node.exe, iojs.exe, or something else.
33 'src/win_delay_load_hook.c',
37 'DelayLoadDLLs': [ 'iojs.exe', 'node.exe' ],
38 # Don't print a linker warning when no imports from either .exe
40 'AdditionalOptions': [ '/ignore:4199' ],
50 'defines': [ '_DARWIN_USE_64_BIT_INODE=1' ],
51 'libraries': [ '-undefined dynamic_lookup' ],
53 'DYLIB_INSTALL_NAME_BASE': '@rpath'
70 '-l"<(node_root_dir)/$(ConfigurationName)/iojs.lib"'
72 # warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>'
73 # needs to have dll-interface to be used by clients of class 'node::ObjectWrap'
74 'msvs_disabled_warnings': [ 4251 ],
77 'defines': [ '_LARGEFILE_SOURCE', '_FILE_OFFSET_BITS=64' ],
79 [ 'OS=="freebsd" or OS=="openbsd" or OS=="solaris" or (OS=="linux" and target_arch!="ia32")', {
80 'cflags': [ '-fPIC' ],