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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 defines += [ "V8_TARGET_ARCH_ARM64" ] | 180 defines += [ "V8_TARGET_ARCH_ARM64" ] |
181 } | 181 } |
182 if (v8_target_arch == "mipsel") { | 182 if (v8_target_arch == "mipsel") { |
183 defines += [ "V8_TARGET_ARCH_MIPS" ] | 183 defines += [ "V8_TARGET_ARCH_MIPS" ] |
184 } | 184 } |
185 if (v8_target_arch == "mips64el") { | 185 if (v8_target_arch == "mips64el") { |
186 defines += [ "V8_TARGET_ARCH_MIPS64" ] | 186 defines += [ "V8_TARGET_ARCH_MIPS64" ] |
187 } | 187 } |
188 if (v8_target_arch == "s390") { | 188 if (v8_target_arch == "s390") { |
189 defines += [ "V8_TARGET_ARCH_S390" ] | 189 defines += [ "V8_TARGET_ARCH_S390" ] |
190 } | 190 } |
191 if (v8_target_arch == "s390x") { | 191 if (v8_target_arch == "s390x") { |
192 defines += [ | 192 defines += [ |
193 "V8_TARGET_ARCH_S390", | 193 "V8_TARGET_ARCH_S390", |
194 "V8_TARGET_ARCH_S390X", | 194 "V8_TARGET_ARCH_S390X", |
195 ] | 195 ] |
196 } | 196 } |
197 if (v8_target_arch == "x86") { | 197 if (v8_target_arch == "x86") { |
198 defines += [ "V8_TARGET_ARCH_IA32" ] | 198 defines += [ "V8_TARGET_ARCH_IA32" ] |
199 } | 199 } |
200 if (v8_target_arch == "x64") { | 200 if (v8_target_arch == "x64") { |
201 defines += [ "V8_TARGET_ARCH_X64" ] | 201 defines += [ "V8_TARGET_ARCH_X64" ] |
202 } | 202 } |
203 | 203 |
204 if (is_win) { | 204 if (is_win) { |
205 defines += [ "WIN32" ] | 205 defines += [ "WIN32" ] |
206 # TODO(jochen): Support v8_enable_prof. | 206 # TODO(jochen): Support v8_enable_prof. |
207 } | 207 } |
208 | 208 |
209 # TODO(jochen): Add support for compiling with simulators. | 209 # TODO(jochen): Add support for compiling with simulators. |
210 | 210 |
211 if (is_debug) { | 211 if (is_debug) { |
212 # TODO(jochen): Add support for different debug optimization levels. | 212 # TODO(jochen): Add support for different debug optimization levels. |
213 defines += [ | 213 defines += [ |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 script = "tools/run.py" | 484 script = "tools/run.py" |
485 | 485 |
486 outputs = [ | 486 outputs = [ |
487 "$target_gen_dir/snapshot.cc", | 487 "$target_gen_dir/snapshot.cc", |
488 ] | 488 ] |
489 | 489 |
490 args = [ | 490 args = [ |
491 "./" + rebase_path(get_label_info(":mksnapshot($snapshot_toolchain)", | 491 "./" + rebase_path(get_label_info(":mksnapshot($snapshot_toolchain)", |
492 "root_out_dir") + "/mksnapshot", | 492 "root_out_dir") + "/mksnapshot", |
493 root_build_dir), | 493 root_build_dir), |
| 494 "--ignition", |
494 "--log-snapshot-positions", | 495 "--log-snapshot-positions", |
495 "--logfile", | 496 "--logfile", |
496 rebase_path("$target_gen_dir/snapshot.log", root_build_dir), | 497 rebase_path("$target_gen_dir/snapshot.log", root_build_dir), |
497 "--startup_src", | 498 "--startup_src", |
498 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir), | 499 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir), |
499 ] | 500 ] |
500 | 501 |
501 if (v8_random_seed != "0") { | 502 if (v8_random_seed != "0") { |
502 args += [ | 503 args += [ |
503 "--random-seed", | 504 "--random-seed", |
(...skipping 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2094 | 2095 |
2095 configs -= [ "//build/config/compiler:chromium_code" ] | 2096 configs -= [ "//build/config/compiler:chromium_code" ] |
2096 configs += [ "//build/config/compiler:no_chromium_code" ] | 2097 configs += [ "//build/config/compiler:no_chromium_code" ] |
2097 configs += [ | 2098 configs += [ |
2098 ":internal_config", | 2099 ":internal_config", |
2099 ":libplatform_config", | 2100 ":libplatform_config", |
2100 ":features", | 2101 ":features", |
2101 ":toolchain", | 2102 ":toolchain", |
2102 ] | 2103 ] |
2103 } | 2104 } |
OLD | NEW |