OLD | NEW |
1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 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 14 matching lines...) Expand all Loading... |
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 # Shared definitions for all V8-related targets. | 28 # Shared definitions for all V8-related targets. |
29 | 29 |
30 { | 30 { |
31 'variables': { | 31 'variables': { |
32 'msvs_use_common_release': 0, | 32 'msvs_use_common_release': 0, |
33 'clang%': 0, | 33 'clang%': 0, |
34 'v8_target_arch%': '<(target_arch)', | 34 'v8_target_arch%': '<(target_arch)', |
| 35 'v8_host_byteorder%': '<!(python -c "import sys; print sys.byteorder")', |
35 # Native Client builds currently use the V8 ARM JIT and | 36 # Native Client builds currently use the V8 ARM JIT and |
36 # arm/simulator-arm.cc to defer the significant effort required | 37 # arm/simulator-arm.cc to defer the significant effort required |
37 # for NaCl JIT support. The nacl_target_arch variable provides | 38 # for NaCl JIT support. The nacl_target_arch variable provides |
38 # the 'true' target arch for places in this file that need it. | 39 # the 'true' target arch for places in this file that need it. |
39 # TODO(bradchen): get rid of nacl_target_arch when someday | 40 # TODO(bradchen): get rid of nacl_target_arch when someday |
40 # NaCl V8 builds stop using the ARM simulator | 41 # NaCl V8 builds stop using the ARM simulator |
41 'nacl_target_arch%': 'none', # must be set externally | 42 'nacl_target_arch%': 'none', # must be set externally |
42 | 43 |
43 # Setting 'v8_can_use_vfp32dregs' to 'true' will cause V8 to use the VFP | 44 # Setting 'v8_can_use_vfp32dregs' to 'true' will cause V8 to use the VFP |
44 # registers d16-d31 in the generated code, both in the snapshot and for the | 45 # registers d16-d31 in the generated code, both in the snapshot and for the |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 85 |
85 'variables': { | 86 'variables': { |
86 # This is set when building the Android WebView inside the Android build | 87 # This is set when building the Android WebView inside the Android build |
87 # system, using the 'android' gyp backend. | 88 # system, using the 'android' gyp backend. |
88 'android_webview_build%': 0, | 89 'android_webview_build%': 0, |
89 }, | 90 }, |
90 # Copy it out one scope. | 91 # Copy it out one scope. |
91 'android_webview_build%': '<(android_webview_build)', | 92 'android_webview_build%': '<(android_webview_build)', |
92 }, | 93 }, |
93 'conditions': [ | 94 'conditions': [ |
94 ['host_arch=="ia32" or host_arch=="x64" or clang==1', { | 95 ['host_arch=="ia32" or host_arch=="x64" or \ |
| 96 host_arch=="ppc" or host_arch=="ppc64" or \ |
| 97 clang==1', { |
95 'variables': { | 98 'variables': { |
96 'host_cxx_is_biarch%': 1, | 99 'host_cxx_is_biarch%': 1, |
97 }, | 100 }, |
98 }, { | 101 }, { |
99 'variables': { | 102 'variables': { |
100 'host_cxx_is_biarch%': 0, | 103 'host_cxx_is_biarch%': 0, |
101 }, | 104 }, |
102 }], | 105 }], |
103 ['target_arch=="ia32" or target_arch=="x64" or target_arch=="x87" or \ | 106 ['target_arch=="ia32" or target_arch=="x64" or target_arch=="x87" or \ |
| 107 target_arch=="ppc" or target_arch=="ppc64" or \ |
104 clang==1', { | 108 clang==1', { |
105 'variables': { | 109 'variables': { |
106 'target_cxx_is_biarch%': 1, | 110 'target_cxx_is_biarch%': 1, |
107 }, | 111 }, |
108 }, { | 112 }, { |
109 'variables': { | 113 'variables': { |
110 'target_cxx_is_biarch%': 0, | 114 'target_cxx_is_biarch%': 0, |
111 }, | 115 }, |
112 }], | 116 }], |
113 ], | 117 ], |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 }], | 247 }], |
244 ], | 248 ], |
245 }], # _toolset=="target" | 249 }], # _toolset=="target" |
246 ], | 250 ], |
247 }], # v8_target_arch=="arm" | 251 }], # v8_target_arch=="arm" |
248 ['v8_target_arch=="arm64"', { | 252 ['v8_target_arch=="arm64"', { |
249 'defines': [ | 253 'defines': [ |
250 'V8_TARGET_ARCH_ARM64', | 254 'V8_TARGET_ARCH_ARM64', |
251 ], | 255 ], |
252 }], | 256 }], |
| 257 ['v8_target_arch=="ppc" or v8_target_arch=="ppc64"', { |
| 258 'defines': [ |
| 259 'V8_TARGET_ARCH_PPC', |
| 260 ], |
| 261 'conditions': [ |
| 262 ['v8_target_arch=="ppc64"', { |
| 263 'defines': [ |
| 264 'V8_TARGET_ARCH_PPC64', |
| 265 ], |
| 266 }], |
| 267 ['v8_host_byteorder=="little"', { |
| 268 'defines': [ |
| 269 'V8_TARGET_ARCH_PPC_LE', |
| 270 ], |
| 271 }], |
| 272 ['v8_host_byteorder=="big"', { |
| 273 'defines': [ |
| 274 'V8_TARGET_ARCH_PPC_BE', |
| 275 ], |
| 276 }], |
| 277 ], |
| 278 }], # ppc |
253 ['v8_target_arch=="ia32"', { | 279 ['v8_target_arch=="ia32"', { |
254 'defines': [ | 280 'defines': [ |
255 'V8_TARGET_ARCH_IA32', | 281 'V8_TARGET_ARCH_IA32', |
256 ], | 282 ], |
257 }], # v8_target_arch=="ia32" | 283 }], # v8_target_arch=="ia32" |
258 ['v8_target_arch=="x87"', { | 284 ['v8_target_arch=="x87"', { |
259 'defines': [ | 285 'defines': [ |
260 'V8_TARGET_ARCH_X87', | 286 'V8_TARGET_ARCH_X87', |
261 ], | 287 ], |
262 'cflags': ['-march=i586'], | 288 'cflags': ['-march=i586'], |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 }, | 802 }, |
777 }, | 803 }, |
778 }], | 804 }], |
779 ['OS=="win" and v8_enable_prof==1', { | 805 ['OS=="win" and v8_enable_prof==1', { |
780 'msvs_settings': { | 806 'msvs_settings': { |
781 'VCLinkerTool': { | 807 'VCLinkerTool': { |
782 'GenerateMapFile': 'true', | 808 'GenerateMapFile': 'true', |
783 }, | 809 }, |
784 }, | 810 }, |
785 }], | 811 }], |
786 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ | 812 ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ |
787 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ | 813 or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \ |
788 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ | 814 (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ |
789 v8_target_arch=="x87" or v8_target_arch=="mips" or \ | 815 v8_target_arch=="x87" or v8_target_arch=="mips" or \ |
790 v8_target_arch=="mipsel")', { | 816 v8_target_arch=="mipsel" or v8_target_arch=="ppc")', { |
791 'target_conditions': [ | 817 'target_conditions': [ |
792 ['_toolset=="host"', { | 818 ['_toolset=="host"', { |
793 'conditions': [ | 819 'conditions': [ |
794 ['host_cxx_is_biarch==1', { | 820 ['host_cxx_is_biarch==1', { |
795 'cflags': [ '-m32' ], | 821 'cflags': [ '-m32' ], |
796 'ldflags': [ '-m32' ] | 822 'ldflags': [ '-m32' ] |
797 }], | 823 }], |
798 ], | 824 ], |
799 'xcode_settings': { | 825 'xcode_settings': { |
800 'ARCHS': [ 'i386' ], | 826 'ARCHS': [ 'i386' ], |
(...skipping 12 matching lines...) Expand all Loading... |
813 }, | 839 }, |
814 }], | 840 }], |
815 ], | 841 ], |
816 'xcode_settings': { | 842 'xcode_settings': { |
817 'ARCHS': [ 'i386' ], | 843 'ARCHS': [ 'i386' ], |
818 }, | 844 }, |
819 }], | 845 }], |
820 ], | 846 ], |
821 }], | 847 }], |
822 ['(OS=="linux" or OS=="android") and \ | 848 ['(OS=="linux" or OS=="android") and \ |
823 (v8_target_arch=="x64" or v8_target_arch=="arm64")', { | 849 (v8_target_arch=="x64" or v8_target_arch=="arm64" or \ |
| 850 v8_target_arch=="ppc64")', { |
824 'target_conditions': [ | 851 'target_conditions': [ |
825 ['_toolset=="host"', { | 852 ['_toolset=="host"', { |
826 'conditions': [ | 853 'conditions': [ |
827 ['host_cxx_is_biarch==1', { | 854 ['host_cxx_is_biarch==1', { |
828 'cflags': [ '-m64' ], | 855 'cflags': [ '-m64' ], |
829 'ldflags': [ '-m64' ] | 856 'ldflags': [ '-m64' ] |
830 }], | 857 }], |
831 ], | 858 ], |
832 }], | 859 }], |
833 ['_toolset=="target"', { | 860 ['_toolset=="target"', { |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 'OptimizeReferences': '2', | 1155 'OptimizeReferences': '2', |
1129 'EnableCOMDATFolding': '2', | 1156 'EnableCOMDATFolding': '2', |
1130 }, | 1157 }, |
1131 }, | 1158 }, |
1132 }], # OS=="win" | 1159 }], # OS=="win" |
1133 ], # conditions | 1160 ], # conditions |
1134 }, # Release | 1161 }, # Release |
1135 }, # configurations | 1162 }, # configurations |
1136 }, # target_defaults | 1163 }, # target_defaults |
1137 } | 1164 } |
OLD | NEW |