OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
7 import("//build/config/mips.gni") | 7 import("//build/config/mips.gni") |
8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
9 | 9 |
10 if (is_android) { | 10 if (is_android) { |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 } | 164 } |
165 if (v8_target_arch == "arm64") { | 165 if (v8_target_arch == "arm64") { |
166 defines += [ "V8_TARGET_ARCH_ARM64" ] | 166 defines += [ "V8_TARGET_ARCH_ARM64" ] |
167 } | 167 } |
168 if (v8_target_arch == "mipsel") { | 168 if (v8_target_arch == "mipsel") { |
169 defines += [ "V8_TARGET_ARCH_MIPS" ] | 169 defines += [ "V8_TARGET_ARCH_MIPS" ] |
170 } | 170 } |
171 if (v8_target_arch == "mips64el") { | 171 if (v8_target_arch == "mips64el") { |
172 defines += [ "V8_TARGET_ARCH_MIPS64" ] | 172 defines += [ "V8_TARGET_ARCH_MIPS64" ] |
173 } | 173 } |
| 174 if (v8_target_arch == "s390") { |
| 175 defines += [ "V8_TARGET_ARCH_S390" ] |
| 176 } |
| 177 if (v8_target_arch == "s390x") { |
| 178 defines += [ |
| 179 "V8_TARGET_ARCH_S390", |
| 180 "V8_TARGET_ARCH_S390X", |
| 181 ] |
| 182 } |
174 if (v8_target_arch == "x86") { | 183 if (v8_target_arch == "x86") { |
175 defines += [ "V8_TARGET_ARCH_IA32" ] | 184 defines += [ "V8_TARGET_ARCH_IA32" ] |
176 } | 185 } |
177 if (v8_target_arch == "x64") { | 186 if (v8_target_arch == "x64") { |
178 defines += [ "V8_TARGET_ARCH_X64" ] | 187 defines += [ "V8_TARGET_ARCH_X64" ] |
179 } | 188 } |
| 189 |
180 if (is_win) { | 190 if (is_win) { |
181 defines += [ "WIN32" ] | 191 defines += [ "WIN32" ] |
182 # TODO(jochen): Support v8_enable_prof. | 192 # TODO(jochen): Support v8_enable_prof. |
183 } | 193 } |
184 | 194 |
185 # TODO(jochen): Add support for compiling with simulators. | 195 # TODO(jochen): Add support for compiling with simulators. |
186 | 196 |
187 if (is_debug) { | 197 if (is_debug) { |
188 # TODO(jochen): Add support for different debug optimization levels. | 198 # TODO(jochen): Add support for different debug optimization levels. |
189 defines += [ | 199 defines += [ |
(...skipping 1698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1888 if (!is_component_build) { | 1898 if (!is_component_build) { |
1889 sources += [ | 1899 sources += [ |
1890 "$target_gen_dir/d8-js.cc", | 1900 "$target_gen_dir/d8-js.cc", |
1891 ] | 1901 ] |
1892 } | 1902 } |
1893 if (v8_enable_i18n_support) { | 1903 if (v8_enable_i18n_support) { |
1894 deps += [ "//third_party/icu" ] | 1904 deps += [ "//third_party/icu" ] |
1895 } | 1905 } |
1896 } | 1906 } |
1897 } | 1907 } |
OLD | NEW |