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

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

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