3 'type': 'loadable_module',
4 'win_delay_load_hook': 'true',
8 '<(node_root_dir)/include/node',
9 '<(node_root_dir)/src',
10 '<(node_root_dir)/deps/uv/include',
11 '<(node_root_dir)/deps/v8/include'
14 'NODE_GYP_MODULE_NAME=>(_target_name)'
17 'target_conditions': [
18 ['_type=="loadable_module"', {
19 'product_extension': 'node',
21 'BUILDING_NODE_EXTENSION'
25 '-undefined dynamic_lookup'
30 ['_type=="static_library"', {
31 # set to `1` to *disable* the -T thin archive 'ld' flag.
32 # older linkers don't support this flag.
33 'standalone_static_library': '<(standalone_static_library)'
36 ['_win_delay_load_hook=="true"', {
37 # If the addon specifies `'win_delay_load_hook': 'true'` in its
38 # binding.gyp, link a delay-load hook into the DLL. This hook ensures
39 # that the addon will work regardless of whether the node/iojs binary
40 # is named node.exe, iojs.exe, or something else.
44 '<(node_gyp_dir)/src/win_delay_load_hook.c',
48 'DelayLoadDLLs': [ 'iojs.exe', 'node.exe' ],
49 # Don't print a linker warning when no imports from either .exe
51 'AdditionalOptions': [ '/ignore:4199' ],
62 '_DARWIN_USE_64_BIT_INODE=1'
65 'DYLIB_INSTALL_NAME_BASE': '@rpath'
70 '-Wl,-bimport:<(node_exp_file)'
87 '-l"<(node_root_dir)/$(ConfigurationName)/<(node_lib_file)"'
89 'msvs_disabled_warnings': [
90 # warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>'
91 # needs to have dll-interface to be used by
92 # clients of class 'node::ObjectWrap'
99 '_FILE_OFFSET_BITS=64'
102 [ 'OS in "freebsd openbsd netbsd solaris" or \
103 (OS=="linux" and target_arch!="ia32")', {
104 'cflags': [ '-fPIC' ],