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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 # both for the snapshot and for the ARM target. Leaving the default value | 46 # both for the snapshot and for the ARM target. Leaving the default value |
47 # of 'false' will avoid VFP instructions in the snapshot and use CPU feature | 47 # of 'false' will avoid VFP instructions in the snapshot and use CPU feature |
48 # probing when running on the target. | 48 # probing when running on the target. |
49 'v8_can_use_vfp_instructions%': 'false', | 49 'v8_can_use_vfp_instructions%': 'false', |
50 | 50 |
51 # Setting v8_use_arm_eabi_hardfloat to true will turn on V8 support for ARM | 51 # Setting v8_use_arm_eabi_hardfloat to true will turn on V8 support for ARM |
52 # EABI calling convention where double arguments are passed in VFP | 52 # EABI calling convention where double arguments are passed in VFP |
53 # registers. Note that the GCC flag '-mfloat-abi=hard' should be used as | 53 # registers. Note that the GCC flag '-mfloat-abi=hard' should be used as |
54 # well when compiling for the ARM target. | 54 # well when compiling for the ARM target. |
55 'v8_use_arm_eabi_hardfloat%': 'false', | 55 'v8_use_arm_eabi_hardfloat%': 'false', |
| 56 |
| 57 'v8_enable_debugger_support%': 1, |
| 58 |
| 59 # Chrome needs this definition unconditionally. For standalone V8 builds, |
| 60 # it's handled in common.gypi. |
| 61 'want_separate_host_toolset%': 1, |
56 | 62 |
57 'v8_use_snapshot%': 'true', | 63 'v8_use_snapshot%': 'true', |
58 'host_os%': '<(OS)', | 64 'host_os%': '<(OS)', |
59 'v8_use_liveobjectlist%': 'false', | 65 'v8_use_liveobjectlist%': 'false', |
60 }, | 66 }, |
61 'conditions': [ | 67 'conditions': [ |
62 ['use_system_v8==0', { | 68 ['use_system_v8==0', { |
63 'target_defaults': { | 69 'target_defaults': { |
64 'defines': [ | |
65 'ENABLE_DEBUGGER_SUPPORT', | |
66 ], | |
67 'conditions': [ | 70 'conditions': [ |
| 71 ['v8_enable_debugger_support==1', { |
| 72 'defines': ['ENABLE_DEBUGGER_SUPPORT',], |
| 73 }, |
| 74 ], |
68 ['OS!="mac"', { | 75 ['OS!="mac"', { |
69 # TODO(mark): The OS!="mac" conditional is temporary. It can be | 76 # TODO(mark): The OS!="mac" conditional is temporary. It can be |
70 # removed once the Mac Chromium build stops setting target_arch to | 77 # removed once the Mac Chromium build stops setting target_arch to |
71 # ia32 and instead sets it to mac. Other checks in this file for | 78 # ia32 and instead sets it to mac. Other checks in this file for |
72 # OS=="mac" can be removed at that time as well. This can be cleaned | 79 # OS=="mac" can be removed at that time as well. This can be cleaned |
73 # up once http://crbug.com/44205 is fixed. | 80 # up once http://crbug.com/44205 is fixed. |
74 'conditions': [ | 81 'conditions': [ |
75 ['v8_target_arch=="arm"', { | 82 ['v8_target_arch=="arm"', { |
76 'defines': [ | 83 'defines': [ |
77 'V8_TARGET_ARCH_ARM', | 84 'V8_TARGET_ARCH_ARM', |
(...skipping 12 matching lines...) Expand all Loading... |
90 [ 'v8_can_use_vfp_instructions=="true"', { | 97 [ 'v8_can_use_vfp_instructions=="true"', { |
91 'defines': [ | 98 'defines': [ |
92 'CAN_USE_VFP_INSTRUCTIONS', | 99 'CAN_USE_VFP_INSTRUCTIONS', |
93 ], | 100 ], |
94 }], | 101 }], |
95 [ 'v8_use_arm_eabi_hardfloat=="true"', { | 102 [ 'v8_use_arm_eabi_hardfloat=="true"', { |
96 'defines': [ | 103 'defines': [ |
97 'USE_EABI_HARDFLOAT=1', | 104 'USE_EABI_HARDFLOAT=1', |
98 'CAN_USE_VFP_INSTRUCTIONS', | 105 'CAN_USE_VFP_INSTRUCTIONS', |
99 ], | 106 ], |
| 107 'cflags': [ |
| 108 '-mfloat-abi=hard', |
| 109 ], |
| 110 }, { |
| 111 'defines': [ |
| 112 'USE_EABI_HARDFLOAT=0', |
| 113 ], |
| 114 }], |
| 115 # The ARM assembler assumes the host is 32 bits, |
| 116 # so force building 32-bit host tools. |
| 117 [ 'host_arch=="x64"', { |
| 118 'cflags': ['-m32'], |
| 119 'ldflags': ['-m32'], |
100 }], | 120 }], |
101 ], | 121 ], |
102 }], | 122 }], |
103 ['v8_target_arch=="ia32"', { | 123 ['v8_target_arch=="ia32"', { |
104 'defines': [ | 124 'defines': [ |
105 'V8_TARGET_ARCH_IA32', | 125 'V8_TARGET_ARCH_IA32', |
106 ], | 126 ], |
107 }], | 127 }], |
108 ['v8_target_arch=="x64"', { | 128 ['v8_target_arch=="x64"', { |
109 'defines': [ | 129 'defines': [ |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 ], | 168 ], |
149 }, | 169 }, |
150 'VCLinkerTool': { | 170 'VCLinkerTool': { |
151 'LinkIncremental': '2', | 171 'LinkIncremental': '2', |
152 }, | 172 }, |
153 }, | 173 }, |
154 'conditions': [ | 174 'conditions': [ |
155 ['OS=="freebsd" or OS=="openbsd"', { | 175 ['OS=="freebsd" or OS=="openbsd"', { |
156 'cflags': [ '-I/usr/local/include' ], | 176 'cflags': [ '-I/usr/local/include' ], |
157 }], | 177 }], |
| 178 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
| 179 'cflags': [ '-Wall', '-Werror', '-W', '-Wno-unused-parameter', |
| 180 '-Wnon-virtual-dtor' ], |
| 181 }], |
158 ], | 182 ], |
159 }, | 183 }, |
160 'Release': { | 184 'Release': { |
161 'conditions': [ | 185 'conditions': [ |
162 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { | 186 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { |
163 'cflags!': [ | 187 'cflags!': [ |
164 '-O2', | 188 '-O2', |
165 '-Os', | 189 '-Os', |
166 ], | 190 ], |
167 'cflags': [ | |
168 '-fomit-frame-pointer', | |
169 '-O3', | |
170 ], | |
171 'conditions': [ | 191 'conditions': [ |
172 [ 'gcc_version==44', { | 192 [ 'gcc_version==44', { |
173 'cflags': [ | 193 'cflags': [ |
174 # Avoid crashes with gcc 4.4 in the v8 test suite. | 194 # Avoid crashes with gcc 4.4 in the v8 test suite. |
175 '-fno-tree-vrp', | 195 '-fno-tree-vrp', |
176 ], | 196 ], |
177 }], | 197 }], |
178 ], | 198 ], |
179 }], | 199 }], |
180 ['OS=="freebsd" or OS=="openbsd"', { | 200 ['OS=="freebsd" or OS=="openbsd"', { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 }, | 242 }, |
223 }, | 243 }, |
224 }], | 244 }], |
225 ], | 245 ], |
226 }, | 246 }, |
227 }, | 247 }, |
228 }, | 248 }, |
229 'targets': [ | 249 'targets': [ |
230 { | 250 { |
231 'target_name': 'v8', | 251 'target_name': 'v8', |
232 'toolsets': ['host', 'target'], | |
233 'conditions': [ | 252 'conditions': [ |
| 253 ['want_separate_host_toolset==1', { |
| 254 'toolsets': ['host', 'target'], |
| 255 }, { |
| 256 'toolsets': ['target'], |
| 257 }], |
234 ['v8_use_snapshot=="true"', { | 258 ['v8_use_snapshot=="true"', { |
235 'dependencies': ['v8_snapshot'], | 259 'dependencies': ['v8_snapshot'], |
236 }, | 260 }, |
237 { | 261 { |
238 'dependencies': ['v8_nosnapshot'], | 262 'dependencies': ['v8_nosnapshot'], |
239 }], | 263 }], |
240 ['component=="shared_library"', { | 264 ['component=="shared_library"', { |
241 'type': '<(component)', | 265 'type': '<(component)', |
242 'sources': [ | 266 'sources': [ |
243 # Note: on non-Windows we still build this file so that gyp | 267 # Note: on non-Windows we still build this file so that gyp |
(...skipping 21 matching lines...) Expand all Loading... |
265 }, | 289 }, |
266 }], | 290 }], |
267 ], | 291 ], |
268 }, | 292 }, |
269 { | 293 { |
270 'type': 'none', | 294 'type': 'none', |
271 }], | 295 }], |
272 ], | 296 ], |
273 'direct_dependent_settings': { | 297 'direct_dependent_settings': { |
274 'include_dirs': [ | 298 'include_dirs': [ |
275 '../../include', | 299 '../../include', |
276 ], | 300 ], |
277 }, | 301 }, |
278 }, | 302 }, |
279 { | 303 { |
280 'target_name': 'v8_snapshot', | 304 'target_name': 'v8_snapshot', |
281 'type': '<(library)', | 305 'type': '<(library)', |
282 'toolsets': ['host', 'target'], | |
283 'conditions': [ | 306 'conditions': [ |
| 307 ['want_separate_host_toolset==1', { |
| 308 'toolsets': ['host', 'target'], |
| 309 'dependencies': ['mksnapshot#host', 'js2c#host'], |
| 310 }, { |
| 311 'toolsets': ['target'], |
| 312 'dependencies': ['mksnapshot', 'js2c'], |
| 313 }], |
284 ['component=="shared_library"', { | 314 ['component=="shared_library"', { |
285 'conditions': [ | 315 'conditions': [ |
286 # The ARM assembler assumes the host is 32 bits, so force buildi
ng | |
287 # 32-bit host tools. | |
288 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host
"', { | |
289 'cflags': ['-m32'], | |
290 'ldflags': ['-m32'], | |
291 }], | |
292 ['OS=="win"', { | 316 ['OS=="win"', { |
293 'defines': [ | 317 'defines': [ |
294 'BUILDING_V8_SHARED', | 318 'BUILDING_V8_SHARED', |
295 ], | 319 ], |
296 'direct_dependent_settings': { | 320 'direct_dependent_settings': { |
297 'defines': [ | 321 'defines': [ |
298 'USING_V8_SHARED', | 322 'USING_V8_SHARED', |
299 ], | 323 ], |
300 }, | 324 }, |
301 }, { | 325 }, { |
302 'defines': [ | 326 'defines': [ |
303 'V8_SHARED', | 327 'V8_SHARED', |
304 ], | 328 ], |
305 'direct_dependent_settings': { | 329 'direct_dependent_settings': { |
306 'defines': [ | 330 'defines': [ |
307 'V8_SHARED', | 331 'V8_SHARED', |
308 ], | 332 ], |
309 }, | 333 }, |
310 }], | 334 }], |
311 ], | 335 ], |
312 }], | 336 }], |
313 ], | 337 ], |
314 'dependencies': [ | 338 'dependencies': [ |
315 'mksnapshot#host', | |
316 'js2c#host', | |
317 'v8_base', | 339 'v8_base', |
318 ], | 340 ], |
319 'include_dirs+': [ | 341 'include_dirs+': [ |
320 '../../src', | 342 '../../src', |
321 ], | 343 ], |
322 'sources': [ | 344 'sources': [ |
323 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 345 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
324 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 346 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
325 '<(INTERMEDIATE_DIR)/snapshot.cc', | 347 '<(INTERMEDIATE_DIR)/snapshot.cc', |
326 ], | 348 ], |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 '<@(_inputs)', | 395 '<@(_inputs)', |
374 '<@(mksnapshot_flags)', | 396 '<@(mksnapshot_flags)', |
375 '<@(_outputs)' | 397 '<@(_outputs)' |
376 ], | 398 ], |
377 }, | 399 }, |
378 ], | 400 ], |
379 }, | 401 }, |
380 { | 402 { |
381 'target_name': 'v8_nosnapshot', | 403 'target_name': 'v8_nosnapshot', |
382 'type': '<(library)', | 404 'type': '<(library)', |
383 'toolsets': ['host', 'target'], | |
384 'dependencies': [ | 405 'dependencies': [ |
385 'js2c#host', | |
386 'v8_base', | 406 'v8_base', |
387 ], | 407 ], |
388 'include_dirs+': [ | 408 'include_dirs+': [ |
389 '../../src', | 409 '../../src', |
390 ], | 410 ], |
391 'sources': [ | 411 'sources': [ |
392 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 412 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
393 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 413 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
394 '../../src/snapshot-empty.cc', | 414 '../../src/snapshot-empty.cc', |
395 ], | 415 ], |
396 'conditions': [ | 416 'conditions': [ |
397 # The ARM assembler assumes the host is 32 bits, so force building | 417 ['want_separate_host_toolset==1', { |
398 # 32-bit host tools. | 418 'toolsets': ['host', 'target'], |
399 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"',
{ | 419 'dependencies': ['js2c#host'], |
400 'cflags': ['-m32'], | 420 }, { |
401 'ldflags': ['-m32'], | 421 'toolsets': ['target'], |
| 422 'dependencies': ['js2c'], |
402 }], | 423 }], |
403 ['component=="shared_library"', { | 424 ['component=="shared_library"', { |
404 'defines': [ | 425 'defines': [ |
405 'BUILDING_V8_SHARED', | 426 'BUILDING_V8_SHARED', |
406 'V8_SHARED', | 427 'V8_SHARED', |
407 ], | 428 ], |
408 }], | 429 }], |
409 ] | 430 ] |
410 }, | 431 }, |
411 { | 432 { |
412 'target_name': 'v8_base', | 433 'target_name': 'v8_base', |
413 'type': '<(library)', | 434 'type': '<(library)', |
414 'toolsets': ['host', 'target'], | |
415 'include_dirs+': [ | 435 'include_dirs+': [ |
416 '../../src', | 436 '../../src', |
417 ], | 437 ], |
418 'sources': [ | 438 'sources': [ |
419 '../../src/accessors.cc', | 439 '../../src/accessors.cc', |
420 '../../src/accessors.h', | 440 '../../src/accessors.h', |
421 '../../src/allocation.cc', | 441 '../../src/allocation.cc', |
422 '../../src/allocation.h', | 442 '../../src/allocation.h', |
423 '../../src/api.cc', | 443 '../../src/api.cc', |
424 '../../src/api.h', | 444 '../../src/api.h', |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 '../../src/vm-state.h', | 681 '../../src/vm-state.h', |
662 '../../src/zone-inl.h', | 682 '../../src/zone-inl.h', |
663 '../../src/zone.cc', | 683 '../../src/zone.cc', |
664 '../../src/zone.h', | 684 '../../src/zone.h', |
665 '../../src/extensions/externalize-string-extension.cc', | 685 '../../src/extensions/externalize-string-extension.cc', |
666 '../../src/extensions/externalize-string-extension.h', | 686 '../../src/extensions/externalize-string-extension.h', |
667 '../../src/extensions/gc-extension.cc', | 687 '../../src/extensions/gc-extension.cc', |
668 '../../src/extensions/gc-extension.h', | 688 '../../src/extensions/gc-extension.h', |
669 ], | 689 ], |
670 'conditions': [ | 690 'conditions': [ |
| 691 ['want_separate_host_toolset==1', { |
| 692 'toolsets': ['host', 'target'], |
| 693 }, { |
| 694 'toolsets': ['target'], |
| 695 }], |
671 ['v8_target_arch=="arm"', { | 696 ['v8_target_arch=="arm"', { |
672 'include_dirs+': [ | |
673 '../../src/arm', | |
674 ], | |
675 'sources': [ | 697 'sources': [ |
676 '../../src/arm/assembler-arm-inl.h', | 698 '../../src/arm/assembler-arm-inl.h', |
677 '../../src/arm/assembler-arm.cc', | 699 '../../src/arm/assembler-arm.cc', |
678 '../../src/arm/assembler-arm.h', | 700 '../../src/arm/assembler-arm.h', |
679 '../../src/arm/builtins-arm.cc', | 701 '../../src/arm/builtins-arm.cc', |
680 '../../src/arm/code-stubs-arm.cc', | 702 '../../src/arm/code-stubs-arm.cc', |
681 '../../src/arm/code-stubs-arm.h', | 703 '../../src/arm/code-stubs-arm.h', |
682 '../../src/arm/codegen-arm.cc', | 704 '../../src/arm/codegen-arm.cc', |
683 '../../src/arm/codegen-arm.h', | 705 '../../src/arm/codegen-arm.h', |
684 '../../src/arm/constants-arm.h', | 706 '../../src/arm/constants-arm.h', |
(...skipping 12 matching lines...) Expand all Loading... |
697 '../../src/arm/lithium-codegen-arm.h', | 719 '../../src/arm/lithium-codegen-arm.h', |
698 '../../src/arm/lithium-gap-resolver-arm.cc', | 720 '../../src/arm/lithium-gap-resolver-arm.cc', |
699 '../../src/arm/lithium-gap-resolver-arm.h', | 721 '../../src/arm/lithium-gap-resolver-arm.h', |
700 '../../src/arm/macro-assembler-arm.cc', | 722 '../../src/arm/macro-assembler-arm.cc', |
701 '../../src/arm/macro-assembler-arm.h', | 723 '../../src/arm/macro-assembler-arm.h', |
702 '../../src/arm/regexp-macro-assembler-arm.cc', | 724 '../../src/arm/regexp-macro-assembler-arm.cc', |
703 '../../src/arm/regexp-macro-assembler-arm.h', | 725 '../../src/arm/regexp-macro-assembler-arm.h', |
704 '../../src/arm/simulator-arm.cc', | 726 '../../src/arm/simulator-arm.cc', |
705 '../../src/arm/stub-cache-arm.cc', | 727 '../../src/arm/stub-cache-arm.cc', |
706 ], | 728 ], |
707 'conditions': [ | |
708 # The ARM assembler assumes the host is 32 bits, | |
709 # so force building 32-bit host tools. | |
710 ['host_arch=="x64" and _toolset=="host"', { | |
711 'cflags': ['-m32'], | |
712 'ldflags': ['-m32'], | |
713 }] | |
714 ] | |
715 }], | 729 }], |
716 ['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', { | 730 ['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', { |
717 'include_dirs+': [ | |
718 '../../src/ia32', | |
719 ], | |
720 'sources': [ | 731 'sources': [ |
721 '../../src/ia32/assembler-ia32-inl.h', | 732 '../../src/ia32/assembler-ia32-inl.h', |
722 '../../src/ia32/assembler-ia32.cc', | 733 '../../src/ia32/assembler-ia32.cc', |
723 '../../src/ia32/assembler-ia32.h', | 734 '../../src/ia32/assembler-ia32.h', |
724 '../../src/ia32/builtins-ia32.cc', | 735 '../../src/ia32/builtins-ia32.cc', |
725 '../../src/ia32/code-stubs-ia32.cc', | 736 '../../src/ia32/code-stubs-ia32.cc', |
726 '../../src/ia32/code-stubs-ia32.h', | 737 '../../src/ia32/code-stubs-ia32.h', |
727 '../../src/ia32/codegen-ia32.cc', | 738 '../../src/ia32/codegen-ia32.cc', |
728 '../../src/ia32/codegen-ia32.h', | 739 '../../src/ia32/codegen-ia32.h', |
729 '../../src/ia32/cpu-ia32.cc', | 740 '../../src/ia32/cpu-ia32.cc', |
(...skipping 11 matching lines...) Expand all Loading... |
741 '../../src/ia32/lithium-ia32.cc', | 752 '../../src/ia32/lithium-ia32.cc', |
742 '../../src/ia32/lithium-ia32.h', | 753 '../../src/ia32/lithium-ia32.h', |
743 '../../src/ia32/macro-assembler-ia32.cc', | 754 '../../src/ia32/macro-assembler-ia32.cc', |
744 '../../src/ia32/macro-assembler-ia32.h', | 755 '../../src/ia32/macro-assembler-ia32.h', |
745 '../../src/ia32/regexp-macro-assembler-ia32.cc', | 756 '../../src/ia32/regexp-macro-assembler-ia32.cc', |
746 '../../src/ia32/regexp-macro-assembler-ia32.h', | 757 '../../src/ia32/regexp-macro-assembler-ia32.h', |
747 '../../src/ia32/stub-cache-ia32.cc', | 758 '../../src/ia32/stub-cache-ia32.cc', |
748 ], | 759 ], |
749 }], | 760 }], |
750 ['v8_target_arch=="x64" or v8_target_arch=="mac" or OS=="mac"', { | 761 ['v8_target_arch=="x64" or v8_target_arch=="mac" or OS=="mac"', { |
751 'include_dirs+': [ | |
752 '../../src/x64', | |
753 ], | |
754 'sources': [ | 762 'sources': [ |
755 '../../src/x64/assembler-x64-inl.h', | 763 '../../src/x64/assembler-x64-inl.h', |
756 '../../src/x64/assembler-x64.cc', | 764 '../../src/x64/assembler-x64.cc', |
757 '../../src/x64/assembler-x64.h', | 765 '../../src/x64/assembler-x64.h', |
758 '../../src/x64/builtins-x64.cc', | 766 '../../src/x64/builtins-x64.cc', |
759 '../../src/x64/code-stubs-x64.cc', | 767 '../../src/x64/code-stubs-x64.cc', |
760 '../../src/x64/code-stubs-x64.h', | 768 '../../src/x64/code-stubs-x64.h', |
761 '../../src/x64/codegen-x64.cc', | 769 '../../src/x64/codegen-x64.cc', |
762 '../../src/x64/codegen-x64.h', | 770 '../../src/x64/codegen-x64.h', |
763 '../../src/x64/cpu-x64.cc', | 771 '../../src/x64/cpu-x64.cc', |
(...skipping 12 matching lines...) Expand all Loading... |
776 '../../src/x64/lithium-x64.h', | 784 '../../src/x64/lithium-x64.h', |
777 '../../src/x64/macro-assembler-x64.cc', | 785 '../../src/x64/macro-assembler-x64.cc', |
778 '../../src/x64/macro-assembler-x64.h', | 786 '../../src/x64/macro-assembler-x64.h', |
779 '../../src/x64/regexp-macro-assembler-x64.cc', | 787 '../../src/x64/regexp-macro-assembler-x64.cc', |
780 '../../src/x64/regexp-macro-assembler-x64.h', | 788 '../../src/x64/regexp-macro-assembler-x64.h', |
781 '../../src/x64/stub-cache-x64.cc', | 789 '../../src/x64/stub-cache-x64.cc', |
782 ], | 790 ], |
783 }], | 791 }], |
784 ['OS=="linux"', { | 792 ['OS=="linux"', { |
785 'link_settings': { | 793 'link_settings': { |
786 'libraries': [ | |
787 # Needed for clock_gettime() used by src/platform-linux.cc. | |
788 '-lrt', | |
789 ], | |
790 'conditions': [ | 794 'conditions': [ |
791 ['v8_compress_startup_data=="bz2"', { | 795 ['v8_compress_startup_data=="bz2"', { |
792 'libraries': [ | 796 'libraries': [ |
793 '-lbz2', | 797 '-lbz2', |
794 ]}], | 798 ]}], |
795 ], | 799 ], |
796 }, | 800 }, |
797 'sources': [ | 801 'sources': [ |
798 '../../src/platform-linux.cc', | 802 '../../src/platform-linux.cc', |
799 '../../src/platform-posix.cc' | 803 '../../src/platform-posix.cc' |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
865 'defines': [ | 869 'defines': [ |
866 'BUILDING_V8_SHARED', | 870 'BUILDING_V8_SHARED', |
867 'V8_SHARED', | 871 'V8_SHARED', |
868 ], | 872 ], |
869 }], | 873 }], |
870 ], | 874 ], |
871 }, | 875 }, |
872 { | 876 { |
873 'target_name': 'js2c', | 877 'target_name': 'js2c', |
874 'type': 'none', | 878 'type': 'none', |
875 'toolsets': ['host'], | 879 'conditions': [ |
| 880 ['want_separate_host_toolset==1', { |
| 881 'toolsets': ['host'], |
| 882 }, { |
| 883 'toolsets': ['target'], |
| 884 }], |
| 885 ], |
876 'variables': { | 886 'variables': { |
877 'library_files': [ | 887 'library_files': [ |
878 '../../src/runtime.js', | 888 '../../src/runtime.js', |
879 '../../src/v8natives.js', | 889 '../../src/v8natives.js', |
880 '../../src/array.js', | 890 '../../src/array.js', |
881 '../../src/string.js', | 891 '../../src/string.js', |
882 '../../src/uri.js', | 892 '../../src/uri.js', |
883 '../../src/math.js', | 893 '../../src/math.js', |
884 '../../src/messages.js', | 894 '../../src/messages.js', |
885 '../../src/apinatives.js', | 895 '../../src/apinatives.js', |
886 '../../src/debug-debugger.js', | 896 '../../src/debug-debugger.js', |
887 '../../src/mirror-debugger.js', | 897 '../../src/mirror-debugger.js', |
888 '../../src/liveedit-debugger.js', | 898 '../../src/liveedit-debugger.js', |
889 '../../src/date.js', | 899 '../../src/date.js', |
890 '../../src/json.js', | 900 '../../src/json.js', |
891 '../../src/regexp.js', | 901 '../../src/regexp.js', |
892 '../../src/macros.py', | 902 '../../src/macros.py', |
893 ], | 903 ], |
894 'experimental_library_files': [ | 904 'experimental_library_files': [ |
| 905 '../../src/macros.py', |
895 '../../src/proxy.js', | 906 '../../src/proxy.js', |
896 '../../src/macros.py', | 907 '../../src/weakmap.js', |
897 ], | 908 ], |
898 }, | 909 }, |
899 'actions': [ | 910 'actions': [ |
900 { | 911 { |
901 'action_name': 'js2c', | 912 'action_name': 'js2c', |
902 'inputs': [ | 913 'inputs': [ |
903 '../../tools/js2c.py', | 914 '../../tools/js2c.py', |
904 '<@(library_files)', | 915 '<@(library_files)', |
905 ], | 916 ], |
906 'outputs': [ | 917 'outputs': [ |
(...skipping 24 matching lines...) Expand all Loading... |
931 'EXPERIMENTAL', | 942 'EXPERIMENTAL', |
932 '<(v8_compress_startup_data)', | 943 '<(v8_compress_startup_data)', |
933 '<@(experimental_library_files)' | 944 '<@(experimental_library_files)' |
934 ], | 945 ], |
935 }, | 946 }, |
936 ], | 947 ], |
937 }, | 948 }, |
938 { | 949 { |
939 'target_name': 'mksnapshot', | 950 'target_name': 'mksnapshot', |
940 'type': 'executable', | 951 'type': 'executable', |
941 'toolsets': ['host'], | |
942 'dependencies': [ | 952 'dependencies': [ |
943 'v8_nosnapshot', | 953 'v8_nosnapshot', |
944 ], | 954 ], |
945 'include_dirs+': [ | 955 'include_dirs+': [ |
946 '../../src', | 956 '../../src', |
947 ], | 957 ], |
948 'sources': [ | 958 'sources': [ |
949 '../../src/mksnapshot.cc', | 959 '../../src/mksnapshot.cc', |
950 ], | 960 ], |
951 'conditions': [ | 961 'conditions': [ |
952 # The ARM assembler assumes the host is 32 bits, so force building | 962 ['want_separate_host_toolset==1', { |
953 # 32-bit host tools. | 963 'toolsets': ['host'], |
954 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"',
{ | 964 }, { |
955 'cflags': ['-m32'], | 965 'toolsets': ['target'], |
956 'ldflags': ['-m32'], | |
957 }], | 966 }], |
958 ['v8_compress_startup_data=="bz2"', { | 967 ['v8_compress_startup_data=="bz2"', { |
959 'libraries': [ | 968 'libraries': [ |
960 '-lbz2', | 969 '-lbz2', |
961 ]}], | 970 ]}], |
962 ] | 971 ] |
963 }, | 972 }, |
964 { | 973 { |
965 'target_name': 'v8_shell', | 974 'target_name': 'v8_shell', |
966 'type': 'executable', | 975 'type': 'executable', |
967 'toolsets': ['host'], | |
968 'dependencies': [ | 976 'dependencies': [ |
969 'v8' | 977 'v8' |
970 ], | 978 ], |
971 'sources': [ | 979 'sources': [ |
972 '../../samples/shell.cc', | 980 '../../samples/shell.cc', |
973 ], | 981 ], |
974 'conditions': [ | 982 'conditions': [ |
| 983 ['want_separate_host_toolset==1', { |
| 984 'toolsets': ['host'], |
| 985 }, { |
| 986 'toolsets': ['target'], |
| 987 }], |
975 ['OS=="win"', { | 988 ['OS=="win"', { |
976 # This could be gotten by not setting chromium_code, if that's OK. | 989 # This could be gotten by not setting chromium_code, if that's OK. |
977 'defines': ['_CRT_SECURE_NO_WARNINGS'], | 990 'defines': ['_CRT_SECURE_NO_WARNINGS'], |
978 }], | 991 }], |
979 # The ARM assembler assumes the host is 32 bits, so force building | |
980 # 32-bit host tools. | |
981 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"',
{ | |
982 'cflags': ['-m32'], | |
983 'ldflags': ['-m32'], | |
984 }], | |
985 ['v8_compress_startup_data=="bz2"', { | 992 ['v8_compress_startup_data=="bz2"', { |
986 'libraries': [ | 993 'libraries': [ |
987 '-lbz2', | 994 '-lbz2', |
988 ]}], | 995 ]}], |
989 ], | 996 ], |
990 }, | 997 }, |
| 998 { |
| 999 'target_name': 'preparser_lib', |
| 1000 'type': '<(library)', |
| 1001 'include_dirs+': [ |
| 1002 '../../src', |
| 1003 ], |
| 1004 'sources': [ |
| 1005 '../../src/allocation.cc', |
| 1006 '../../src/bignum.cc', |
| 1007 '../../src/cached-powers.cc', |
| 1008 '../../src/conversions.cc', |
| 1009 '../../src/hashmap.cc', |
| 1010 '../../src/preparse-data.cc', |
| 1011 '../../src/preparser.cc', |
| 1012 '../../src/preparser-api.cc', |
| 1013 '../../src/scanner-base.cc', |
| 1014 '../../src/strtod.cc', |
| 1015 '../../src/token.cc', |
| 1016 '../../src/unicode.cc', |
| 1017 '../../src/utils.cc', |
| 1018 ], |
| 1019 }, |
991 ], | 1020 ], |
992 }, { # use_system_v8 != 0 | 1021 }, { # use_system_v8 != 0 |
993 'targets': [ | 1022 'targets': [ |
994 { | 1023 { |
995 'target_name': 'v8', | 1024 'target_name': 'v8', |
996 'type': 'settings', | 1025 'type': 'settings', |
997 'toolsets': ['host', 'target'], | 1026 'conditions': [ |
| 1027 ['want_separate_host_toolset==1', { |
| 1028 'toolsets': ['host', 'target'], |
| 1029 }, { |
| 1030 'toolsets': ['target'], |
| 1031 }], |
| 1032 |
| 1033 ], |
998 'link_settings': { | 1034 'link_settings': { |
999 'libraries': [ | 1035 'libraries': [ |
1000 '-lv8', | 1036 '-lv8', |
1001 ], | 1037 ], |
1002 }, | 1038 }, |
1003 }, | 1039 }, |
1004 { | 1040 { |
1005 'target_name': 'v8_shell', | 1041 'target_name': 'v8_shell', |
1006 'type': 'none', | 1042 'type': 'none', |
1007 'toolsets': ['host'], | 1043 'conditions': [ |
| 1044 ['want_separate_host_toolset==1', { |
| 1045 'toolsets': ['host'], |
| 1046 }, { |
| 1047 'toolsets': ['target'], |
| 1048 }], |
| 1049 ], |
1008 'dependencies': [ | 1050 'dependencies': [ |
1009 'v8' | 1051 'v8' |
1010 ], | 1052 ], |
1011 }, | 1053 }, |
1012 ], | 1054 ], |
1013 }], | 1055 }], |
1014 ], | 1056 ], |
1015 } | 1057 } |
OLD | NEW |