source: trip-planner-front/node_modules/node-gyp/addon.gypi@ 59329aa

Last change on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 5.3 KB
Line 
1{
2 'variables' : {
3 'node_engine_include_dir%': 'deps/v8/include',
4 'node_host_binary%': 'node',
5 'node_with_ltcg%': 'true',
6 },
7 'target_defaults': {
8 'type': 'loadable_module',
9 'win_delay_load_hook': 'true',
10 'product_prefix': '',
11
12 'conditions': [
13 [ 'node_engine=="chakracore"', {
14 'variables': {
15 'node_engine_include_dir%': 'deps/chakrashim/include'
16 },
17 }]
18 ],
19
20 'include_dirs': [
21 '<(node_root_dir)/include/node',
22 '<(node_root_dir)/src',
23 '<(node_root_dir)/deps/openssl/config',
24 '<(node_root_dir)/deps/openssl/openssl/include',
25 '<(node_root_dir)/deps/uv/include',
26 '<(node_root_dir)/deps/zlib',
27 '<(node_root_dir)/<(node_engine_include_dir)'
28 ],
29 'defines!': [
30 'BUILDING_UV_SHARED=1', # Inherited from common.gypi.
31 'BUILDING_V8_SHARED=1', # Inherited from common.gypi.
32 ],
33 'defines': [
34 'NODE_GYP_MODULE_NAME=>(_target_name)',
35 'USING_UV_SHARED=1',
36 'USING_V8_SHARED=1',
37 # Warn when using deprecated V8 APIs.
38 'V8_DEPRECATION_WARNINGS=1'
39 ],
40
41 'target_conditions': [
42 ['_type=="loadable_module"', {
43 'product_extension': 'node',
44 'defines': [
45 'BUILDING_NODE_EXTENSION'
46 ],
47 'xcode_settings': {
48 'OTHER_LDFLAGS': [
49 '-undefined dynamic_lookup'
50 ],
51 },
52 }],
53
54 ['_type=="static_library"', {
55 # set to `1` to *disable* the -T thin archive 'ld' flag.
56 # older linkers don't support this flag.
57 'standalone_static_library': '<(standalone_static_library)'
58 }],
59
60 ['_type!="executable"', {
61 'conditions': [
62 [ 'OS=="android"', {
63 'cflags!': [ '-fPIE' ],
64 }]
65 ]
66 }],
67
68 ['_win_delay_load_hook=="true"', {
69 # If the addon specifies `'win_delay_load_hook': 'true'` in its
70 # binding.gyp, link a delay-load hook into the DLL. This hook ensures
71 # that the addon will work regardless of whether the node/iojs binary
72 # is named node.exe, iojs.exe, or something else.
73 'conditions': [
74 [ 'OS=="win"', {
75 'defines': [ 'HOST_BINARY=\"<(node_host_binary)<(EXECUTABLE_SUFFIX)\"', ],
76 'sources': [
77 '<(node_gyp_dir)/src/win_delay_load_hook.cc',
78 ],
79 'msvs_settings': {
80 'VCLinkerTool': {
81 'DelayLoadDLLs': [ '<(node_host_binary)<(EXECUTABLE_SUFFIX)' ],
82 # Don't print a linker warning when no imports from either .exe
83 # are used.
84 'AdditionalOptions': [ '/ignore:4199' ],
85 },
86 },
87 }],
88 ],
89 }],
90 ],
91
92 'conditions': [
93 [ 'OS=="mac"', {
94 'defines': [
95 '_DARWIN_USE_64_BIT_INODE=1'
96 ],
97 'xcode_settings': {
98 'DYLIB_INSTALL_NAME_BASE': '@rpath'
99 },
100 }],
101 [ 'OS=="aix"', {
102 'ldflags': [
103 '-Wl,-bimport:<(node_exp_file)'
104 ],
105 }],
106 [ 'OS=="zos"', {
107 'cflags': [
108 '-q64',
109 '-Wc,DLL',
110 '-qlonglong',
111 '-qenum=int',
112 '-qxclang=-fexec-charset=ISO8859-1'
113 ],
114 'defines': [
115 '_ALL_SOURCE=1',
116 'MAP_FAILED=-1',
117 '_UNIX03_SOURCE=1'
118 ],
119 'ldflags': [
120 '-q64',
121 '<(node_exp_file)'
122 ],
123 }],
124 [ 'OS=="win"', {
125 'conditions': [
126 ['node_engine=="chakracore"', {
127 'library_dirs': [ '<(node_root_dir)/$(ConfigurationName)' ],
128 'libraries': [ '<@(node_engine_libs)' ],
129 }],
130 ['node_with_ltcg=="true"', {
131 'msvs_settings': {
132 'VCCLCompilerTool': {
133 'WholeProgramOptimization': 'true' # /GL, whole program optimization, needed for LTCG
134 },
135 'VCLibrarianTool': {
136 'AdditionalOptions': [
137 '/LTCG:INCREMENTAL', # incremental link-time code generation
138 ]
139 },
140 'VCLinkerTool': {
141 'OptimizeReferences': 2, # /OPT:REF
142 'EnableCOMDATFolding': 2, # /OPT:ICF
143 'LinkIncremental': 1, # disable incremental linking
144 'AdditionalOptions': [
145 '/LTCG:INCREMENTAL', # incremental link-time code generation
146 ]
147 }
148 }
149 }]
150 ],
151 'libraries': [
152 '-lkernel32.lib',
153 '-luser32.lib',
154 '-lgdi32.lib',
155 '-lwinspool.lib',
156 '-lcomdlg32.lib',
157 '-ladvapi32.lib',
158 '-lshell32.lib',
159 '-lole32.lib',
160 '-loleaut32.lib',
161 '-luuid.lib',
162 '-lodbc32.lib',
163 '-lDelayImp.lib',
164 '-l"<(node_lib_file)"'
165 ],
166 'msvs_disabled_warnings': [
167 # warning C4251: 'node::ObjectWrap::handle_' : class 'v8::Persistent<T>'
168 # needs to have dll-interface to be used by
169 # clients of class 'node::ObjectWrap'
170 4251
171 ],
172 }, {
173 # OS!="win"
174 'defines': [
175 '_LARGEFILE_SOURCE',
176 '_FILE_OFFSET_BITS=64'
177 ],
178 }],
179 [ 'OS in "freebsd openbsd netbsd solaris android" or \
180 (OS=="linux" and target_arch!="ia32")', {
181 'cflags': [ '-fPIC' ],
182 }],
183 ]
184 }
185}
Note: See TracBrowser for help on using the repository browser.