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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 56 |
57 'v8_use_snapshot%': 'true', | 57 'v8_use_snapshot%': 'true', |
| 58 'host_os%': '<(OS)', |
58 'v8_use_liveobjectlist%': 'false', | 59 'v8_use_liveobjectlist%': 'false', |
59 }, | 60 }, |
60 'conditions': [ | 61 'conditions': [ |
61 ['use_system_v8==0', { | 62 ['use_system_v8==0', { |
62 'target_defaults': { | 63 'target_defaults': { |
63 'defines': [ | 64 'defines': [ |
64 'ENABLE_LOGGING_AND_PROFILING', | 65 'ENABLE_LOGGING_AND_PROFILING', |
65 'ENABLE_DEBUGGER_SUPPORT', | 66 'ENABLE_DEBUGGER_SUPPORT', |
66 'ENABLE_VMSTATE_TRACKING', | 67 'ENABLE_VMSTATE_TRACKING', |
67 'V8_FAST_TLS', | 68 'V8_FAST_TLS', |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 ], | 321 ], |
321 'actions': [ | 322 'actions': [ |
322 { | 323 { |
323 'action_name': 'run_mksnapshot', | 324 'action_name': 'run_mksnapshot', |
324 'inputs': [ | 325 'inputs': [ |
325 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFI
X)', | 326 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFI
X)', |
326 ], | 327 ], |
327 'outputs': [ | 328 'outputs': [ |
328 '<(INTERMEDIATE_DIR)/snapshot.cc', | 329 '<(INTERMEDIATE_DIR)/snapshot.cc', |
329 ], | 330 ], |
330 'action': ['<@(_inputs)', '<@(_outputs)'], | 331 'variables': { |
| 332 'mksnapshot_flags': [], |
| 333 }, |
| 334 'conditions': [ |
| 335 ['v8_target_arch=="arm"', { |
| 336 # The following rules should be consistent with chromium's |
| 337 # common.gypi and V8's runtime rule to ensure they all generat
e |
| 338 # the same correct machine code. The following issue is about |
| 339 # V8's runtime rule about vfpv3 and neon: |
| 340 # http://code.google.com/p/v8/issues/detail?id=914 |
| 341 'conditions': [ |
| 342 ['armv7==1', { |
| 343 # The ARM Architecture Manual mandates VFPv3 if NEON is |
| 344 # available. |
| 345 # The current V8 doesn't use d16-d31, so for vfpv3-d16, we
can |
| 346 # also enable vfp3 for the better performance. |
| 347 'conditions': [ |
| 348 ['arm_neon!=1 and arm_fpu!="vfpv3" and arm_fpu!="vfpv3-d
16"', { |
| 349 'variables': { |
| 350 'mksnapshot_flags': [ |
| 351 '--noenable_vfp3', |
| 352 ], |
| 353 }, |
| 354 }], |
| 355 ], |
| 356 },{ # else: armv7!=1 |
| 357 'variables': { |
| 358 'mksnapshot_flags': [ |
| 359 '--noenable_armv7', |
| 360 '--noenable_vfp3', |
| 361 ], |
| 362 }, |
| 363 }], |
| 364 ], |
| 365 }], |
| 366 ], |
| 367 'action': [ |
| 368 '<@(_inputs)', |
| 369 '<@(mksnapshot_flags)', |
| 370 '<@(_outputs)' |
| 371 ], |
331 }, | 372 }, |
332 ], | 373 ], |
333 }, | 374 }, |
334 { | 375 { |
335 'target_name': 'v8_nosnapshot', | 376 'target_name': 'v8_nosnapshot', |
336 'type': '<(library)', | 377 'type': '<(library)', |
337 'toolsets': ['host', 'target'], | 378 'toolsets': ['host', 'target'], |
338 'dependencies': [ | 379 'dependencies': [ |
339 'js2c#host', | 380 'js2c#host', |
340 'v8_base', | 381 'v8_base', |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
741 '-lbz2', | 782 '-lbz2', |
742 ]}], | 783 ]}], |
743 ], | 784 ], |
744 }, | 785 }, |
745 'sources': [ | 786 'sources': [ |
746 '../../src/platform-linux.cc', | 787 '../../src/platform-linux.cc', |
747 '../../src/platform-posix.cc' | 788 '../../src/platform-posix.cc' |
748 ], | 789 ], |
749 } | 790 } |
750 ], | 791 ], |
| 792 ['OS=="android"', { |
| 793 'sources': [ |
| 794 '../../src/platform-posix.cc', |
| 795 ], |
| 796 'conditions': [ |
| 797 ['host_os=="mac" and _toolset!="target"', { |
| 798 'sources': [ |
| 799 '../../src/platform-macos.cc' |
| 800 ] |
| 801 }, { |
| 802 'sources': [ |
| 803 '../../src/platform-linux.cc' |
| 804 ] |
| 805 }], |
| 806 ['_toolset=="target"', { |
| 807 'link_settings': { |
| 808 'libraries': [ |
| 809 '-llog', |
| 810 ], |
| 811 } |
| 812 }], |
| 813 ], |
| 814 }, |
| 815 ], |
751 ['OS=="freebsd"', { | 816 ['OS=="freebsd"', { |
752 'link_settings': { | 817 'link_settings': { |
753 'libraries': [ | 818 'libraries': [ |
754 '-L/usr/local/lib -lexecinfo', | 819 '-L/usr/local/lib -lexecinfo', |
755 ]}, | 820 ]}, |
756 'sources': [ | 821 'sources': [ |
757 '../../src/platform-freebsd.cc', | 822 '../../src/platform-freebsd.cc', |
758 '../../src/platform-posix.cc' | 823 '../../src/platform-posix.cc' |
759 ], | 824 ], |
760 } | 825 } |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 'target_name': 'v8_shell', | 984 'target_name': 'v8_shell', |
920 'type': 'none', | 985 'type': 'none', |
921 'dependencies': [ | 986 'dependencies': [ |
922 'v8' | 987 'v8' |
923 ], | 988 ], |
924 }, | 989 }, |
925 ], | 990 ], |
926 }], | 991 }], |
927 ], | 992 ], |
928 } | 993 } |
OLD | NEW |