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 'BUILDING_UV_SHARED=1', # Inherited from common.gypi.
15 'BUILDING_V8_SHARED=1', # Inherited from common.gypi.
18 'NODE_GYP_MODULE_NAME=>(_target_name)',
21 # Warn when using deprecated V8 APIs.
22 'V8_DEPRECATION_WARNINGS=1'
25 'target_conditions': [
26 ['_type=="loadable_module"', {
27 'product_extension': 'node',
29 'BUILDING_NODE_EXTENSION'
33 '-undefined dynamic_lookup'
38 ['_type=="static_library"', {
39 # set to `1` to *disable* the -T thin archive 'ld' flag.
40 # older linkers don't support this flag.
41 'standalone_static_library': '<(standalone_static_library)'
44 ['_win_delay_load_hook=="true"', {
45 # If the addon specifies `'win_delay_load_hook': 'true'` in its
46 # binding.gyp, link a delay-load hook into the DLL. This hook ensures
47 # that the addon will work regardless of whether the node/iojs binary
48 # is named node.exe, iojs.exe, or something else.
52 '<(node_gyp_dir)/src/win_delay_load_hook.cc',
56 'DelayLoadDLLs': [ 'iojs.exe', 'node.exe' ],
57 # Don't print a linker warning when no imports from either .exe
59 'AdditionalOptions': [ '/ignore:4199' ],
70 '_DARWIN_USE_64_BIT_INODE=1'
73 'DYLIB_INSTALL_NAME_BASE': '@rpath'
78 '-Wl,-bimport:<(node_exp_file)'
95 '-l"<(node_root_dir)/$(ConfigurationName)/<(node_lib_file)"'
97 'msvs_disabled_warnings': [
98 # warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>'
99 # needs to have dll-interface to be used by
100 # clients of class 'node::ObjectWrap'
107 '_FILE_OFFSET_BITS=64'
110 [ 'OS in "freebsd openbsd netbsd solaris" or \
111 (OS=="linux" and target_arch!="ia32")', {
112 'cflags': [ '-fPIC' ],