OLD | NEW |
1 # Copyright 2011 the V8 project authors. All rights reserved. | 1 # Copyright 2011 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 'targets': [ | 180 'targets': [ |
181 { | 181 { |
182 'target_name': 'v8', | 182 'target_name': 'v8', |
183 'conditions': [ | 183 'conditions': [ |
184 ['v8_use_snapshot=="true"', { | 184 ['v8_use_snapshot=="true"', { |
185 'dependencies': ['v8_snapshot'], | 185 'dependencies': ['v8_snapshot'], |
186 }, | 186 }, |
187 { | 187 { |
188 'dependencies': ['v8_nosnapshot'], | 188 'dependencies': ['v8_nosnapshot'], |
189 }], | 189 }], |
190 ['OS=="win" and component=="shared_library"', { | 190 ['component=="shared_library"', { |
191 'type': '<(component)', | 191 'type': '<(component)', |
192 'sources': [ | 192 'sources': [ |
| 193 # Note: on non-Windows we still build this file so that gyp |
| 194 # has some sources to link into the component. |
193 '../../src/v8dll-main.cc', | 195 '../../src/v8dll-main.cc', |
194 ], | 196 ], |
195 'defines': [ | 197 'conditions': [ |
196 'BUILDING_V8_SHARED' | 198 ['OS=="win"', { |
| 199 'defines': [ |
| 200 'BUILDING_V8_SHARED', |
| 201 ], |
| 202 'direct_dependent_settings': { |
| 203 'defines': [ |
| 204 'USING_V8_SHARED', |
| 205 ], |
| 206 }, |
| 207 }, { |
| 208 'defines': [ |
| 209 'V8_SHARED', |
| 210 ], |
| 211 'direct_dependent_settings': { |
| 212 'defines': [ |
| 213 'V8_SHARED', |
| 214 ], |
| 215 }, |
| 216 }], |
197 ], | 217 ], |
198 'direct_dependent_settings': { | |
199 'defines': [ | |
200 'USING_V8_SHARED', | |
201 ], | |
202 }, | |
203 }, | 218 }, |
204 { | 219 { |
205 'type': 'none', | 220 'type': 'none', |
206 }], | 221 }], |
207 ], | 222 ], |
208 'direct_dependent_settings': { | 223 'direct_dependent_settings': { |
209 'include_dirs': [ | 224 'include_dirs': [ |
210 '../../include', | 225 '../../include', |
211 ], | 226 ], |
212 }, | 227 }, |
213 }, | 228 }, |
214 { | 229 { |
215 'target_name': 'v8_snapshot', | 230 'target_name': 'v8_snapshot', |
216 'type': '<(library)', | 231 'type': '<(library)', |
217 'conditions': [ | 232 'conditions': [ |
218 ['OS=="win" and component=="shared_library"', { | 233 ['component=="shared_library"', { |
219 'defines': [ | 234 'conditions': [ |
220 'BUILDING_V8_SHARED', | 235 ['OS=="win"', { |
| 236 'defines': [ |
| 237 'BUILDING_V8_SHARED', |
| 238 ], |
| 239 'direct_dependent_settings': { |
| 240 'defines': [ |
| 241 'USING_V8_SHARED', |
| 242 ], |
| 243 }, |
| 244 }, { |
| 245 'defines': [ |
| 246 'V8_SHARED', |
| 247 ], |
| 248 'direct_dependent_settings': { |
| 249 'defines': [ |
| 250 'V8_SHARED', |
| 251 ], |
| 252 }, |
| 253 }], |
221 ], | 254 ], |
222 }], | 255 }], |
223 ], | 256 ], |
224 'dependencies': [ | 257 'dependencies': [ |
225 'mksnapshot#host', | 258 'mksnapshot#host', |
226 'js2c#host', | 259 'js2c#host', |
227 'v8_base', | 260 'v8_base', |
228 ], | 261 ], |
229 'include_dirs+': [ | 262 'include_dirs+': [ |
230 '../../src', | 263 '../../src', |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 296 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
264 '../../src/snapshot-empty.cc', | 297 '../../src/snapshot-empty.cc', |
265 ], | 298 ], |
266 'conditions': [ | 299 'conditions': [ |
267 # The ARM assembler assumes the host is 32 bits, so force building | 300 # The ARM assembler assumes the host is 32 bits, so force building |
268 # 32-bit host tools. | 301 # 32-bit host tools. |
269 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"',
{ | 302 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"',
{ |
270 'cflags': ['-m32'], | 303 'cflags': ['-m32'], |
271 'ldflags': ['-m32'], | 304 'ldflags': ['-m32'], |
272 }], | 305 }], |
273 ['OS=="win" and component=="shared_library"', { | 306 ['component=="shared_library"', { |
274 'defines': [ | 307 'defines': [ |
275 'BUILDING_V8_SHARED', | 308 'BUILDING_V8_SHARED', |
| 309 'V8_SHARED', |
276 ], | 310 ], |
277 }], | 311 }], |
278 ] | 312 ] |
279 }, | 313 }, |
280 { | 314 { |
281 'target_name': 'v8_base', | 315 'target_name': 'v8_base', |
282 'type': '<(library)', | 316 'type': '<(library)', |
283 'toolsets': ['host', 'target'], | 317 'toolsets': ['host', 'target'], |
284 'include_dirs+': [ | 318 'include_dirs+': [ |
285 '../../src', | 319 '../../src', |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 ], | 722 ], |
689 ['OS=="win"', { | 723 ['OS=="win"', { |
690 'sources': [ | 724 'sources': [ |
691 '../../src/platform-win32.cc', | 725 '../../src/platform-win32.cc', |
692 ], | 726 ], |
693 'msvs_disabled_warnings': [4351, 4355, 4800], | 727 'msvs_disabled_warnings': [4351, 4355, 4800], |
694 'link_settings': { | 728 'link_settings': { |
695 'libraries': [ '-lwinmm.lib' ], | 729 'libraries': [ '-lwinmm.lib' ], |
696 }, | 730 }, |
697 }], | 731 }], |
698 ['OS=="win" and component=="shared_library"', { | 732 ['component=="shared_library"', { |
699 'defines': [ | 733 'defines': [ |
700 'BUILDING_V8_SHARED' | 734 'BUILDING_V8_SHARED', |
| 735 'V8_SHARED', |
701 ], | 736 ], |
702 }], | 737 }], |
703 ], | 738 ], |
704 }, | 739 }, |
705 { | 740 { |
706 'target_name': 'js2c', | 741 'target_name': 'js2c', |
707 'type': 'none', | 742 'type': 'none', |
708 'toolsets': ['host'], | 743 'toolsets': ['host'], |
709 'variables': { | 744 'variables': { |
710 'library_files': [ | 745 'library_files': [ |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 'target_name': 'v8_shell', | 855 'target_name': 'v8_shell', |
821 'type': 'none', | 856 'type': 'none', |
822 'dependencies': [ | 857 'dependencies': [ |
823 'v8' | 858 'v8' |
824 ], | 859 ], |
825 }, | 860 }, |
826 ], | 861 ], |
827 }], | 862 }], |
828 ], | 863 ], |
829 } | 864 } |
OLD | NEW |