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

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

Issue 7348008: Merge up to 8597 to experimental/gc from the bleeding edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
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 | « tools/grokdump.py ('k') | tools/js2c.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 12 matching lines...) Expand all
23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 { 28 {
29 'variables': { 29 'variables': {
30 'use_system_v8%': 0, 30 'use_system_v8%': 0,
31 'msvs_use_common_release': 0, 31 'msvs_use_common_release': 0,
32 'gcc_version%': 'unknown', 32 'gcc_version%': 'unknown',
33 'v8_compress_startup_data%': 'false', 33 'v8_compress_startup_data%': 'off',
34 'v8_target_arch%': '<(target_arch)', 34 'v8_target_arch%': '<(target_arch)',
35 35
36 # Setting 'v8_can_use_unaligned_accesses' to 'true' will allow the code 36 # Setting 'v8_can_use_unaligned_accesses' to 'true' will allow the code
37 # generated by V8 to do unaligned memory access, and setting it to 'false' 37 # generated by V8 to do unaligned memory access, and setting it to 'false'
38 # will ensure that the generated code will always do aligned memory 38 # will ensure that the generated code will always do aligned memory
39 # accesses. The default value of 'default' will try to determine the correct 39 # accesses. The default value of 'default' will try to determine the correct
40 # setting. Note that for Intel architectures (ia32 and x64) unaligned memory 40 # setting. Note that for Intel architectures (ia32 and x64) unaligned memory
41 # access is allowed for all CPUs. 41 # access is allowed for all CPUs.
42 'v8_can_use_unaligned_accesses%': 'default', 42 'v8_can_use_unaligned_accesses%': 'default',
43 43
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 }, 225 },
226 }, 226 },
227 }], 227 }],
228 ], 228 ],
229 }, 229 },
230 }, 230 },
231 }, 231 },
232 'targets': [ 232 'targets': [
233 { 233 {
234 'target_name': 'v8', 234 'target_name': 'v8',
235 'toolsets': ['host', 'target'],
235 'conditions': [ 236 'conditions': [
236 ['v8_use_snapshot=="true"', { 237 ['v8_use_snapshot=="true"', {
237 'dependencies': ['v8_snapshot'], 238 'dependencies': ['v8_snapshot'],
238 }, 239 },
239 { 240 {
240 'dependencies': ['v8_nosnapshot'], 241 'dependencies': ['v8_nosnapshot'],
241 }], 242 }],
242 ['component=="shared_library"', { 243 ['component=="shared_library"', {
243 'type': '<(component)', 244 'type': '<(component)',
244 'sources': [ 245 'sources': [
(...skipping 29 matching lines...) Expand all
274 ], 275 ],
275 'direct_dependent_settings': { 276 'direct_dependent_settings': {
276 'include_dirs': [ 277 'include_dirs': [
277 '../../include', 278 '../../include',
278 ], 279 ],
279 }, 280 },
280 }, 281 },
281 { 282 {
282 'target_name': 'v8_snapshot', 283 'target_name': 'v8_snapshot',
283 'type': '<(library)', 284 'type': '<(library)',
285 'toolsets': ['host', 'target'],
284 'conditions': [ 286 'conditions': [
285 ['component=="shared_library"', { 287 ['component=="shared_library"', {
286 'conditions': [ 288 'conditions': [
289 # The ARM assembler assumes the host is 32 bits, so force buildi ng
290 # 32-bit host tools.
291 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host "', {
292 'cflags': ['-m32'],
293 'ldflags': ['-m32'],
294 }],
287 ['OS=="win"', { 295 ['OS=="win"', {
288 'defines': [ 296 'defines': [
289 'BUILDING_V8_SHARED', 297 'BUILDING_V8_SHARED',
290 ], 298 ],
291 'direct_dependent_settings': { 299 'direct_dependent_settings': {
292 'defines': [ 300 'defines': [
293 'USING_V8_SHARED', 301 'USING_V8_SHARED',
294 ], 302 ],
295 }, 303 },
296 }, { 304 }, {
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 '../../src/hydrogen-instructions.h', 528 '../../src/hydrogen-instructions.h',
521 '../../src/ic-inl.h', 529 '../../src/ic-inl.h',
522 '../../src/ic.cc', 530 '../../src/ic.cc',
523 '../../src/ic.h', 531 '../../src/ic.h',
524 '../../src/incremental-marking.cc', 532 '../../src/incremental-marking.cc',
525 '../../src/incremental-marking.h', 533 '../../src/incremental-marking.h',
526 '../../src/inspector.cc', 534 '../../src/inspector.cc',
527 '../../src/inspector.h', 535 '../../src/inspector.h',
528 '../../src/interpreter-irregexp.cc', 536 '../../src/interpreter-irregexp.cc',
529 '../../src/interpreter-irregexp.h', 537 '../../src/interpreter-irregexp.h',
530 '../../src/json-parser.cc',
531 '../../src/json-parser.h', 538 '../../src/json-parser.h',
532 '../../src/jsregexp.cc', 539 '../../src/jsregexp.cc',
533 '../../src/jsregexp.h', 540 '../../src/jsregexp.h',
534 '../../src/isolate.cc', 541 '../../src/isolate.cc',
535 '../../src/isolate.h', 542 '../../src/isolate.h',
536 '../../src/list-inl.h', 543 '../../src/list-inl.h',
537 '../../src/list.h', 544 '../../src/list.h',
538 '../../src/lithium.cc', 545 '../../src/lithium.cc',
539 '../../src/lithium.h', 546 '../../src/lithium.h',
540 '../../src/lithium-allocator.cc', 547 '../../src/lithium-allocator.cc',
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 '../../src/unicode.cc', 644 '../../src/unicode.cc',
638 '../../src/unicode.h', 645 '../../src/unicode.h',
639 '../../src/utils-inl.h', 646 '../../src/utils-inl.h',
640 '../../src/utils.cc', 647 '../../src/utils.cc',
641 '../../src/utils.h', 648 '../../src/utils.h',
642 '../../src/v8-counters.cc', 649 '../../src/v8-counters.cc',
643 '../../src/v8-counters.h', 650 '../../src/v8-counters.h',
644 '../../src/v8.cc', 651 '../../src/v8.cc',
645 '../../src/v8.h', 652 '../../src/v8.h',
646 '../../src/v8checks.h', 653 '../../src/v8checks.h',
654 '../../src/v8conversions.cc',
655 '../../src/v8conversions.h',
647 '../../src/v8globals.h', 656 '../../src/v8globals.h',
648 '../../src/v8memory.h', 657 '../../src/v8memory.h',
649 '../../src/v8threads.cc', 658 '../../src/v8threads.cc',
650 '../../src/v8threads.h', 659 '../../src/v8threads.h',
660 '../../src/v8utils.cc',
651 '../../src/v8utils.h', 661 '../../src/v8utils.h',
652 '../../src/variables.cc', 662 '../../src/variables.cc',
653 '../../src/variables.h', 663 '../../src/variables.h',
654 '../../src/version.cc', 664 '../../src/version.cc',
655 '../../src/version.h', 665 '../../src/version.h',
656 '../../src/vm-state-inl.h', 666 '../../src/vm-state-inl.h',
657 '../../src/vm-state.h', 667 '../../src/vm-state.h',
658 '../../src/zone-inl.h', 668 '../../src/zone-inl.h',
659 '../../src/zone.cc', 669 '../../src/zone.cc',
660 '../../src/zone.h', 670 '../../src/zone.h',
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 '<@(library_files)', 910 '<@(library_files)',
901 ], 911 ],
902 'outputs': [ 912 'outputs': [
903 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 913 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
904 ], 914 ],
905 'action': [ 915 'action': [
906 'python', 916 'python',
907 '../../tools/js2c.py', 917 '../../tools/js2c.py',
908 '<@(_outputs)', 918 '<@(_outputs)',
909 'CORE', 919 'CORE',
920 '<(v8_compress_startup_data)',
910 '<@(library_files)' 921 '<@(library_files)'
911 ], 922 ],
912 }, 923 },
913 { 924 {
914 'action_name': 'js2c_experimental', 925 'action_name': 'js2c_experimental',
915 'inputs': [ 926 'inputs': [
916 '../../tools/js2c.py', 927 '../../tools/js2c.py',
917 '<@(experimental_library_files)', 928 '<@(experimental_library_files)',
918 ], 929 ],
919 'outputs': [ 930 'outputs': [
920 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', 931 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
921 ], 932 ],
922 'action': [ 933 'action': [
923 'python', 934 'python',
924 '../../tools/js2c.py', 935 '../../tools/js2c.py',
925 '<@(_outputs)', 936 '<@(_outputs)',
926 'EXPERIMENTAL', 937 'EXPERIMENTAL',
938 '<(v8_compress_startup_data)',
927 '<@(experimental_library_files)' 939 '<@(experimental_library_files)'
928 ], 940 ],
929 }, 941 },
930 ], 942 ],
931 }, 943 },
932 { 944 {
933 'target_name': 'mksnapshot', 945 'target_name': 'mksnapshot',
934 'type': 'executable', 946 'type': 'executable',
935 'toolsets': ['host'], 947 'toolsets': ['host'],
936 'dependencies': [ 948 'dependencies': [
(...skipping 14 matching lines...) Expand all
951 }], 963 }],
952 ['v8_compress_startup_data=="bz2"', { 964 ['v8_compress_startup_data=="bz2"', {
953 'libraries': [ 965 'libraries': [
954 '-lbz2', 966 '-lbz2',
955 ]}], 967 ]}],
956 ] 968 ]
957 }, 969 },
958 { 970 {
959 'target_name': 'v8_shell', 971 'target_name': 'v8_shell',
960 'type': 'executable', 972 'type': 'executable',
973 'toolsets': ['host'],
961 'dependencies': [ 974 'dependencies': [
962 'v8' 975 'v8'
963 ], 976 ],
964 'sources': [ 977 'sources': [
965 '../../samples/shell.cc', 978 '../../samples/shell.cc',
966 ], 979 ],
967 'conditions': [ 980 'conditions': [
968 ['OS=="win"', { 981 ['OS=="win"', {
969 # This could be gotten by not setting chromium_code, if that's OK. 982 # This could be gotten by not setting chromium_code, if that's OK.
970 'defines': ['_CRT_SECURE_NO_WARNINGS'], 983 'defines': ['_CRT_SECURE_NO_WARNINGS'],
971 }], 984 }],
985 # The ARM assembler assumes the host is 32 bits, so force building
986 # 32-bit host tools.
987 ['v8_target_arch=="arm" and host_arch=="x64" and _toolset=="host"', {
988 'cflags': ['-m32'],
989 'ldflags': ['-m32'],
990 }],
972 ['v8_compress_startup_data=="bz2"', { 991 ['v8_compress_startup_data=="bz2"', {
973 'libraries': [ 992 'libraries': [
974 '-lbz2', 993 '-lbz2',
975 ]}], 994 ]}],
976 ], 995 ],
977 }, 996 },
978 ], 997 ],
979 }, { # use_system_v8 != 0 998 }, { # use_system_v8 != 0
980 'targets': [ 999 'targets': [
981 { 1000 {
982 'target_name': 'v8', 1001 'target_name': 'v8',
983 'type': 'settings', 1002 'type': 'settings',
1003 'toolsets': ['host', 'target'],
984 'link_settings': { 1004 'link_settings': {
985 'libraries': [ 1005 'libraries': [
986 '-lv8', 1006 '-lv8',
987 ], 1007 ],
988 }, 1008 },
989 }, 1009 },
990 { 1010 {
991 'target_name': 'v8_shell', 1011 'target_name': 'v8_shell',
992 'type': 'none', 1012 'type': 'none',
1013 'toolsets': ['host'],
993 'dependencies': [ 1014 'dependencies': [
994 'v8' 1015 'v8'
995 ], 1016 ],
996 }, 1017 },
997 ], 1018 ],
998 }], 1019 }],
999 ], 1020 ],
1000 } 1021 }
OLDNEW
« no previous file with comments | « tools/grokdump.py ('k') | tools/js2c.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698