Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Side by Side Diff: tools/gyp/v8.gyp

Issue 7383006: Make GYP build usable for day-to-day work (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix autogenerated d8-js.cc Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/preparser/testcfg.py ('k') | tools/test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 56
57 'v8_use_snapshot%': 'true', 57 'v8_use_snapshot%': 'true',
58 'host_os%': '<(OS)', 58 'host_os%': '<(OS)',
59 'v8_use_liveobjectlist%': 'false', 59 'v8_use_liveobjectlist%': 'false',
60 }, 60 },
61 'conditions': [ 61 'conditions': [
62 ['use_system_v8==0', { 62 ['use_system_v8==0', {
63 'target_defaults': { 63 'target_defaults': {
64 'defines': [
65 'ENABLE_DEBUGGER_SUPPORT',
66 ],
67 'conditions': [ 64 'conditions': [
68 ['OS!="mac"', { 65 ['OS!="mac"', {
69 # TODO(mark): The OS!="mac" conditional is temporary. It can be 66 # TODO(mark): The OS!="mac" conditional is temporary. It can be
70 # removed once the Mac Chromium build stops setting target_arch to 67 # 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 68 # 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 69 # OS=="mac" can be removed at that time as well. This can be cleaned
73 # up once http://crbug.com/44205 is fixed. 70 # up once http://crbug.com/44205 is fixed.
74 'conditions': [ 71 'conditions': [
75 ['v8_target_arch=="arm"', { 72 ['v8_target_arch=="arm"', {
76 'defines': [ 73 'defines': [
(...skipping 13 matching lines...) Expand all
90 [ 'v8_can_use_vfp_instructions=="true"', { 87 [ 'v8_can_use_vfp_instructions=="true"', {
91 'defines': [ 88 'defines': [
92 'CAN_USE_VFP_INSTRUCTIONS', 89 'CAN_USE_VFP_INSTRUCTIONS',
93 ], 90 ],
94 }], 91 }],
95 [ 'v8_use_arm_eabi_hardfloat=="true"', { 92 [ 'v8_use_arm_eabi_hardfloat=="true"', {
96 'defines': [ 93 'defines': [
97 'USE_EABI_HARDFLOAT=1', 94 'USE_EABI_HARDFLOAT=1',
98 'CAN_USE_VFP_INSTRUCTIONS', 95 'CAN_USE_VFP_INSTRUCTIONS',
99 ], 96 ],
97 'cflags': [
98 '-mfloat-abi=hard',
99 ],
100 }, {
101 'defines': [
102 'USE_EABI_HARDFLOAT=0',
103 ],
104 }],
105 # The ARM assembler assumes the host is 32 bits,
106 # so force building 32-bit host tools.
107 [ 'host_arch=="x64"', {
108 'cflags': ['-m32'],
109 'ldflags': ['-m32'],
100 }], 110 }],
101 ], 111 ],
102 }], 112 }],
103 ['v8_target_arch=="ia32"', { 113 ['v8_target_arch=="ia32"', {
104 'defines': [ 114 'defines': [
105 'V8_TARGET_ARCH_IA32', 115 'V8_TARGET_ARCH_IA32',
106 ], 116 ],
107 }], 117 }],
108 ['v8_target_arch=="x64"', { 118 ['v8_target_arch=="x64"', {
109 'defines': [ 119 'defines': [
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 ], 158 ],
149 }, 159 },
150 'VCLinkerTool': { 160 'VCLinkerTool': {
151 'LinkIncremental': '2', 161 'LinkIncremental': '2',
152 }, 162 },
153 }, 163 },
154 'conditions': [ 164 'conditions': [
155 ['OS=="freebsd" or OS=="openbsd"', { 165 ['OS=="freebsd" or OS=="openbsd"', {
156 'cflags': [ '-I/usr/local/include' ], 166 'cflags': [ '-I/usr/local/include' ],
157 }], 167 }],
168 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
169 'cflags': [ '-Wall', '-Werror', '-W', '-Wno-unused-parameter',
170 '-Wnon-virtual-dtor' ],
171 }],
158 ], 172 ],
159 }, 173 },
160 'Release': { 174 'Release': {
161 'conditions': [ 175 'conditions': [
162 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 176 ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
163 'cflags!': [ 177 'cflags!': [
164 '-O2', 178 '-O2',
165 '-Os', 179 '-Os',
166 ], 180 ],
167 'cflags': [
168 '-fomit-frame-pointer',
169 '-O3',
170 ],
171 'conditions': [ 181 'conditions': [
172 [ 'gcc_version==44', { 182 [ 'gcc_version==44', {
173 'cflags': [ 183 'cflags': [
174 # Avoid crashes with gcc 4.4 in the v8 test suite. 184 # Avoid crashes with gcc 4.4 in the v8 test suite.
175 '-fno-tree-vrp', 185 '-fno-tree-vrp',
176 ], 186 ],
177 }], 187 }],
178 ], 188 ],
179 }], 189 }],
180 ['OS=="freebsd" or OS=="openbsd"', { 190 ['OS=="freebsd" or OS=="openbsd"', {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 }, 232 },
223 }, 233 },
224 }], 234 }],
225 ], 235 ],
226 }, 236 },
227 }, 237 },
228 }, 238 },
229 'targets': [ 239 'targets': [
230 { 240 {
231 'target_name': 'v8', 241 'target_name': 'v8',
232 'toolsets': ['host', 'target'],
233 'conditions': [ 242 'conditions': [
243 ['want_separate_host_toolset==1', {
244 'toolsets': ['host', 'target'],
245 }, {
246 'toolsets': ['target'],
247 }],
234 ['v8_use_snapshot=="true"', { 248 ['v8_use_snapshot=="true"', {
235 'dependencies': ['v8_snapshot'], 249 'dependencies': ['v8_snapshot'],
236 }, 250 },
237 { 251 {
238 'dependencies': ['v8_nosnapshot'], 252 'dependencies': ['v8_nosnapshot'],
239 }], 253 }],
240 ['component=="shared_library"', { 254 ['component=="shared_library"', {
241 'type': '<(component)', 255 'type': '<(component)',
242 'sources': [ 256 'sources': [
243 # Note: on non-Windows we still build this file so that gyp 257 # Note: on non-Windows we still build this file so that gyp
(...skipping 19 matching lines...) Expand all
263 'V8_SHARED', 277 'V8_SHARED',
264 ], 278 ],
265 }, 279 },
266 }], 280 }],
267 ], 281 ],
268 }, 282 },
269 { 283 {
270 'type': 'none', 284 'type': 'none',
271 }], 285 }],
272 ], 286 ],
273 'direct_dependent_settings': {
274 'include_dirs': [
275 '../../include',
276 ],
277 },
278 }, 287 },
279 { 288 {
280 'target_name': 'v8_snapshot', 289 'target_name': 'v8_snapshot',
281 'type': '<(library)', 290 'type': '<(library)',
282 'toolsets': ['host', 'target'],
283 'conditions': [ 291 'conditions': [
292 ['want_separate_host_toolset==1', {
293 'toolsets': ['host', 'target'],
294 'dependencies': ['mksnapshot#host', 'js2c#host'],
295 }, {
296 'toolsets': ['target'],
297 'dependencies': ['mksnapshot', 'js2c'],
298 }],
284 ['component=="shared_library"', { 299 ['component=="shared_library"', {
285 'conditions': [ 300 '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"', { 301 ['OS=="win"', {
293 'defines': [ 302 'defines': [
294 'BUILDING_V8_SHARED', 303 'BUILDING_V8_SHARED',
295 ], 304 ],
296 'direct_dependent_settings': { 305 'direct_dependent_settings': {
297 'defines': [ 306 'defines': [
298 'USING_V8_SHARED', 307 'USING_V8_SHARED',
299 ], 308 ],
300 }, 309 },
301 }, { 310 }, {
302 'defines': [ 311 'defines': [
303 'V8_SHARED', 312 'V8_SHARED',
304 ], 313 ],
305 'direct_dependent_settings': { 314 'direct_dependent_settings': {
306 'defines': [ 315 'defines': [
307 'V8_SHARED', 316 'V8_SHARED',
308 ], 317 ],
309 }, 318 },
310 }], 319 }],
311 ], 320 ],
312 }], 321 }],
313 ], 322 ],
314 'dependencies': [ 323 'dependencies': [
315 'mksnapshot#host',
316 'js2c#host',
317 'v8_base', 324 'v8_base',
318 ], 325 ],
319 'include_dirs+': [ 326 'include_dirs+': [
320 '../../src', 327 '../../src',
321 ], 328 ],
322 'sources': [ 329 'sources': [
323 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 330 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
324 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', 331 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
325 '<(INTERMEDIATE_DIR)/snapshot.cc', 332 '<(INTERMEDIATE_DIR)/snapshot.cc',
326 ], 333 ],
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 '<@(_inputs)', 380 '<@(_inputs)',
374 '<@(mksnapshot_flags)', 381 '<@(mksnapshot_flags)',
375 '<@(_outputs)' 382 '<@(_outputs)'
376 ], 383 ],
377 }, 384 },
378 ], 385 ],
379 }, 386 },
380 { 387 {
381 'target_name': 'v8_nosnapshot', 388 'target_name': 'v8_nosnapshot',
382 'type': '<(library)', 389 'type': '<(library)',
383 'toolsets': ['host', 'target'],
384 'dependencies': [ 390 'dependencies': [
385 'js2c#host',
386 'v8_base', 391 'v8_base',
387 ], 392 ],
388 'include_dirs+': [ 393 'include_dirs+': [
389 '../../src', 394 '../../src',
390 ], 395 ],
391 'sources': [ 396 'sources': [
392 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 397 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
393 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', 398 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
394 '../../src/snapshot-empty.cc', 399 '../../src/snapshot-empty.cc',
395 ], 400 ],
396 'conditions': [ 401 'conditions': [
397 # The ARM assembler assumes the host is 32 bits, so force building 402 ['want_separate_host_toolset==1', {
398 # 32-bit host tools. 403 'toolsets': ['host', 'target'],
399 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"', { 404 'dependencies': ['js2c#host'],
400 'cflags': ['-m32'], 405 }, {
401 'ldflags': ['-m32'], 406 'toolsets': ['target'],
407 'dependencies': ['js2c'],
402 }], 408 }],
403 ['component=="shared_library"', { 409 ['component=="shared_library"', {
404 'defines': [ 410 'defines': [
405 'BUILDING_V8_SHARED', 411 'BUILDING_V8_SHARED',
406 'V8_SHARED', 412 'V8_SHARED',
407 ], 413 ],
408 }], 414 }],
409 ] 415 ]
410 }, 416 },
411 { 417 {
412 'target_name': 'v8_base', 418 'target_name': 'v8_base',
413 'type': '<(library)', 419 'type': '<(library)',
414 'toolsets': ['host', 'target'],
415 'include_dirs+': [ 420 'include_dirs+': [
416 '../../src', 421 '../../src',
417 ], 422 ],
418 'sources': [ 423 'sources': [
419 '../../src/accessors.cc', 424 '../../src/accessors.cc',
420 '../../src/accessors.h', 425 '../../src/accessors.h',
421 '../../src/allocation.cc', 426 '../../src/allocation.cc',
422 '../../src/allocation.h', 427 '../../src/allocation.h',
423 '../../src/api.cc', 428 '../../src/api.cc',
424 '../../src/api.h', 429 '../../src/api.h',
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 '../../src/vm-state.h', 664 '../../src/vm-state.h',
660 '../../src/zone-inl.h', 665 '../../src/zone-inl.h',
661 '../../src/zone.cc', 666 '../../src/zone.cc',
662 '../../src/zone.h', 667 '../../src/zone.h',
663 '../../src/extensions/externalize-string-extension.cc', 668 '../../src/extensions/externalize-string-extension.cc',
664 '../../src/extensions/externalize-string-extension.h', 669 '../../src/extensions/externalize-string-extension.h',
665 '../../src/extensions/gc-extension.cc', 670 '../../src/extensions/gc-extension.cc',
666 '../../src/extensions/gc-extension.h', 671 '../../src/extensions/gc-extension.h',
667 ], 672 ],
668 'conditions': [ 673 'conditions': [
674 ['want_separate_host_toolset==1', {
675 'toolsets': ['host', 'target'],
676 }, {
677 'toolsets': ['target'],
678 }],
669 ['v8_target_arch=="arm"', { 679 ['v8_target_arch=="arm"', {
670 'include_dirs+': [
671 '../../src/arm',
672 ],
673 'sources': [ 680 'sources': [
674 '../../src/arm/assembler-arm-inl.h', 681 '../../src/arm/assembler-arm-inl.h',
675 '../../src/arm/assembler-arm.cc', 682 '../../src/arm/assembler-arm.cc',
676 '../../src/arm/assembler-arm.h', 683 '../../src/arm/assembler-arm.h',
677 '../../src/arm/builtins-arm.cc', 684 '../../src/arm/builtins-arm.cc',
678 '../../src/arm/code-stubs-arm.cc', 685 '../../src/arm/code-stubs-arm.cc',
679 '../../src/arm/code-stubs-arm.h', 686 '../../src/arm/code-stubs-arm.h',
680 '../../src/arm/codegen-arm.cc', 687 '../../src/arm/codegen-arm.cc',
681 '../../src/arm/codegen-arm.h', 688 '../../src/arm/codegen-arm.h',
682 '../../src/arm/constants-arm.h', 689 '../../src/arm/constants-arm.h',
(...skipping 12 matching lines...) Expand all
695 '../../src/arm/lithium-codegen-arm.h', 702 '../../src/arm/lithium-codegen-arm.h',
696 '../../src/arm/lithium-gap-resolver-arm.cc', 703 '../../src/arm/lithium-gap-resolver-arm.cc',
697 '../../src/arm/lithium-gap-resolver-arm.h', 704 '../../src/arm/lithium-gap-resolver-arm.h',
698 '../../src/arm/macro-assembler-arm.cc', 705 '../../src/arm/macro-assembler-arm.cc',
699 '../../src/arm/macro-assembler-arm.h', 706 '../../src/arm/macro-assembler-arm.h',
700 '../../src/arm/regexp-macro-assembler-arm.cc', 707 '../../src/arm/regexp-macro-assembler-arm.cc',
701 '../../src/arm/regexp-macro-assembler-arm.h', 708 '../../src/arm/regexp-macro-assembler-arm.h',
702 '../../src/arm/simulator-arm.cc', 709 '../../src/arm/simulator-arm.cc',
703 '../../src/arm/stub-cache-arm.cc', 710 '../../src/arm/stub-cache-arm.cc',
704 ], 711 ],
705 'conditions': [
706 # The ARM assembler assumes the host is 32 bits,
707 # so force building 32-bit host tools.
708 ['host_arch=="x64" and _toolset=="host"', {
709 'cflags': ['-m32'],
710 'ldflags': ['-m32'],
711 }]
712 ]
713 }], 712 }],
714 ['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', { 713 ['v8_target_arch=="ia32" or v8_target_arch=="mac" or OS=="mac"', {
715 'include_dirs+': [
716 '../../src/ia32',
717 ],
718 'sources': [ 714 'sources': [
719 '../../src/ia32/assembler-ia32-inl.h', 715 '../../src/ia32/assembler-ia32-inl.h',
720 '../../src/ia32/assembler-ia32.cc', 716 '../../src/ia32/assembler-ia32.cc',
721 '../../src/ia32/assembler-ia32.h', 717 '../../src/ia32/assembler-ia32.h',
722 '../../src/ia32/builtins-ia32.cc', 718 '../../src/ia32/builtins-ia32.cc',
723 '../../src/ia32/code-stubs-ia32.cc', 719 '../../src/ia32/code-stubs-ia32.cc',
724 '../../src/ia32/code-stubs-ia32.h', 720 '../../src/ia32/code-stubs-ia32.h',
725 '../../src/ia32/codegen-ia32.cc', 721 '../../src/ia32/codegen-ia32.cc',
726 '../../src/ia32/codegen-ia32.h', 722 '../../src/ia32/codegen-ia32.h',
727 '../../src/ia32/cpu-ia32.cc', 723 '../../src/ia32/cpu-ia32.cc',
(...skipping 11 matching lines...) Expand all
739 '../../src/ia32/lithium-ia32.cc', 735 '../../src/ia32/lithium-ia32.cc',
740 '../../src/ia32/lithium-ia32.h', 736 '../../src/ia32/lithium-ia32.h',
741 '../../src/ia32/macro-assembler-ia32.cc', 737 '../../src/ia32/macro-assembler-ia32.cc',
742 '../../src/ia32/macro-assembler-ia32.h', 738 '../../src/ia32/macro-assembler-ia32.h',
743 '../../src/ia32/regexp-macro-assembler-ia32.cc', 739 '../../src/ia32/regexp-macro-assembler-ia32.cc',
744 '../../src/ia32/regexp-macro-assembler-ia32.h', 740 '../../src/ia32/regexp-macro-assembler-ia32.h',
745 '../../src/ia32/stub-cache-ia32.cc', 741 '../../src/ia32/stub-cache-ia32.cc',
746 ], 742 ],
747 }], 743 }],
748 ['v8_target_arch=="x64" or v8_target_arch=="mac" or OS=="mac"', { 744 ['v8_target_arch=="x64" or v8_target_arch=="mac" or OS=="mac"', {
749 'include_dirs+': [
750 '../../src/x64',
751 ],
752 'sources': [ 745 'sources': [
753 '../../src/x64/assembler-x64-inl.h', 746 '../../src/x64/assembler-x64-inl.h',
754 '../../src/x64/assembler-x64.cc', 747 '../../src/x64/assembler-x64.cc',
755 '../../src/x64/assembler-x64.h', 748 '../../src/x64/assembler-x64.h',
756 '../../src/x64/builtins-x64.cc', 749 '../../src/x64/builtins-x64.cc',
757 '../../src/x64/code-stubs-x64.cc', 750 '../../src/x64/code-stubs-x64.cc',
758 '../../src/x64/code-stubs-x64.h', 751 '../../src/x64/code-stubs-x64.h',
759 '../../src/x64/codegen-x64.cc', 752 '../../src/x64/codegen-x64.cc',
760 '../../src/x64/codegen-x64.h', 753 '../../src/x64/codegen-x64.h',
761 '../../src/x64/cpu-x64.cc', 754 '../../src/x64/cpu-x64.cc',
(...skipping 12 matching lines...) Expand all
774 '../../src/x64/lithium-x64.h', 767 '../../src/x64/lithium-x64.h',
775 '../../src/x64/macro-assembler-x64.cc', 768 '../../src/x64/macro-assembler-x64.cc',
776 '../../src/x64/macro-assembler-x64.h', 769 '../../src/x64/macro-assembler-x64.h',
777 '../../src/x64/regexp-macro-assembler-x64.cc', 770 '../../src/x64/regexp-macro-assembler-x64.cc',
778 '../../src/x64/regexp-macro-assembler-x64.h', 771 '../../src/x64/regexp-macro-assembler-x64.h',
779 '../../src/x64/stub-cache-x64.cc', 772 '../../src/x64/stub-cache-x64.cc',
780 ], 773 ],
781 }], 774 }],
782 ['OS=="linux"', { 775 ['OS=="linux"', {
783 'link_settings': { 776 'link_settings': {
784 'libraries': [
785 # Needed for clock_gettime() used by src/platform-linux.cc.
786 '-lrt',
787 ],
788 'conditions': [ 777 'conditions': [
789 ['v8_compress_startup_data=="bz2"', { 778 ['v8_compress_startup_data=="bz2"', {
790 'libraries': [ 779 'libraries': [
791 '-lbz2', 780 '-lbz2',
792 ]}], 781 ]}],
793 ], 782 ],
794 }, 783 },
795 'sources': [ 784 'sources': [
796 '../../src/platform-linux.cc', 785 '../../src/platform-linux.cc',
797 '../../src/platform-posix.cc' 786 '../../src/platform-posix.cc'
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 'defines': [ 852 'defines': [
864 'BUILDING_V8_SHARED', 853 'BUILDING_V8_SHARED',
865 'V8_SHARED', 854 'V8_SHARED',
866 ], 855 ],
867 }], 856 }],
868 ], 857 ],
869 }, 858 },
870 { 859 {
871 'target_name': 'js2c', 860 'target_name': 'js2c',
872 'type': 'none', 861 'type': 'none',
873 'toolsets': ['host'], 862 'conditions': [
863 ['want_separate_host_toolset==1', {
864 'toolsets': ['host'],
865 }, {
866 'toolsets': ['target'],
867 }],
868 ],
874 'variables': { 869 'variables': {
875 'library_files': [ 870 'library_files': [
876 '../../src/runtime.js', 871 '../../src/runtime.js',
877 '../../src/v8natives.js', 872 '../../src/v8natives.js',
878 '../../src/array.js', 873 '../../src/array.js',
879 '../../src/string.js', 874 '../../src/string.js',
880 '../../src/uri.js', 875 '../../src/uri.js',
881 '../../src/math.js', 876 '../../src/math.js',
882 '../../src/messages.js', 877 '../../src/messages.js',
883 '../../src/apinatives.js', 878 '../../src/apinatives.js',
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 'EXPERIMENTAL', 924 'EXPERIMENTAL',
930 '<(v8_compress_startup_data)', 925 '<(v8_compress_startup_data)',
931 '<@(experimental_library_files)' 926 '<@(experimental_library_files)'
932 ], 927 ],
933 }, 928 },
934 ], 929 ],
935 }, 930 },
936 { 931 {
937 'target_name': 'mksnapshot', 932 'target_name': 'mksnapshot',
938 'type': 'executable', 933 'type': 'executable',
939 'toolsets': ['host'],
940 'dependencies': [ 934 'dependencies': [
941 'v8_nosnapshot', 935 'v8_nosnapshot',
942 ], 936 ],
943 'include_dirs+': [ 937 'include_dirs+': [
944 '../../src', 938 '../../src',
945 ], 939 ],
946 'sources': [ 940 'sources': [
947 '../../src/mksnapshot.cc', 941 '../../src/mksnapshot.cc',
948 ], 942 ],
949 'conditions': [ 943 'conditions': [
950 # The ARM assembler assumes the host is 32 bits, so force building 944 ['want_separate_host_toolset==1', {
951 # 32-bit host tools. 945 'toolsets': ['host'],
952 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"', { 946 }, {
953 'cflags': ['-m32'], 947 'toolsets': ['target'],
954 'ldflags': ['-m32'],
955 }], 948 }],
956 ['v8_compress_startup_data=="bz2"', { 949 ['v8_compress_startup_data=="bz2"', {
957 'libraries': [ 950 'libraries': [
958 '-lbz2', 951 '-lbz2',
959 ]}], 952 ]}],
960 ] 953 ]
961 }, 954 },
962 { 955 {
963 'target_name': 'v8_shell', 956 'target_name': 'v8_shell',
964 'type': 'executable', 957 'type': 'executable',
965 'toolsets': ['host'],
966 'dependencies': [ 958 'dependencies': [
967 'v8' 959 'v8'
968 ], 960 ],
969 'sources': [ 961 'sources': [
970 '../../samples/shell.cc', 962 '../../samples/shell.cc',
971 ], 963 ],
972 'conditions': [ 964 'conditions': [
965 ['want_separate_host_toolset==1', {
966 'toolsets': ['host'],
967 }, {
968 'toolsets': ['target'],
969 }],
973 ['OS=="win"', { 970 ['OS=="win"', {
974 # This could be gotten by not setting chromium_code, if that's OK. 971 # This could be gotten by not setting chromium_code, if that's OK.
975 'defines': ['_CRT_SECURE_NO_WARNINGS'], 972 'defines': ['_CRT_SECURE_NO_WARNINGS'],
976 }], 973 }],
977 # The ARM assembler assumes the host is 32 bits, so force building
978 # 32-bit host tools.
979 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"', {
980 'cflags': ['-m32'],
981 'ldflags': ['-m32'],
982 }],
983 ['v8_compress_startup_data=="bz2"', { 974 ['v8_compress_startup_data=="bz2"', {
984 'libraries': [ 975 'libraries': [
985 '-lbz2', 976 '-lbz2',
986 ]}], 977 ]}],
987 ], 978 ],
988 }, 979 },
980 {
981 'target_name': 'preparser_lib',
982 'type': '<(library)',
983 'include_dirs+': [
984 '../../src',
985 ],
986 'sources': [
987 '../../src/allocation.cc',
988 '../../src/bignum.cc',
989 '../../src/cached-powers.cc',
990 '../../src/conversions.cc',
991 '../../src/hashmap.cc',
992 '../../src/preparse-data.cc',
993 '../../src/preparser.cc',
994 '../../src/preparser-api.cc',
995 '../../src/scanner-base.cc',
996 '../../src/strtod.cc',
997 '../../src/token.cc',
998 '../../src/unicode.cc',
999 '../../src/utils.cc',
1000 ],
1001 },
989 ], 1002 ],
990 }, { # use_system_v8 != 0 1003 }, { # use_system_v8 != 0
991 'targets': [ 1004 'targets': [
992 { 1005 {
993 'target_name': 'v8', 1006 'target_name': 'v8',
994 'type': 'settings', 1007 'type': 'settings',
995 'toolsets': ['host', 'target'], 1008 'conditions': [
1009 ['want_separate_host_toolset==1', {
1010 'toolsets': ['host', 'target'],
1011 }, {
1012 'toolsets': ['target'],
1013 }],
1014
1015 ],
996 'link_settings': { 1016 'link_settings': {
997 'libraries': [ 1017 'libraries': [
998 '-lv8', 1018 '-lv8',
999 ], 1019 ],
1000 }, 1020 },
1001 }, 1021 },
1002 { 1022 {
1003 'target_name': 'v8_shell', 1023 'target_name': 'v8_shell',
1004 'type': 'none', 1024 'type': 'none',
1005 'toolsets': ['host'], 1025 'conditions': [
1026 ['want_separate_host_toolset==1', {
1027 'toolsets': ['host'],
1028 }, {
1029 'toolsets': ['target'],
1030 }],
1031 ],
1006 'dependencies': [ 1032 'dependencies': [
1007 'v8' 1033 'v8'
1008 ], 1034 ],
1009 }, 1035 },
1010 ], 1036 ],
1011 }], 1037 }],
1012 ], 1038 ],
1013 } 1039 }
OLDNEW
« no previous file with comments | « test/preparser/testcfg.py ('k') | tools/test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698