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

Side by Side Diff: BUILD.gn

Issue 1996533002: Revert of Reland changes to v8_snapshot GN build arg. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | snapshot_toolchain.gni » ('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 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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 ] 608 ]
609 609
610 args = rebase_path(outputs, root_build_dir) + 610 args = rebase_path(outputs, root_build_dir) +
611 rebase_path(sources, root_build_dir) 611 rebase_path(sources, root_build_dir)
612 } 612 }
613 613
614 action("run_mksnapshot") { 614 action("run_mksnapshot") {
615 visibility = [ ":*" ] # Only targets in this file can depend on this. 615 visibility = [ ":*" ] # Only targets in this file can depend on this.
616 616
617 deps = [ 617 deps = [
618 ":mksnapshot($v8_snapshot_toolchain)", 618 ":mksnapshot($snapshot_toolchain)",
619 ] 619 ]
620 620
621 script = "tools/run.py" 621 script = "tools/run.py"
622 622
623 outputs = [ 623 outputs = [
624 "$target_gen_dir/snapshot.cc", 624 "$target_gen_dir/snapshot.cc",
625 ] 625 ]
626 626
627 args = [ 627 args = [
628 "./" + rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)", 628 "./" + rebase_path(get_label_info(":mksnapshot($snapshot_toolchain)",
629 "root_out_dir") + "/mksnapshot", 629 "root_out_dir") + "/mksnapshot",
630 root_build_dir), 630 root_build_dir),
631 "--startup_src", 631 "--startup_src",
632 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir), 632 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir),
633 ] 633 ]
634 634
635 if (v8_random_seed != "0") { 635 if (v8_random_seed != "0") {
636 args += [ 636 args += [
637 "--random-seed", 637 "--random-seed",
638 v8_random_seed, 638 v8_random_seed,
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
2005 2005
2006 public_deps = [ 2006 public_deps = [
2007 ":v8_libplatform", 2007 ":v8_libplatform",
2008 ] 2008 ]
2009 } 2009 }
2010 2010
2011 ############################################################################### 2011 ###############################################################################
2012 # Executables 2012 # Executables
2013 # 2013 #
2014 2014
2015 if (current_toolchain == v8_snapshot_toolchain) { 2015 if (current_toolchain == snapshot_toolchain) {
2016 executable("mksnapshot") { 2016 executable("mksnapshot") {
2017 visibility = [ ":*" ] # Only targets in this file can depend on this. 2017 visibility = [ ":*" ] # Only targets in this file can depend on this.
2018 2018
2019 sources = [ 2019 sources = [
2020 "src/snapshot/mksnapshot.cc", 2020 "src/snapshot/mksnapshot.cc",
2021 ] 2021 ]
2022 2022
2023 configs -= [ "//build/config/compiler:chromium_code" ] 2023 configs -= [ "//build/config/compiler:chromium_code" ]
2024 configs += [ "//build/config/compiler:no_chromium_code" ] 2024 configs += [ "//build/config/compiler:no_chromium_code" ]
2025 configs += [ 2025 configs += [
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
2107 } 2107 }
2108 2108
2109 if (!is_component_build) { 2109 if (!is_component_build) {
2110 sources += [ "$target_gen_dir/d8-js.cc" ] 2110 sources += [ "$target_gen_dir/d8-js.cc" ]
2111 } 2111 }
2112 if (v8_enable_i18n_support) { 2112 if (v8_enable_i18n_support) {
2113 deps += [ "//third_party/icu" ] 2113 deps += [ "//third_party/icu" ]
2114 } 2114 }
2115 } 2115 }
2116 2116
2117 if ((current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || ( current_toolchain == v8_snapshot_toolchain && v8_toolset_for_shell == "host") || (current_toolchain != host_toolchain && v8_toolset_for_shell == "target")) { 2117 if ((current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || ( current_toolchain == snapshot_toolchain && v8_toolset_for_shell == "host") || (c urrent_toolchain != host_toolchain && v8_toolset_for_shell == "target")) {
2118 executable("v8_shell") { 2118 executable("v8_shell") {
2119 sources = [ 2119 sources = [
2120 "samples/shell.cc", 2120 "samples/shell.cc",
2121 ] 2121 ]
2122 2122
2123 configs -= [ "//build/config/compiler:chromium_code" ] 2123 configs -= [ "//build/config/compiler:chromium_code" ]
2124 configs += [ "//build/config/compiler:no_chromium_code" ] 2124 configs += [ "//build/config/compiler:no_chromium_code" ]
2125 configs += [ 2125 configs += [
2126 # Note: don't use :internal_config here because this target will get 2126 # Note: don't use :internal_config here because this target will get
2127 # the :external_config applied to it by virtue of depending on :v8, and 2127 # the :external_config applied to it by virtue of depending on :v8, and
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
2196 sources = [ 2196 sources = [
2197 "test/fuzzer/wasm-asmjs.cc", 2197 "test/fuzzer/wasm-asmjs.cc",
2198 ] 2198 ]
2199 2199
2200 deps = [ 2200 deps = [
2201 ":fuzzer_support", 2201 ":fuzzer_support",
2202 ] 2202 ]
2203 2203
2204 configs = [ ":internal_config" ] 2204 configs = [ ":internal_config" ]
2205 } 2205 }
OLDNEW
« no previous file with comments | « no previous file | snapshot_toolchain.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698