| 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 ] | 604 ] |
| 605 | 605 |
| 606 args = rebase_path(outputs, root_build_dir) + | 606 args = rebase_path(outputs, root_build_dir) + |
| 607 rebase_path(sources, root_build_dir) | 607 rebase_path(sources, root_build_dir) |
| 608 } | 608 } |
| 609 | 609 |
| 610 action("run_mksnapshot") { | 610 action("run_mksnapshot") { |
| 611 visibility = [ ":*" ] # Only targets in this file can depend on this. | 611 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 612 | 612 |
| 613 deps = [ | 613 deps = [ |
| 614 ":mksnapshot($snapshot_toolchain)", | 614 ":mksnapshot($v8_snapshot_toolchain)", |
| 615 ] | 615 ] |
| 616 | 616 |
| 617 script = "tools/run.py" | 617 script = "tools/run.py" |
| 618 | 618 |
| 619 outputs = [ | 619 outputs = [ |
| 620 "$target_gen_dir/snapshot.cc", | 620 "$target_gen_dir/snapshot.cc", |
| 621 ] | 621 ] |
| 622 | 622 |
| 623 args = [ | 623 args = [ |
| 624 "./" + rebase_path(get_label_info(":mksnapshot($snapshot_toolchain)", | 624 "./" + rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)", |
| 625 "root_out_dir") + "/mksnapshot", | 625 "root_out_dir") + "/mksnapshot", |
| 626 root_build_dir), | 626 root_build_dir), |
| 627 "--startup_src", | 627 "--startup_src", |
| 628 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir), | 628 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir), |
| 629 ] | 629 ] |
| 630 | 630 |
| 631 if (v8_random_seed != "0") { | 631 if (v8_random_seed != "0") { |
| 632 args += [ | 632 args += [ |
| 633 "--random-seed", | 633 "--random-seed", |
| 634 v8_random_seed, | 634 v8_random_seed, |
| (...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1993 | 1993 |
| 1994 public_deps = [ | 1994 public_deps = [ |
| 1995 ":v8_libplatform", | 1995 ":v8_libplatform", |
| 1996 ] | 1996 ] |
| 1997 } | 1997 } |
| 1998 | 1998 |
| 1999 ############################################################################### | 1999 ############################################################################### |
| 2000 # Executables | 2000 # Executables |
| 2001 # | 2001 # |
| 2002 | 2002 |
| 2003 if (current_toolchain == snapshot_toolchain) { | 2003 if (current_toolchain == v8_snapshot_toolchain) { |
| 2004 executable("mksnapshot") { | 2004 executable("mksnapshot") { |
| 2005 visibility = [ ":*" ] # Only targets in this file can depend on this. | 2005 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 2006 | 2006 |
| 2007 sources = [ | 2007 sources = [ |
| 2008 "src/snapshot/mksnapshot.cc", | 2008 "src/snapshot/mksnapshot.cc", |
| 2009 ] | 2009 ] |
| 2010 | 2010 |
| 2011 configs -= [ "//build/config/compiler:chromium_code" ] | 2011 configs -= [ "//build/config/compiler:chromium_code" ] |
| 2012 configs += [ "//build/config/compiler:no_chromium_code" ] | 2012 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 2013 configs += [ | 2013 configs += [ |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2095 } | 2095 } |
| 2096 | 2096 |
| 2097 if (!is_component_build) { | 2097 if (!is_component_build) { |
| 2098 sources += [ "$target_gen_dir/d8-js.cc" ] | 2098 sources += [ "$target_gen_dir/d8-js.cc" ] |
| 2099 } | 2099 } |
| 2100 if (v8_enable_i18n_support) { | 2100 if (v8_enable_i18n_support) { |
| 2101 deps += [ "//third_party/icu" ] | 2101 deps += [ "//third_party/icu" ] |
| 2102 } | 2102 } |
| 2103 } | 2103 } |
| 2104 | 2104 |
| 2105 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")) { | 2105 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")) { |
| 2106 executable("v8_shell") { | 2106 executable("v8_shell") { |
| 2107 sources = [ | 2107 sources = [ |
| 2108 "samples/shell.cc", | 2108 "samples/shell.cc", |
| 2109 ] | 2109 ] |
| 2110 | 2110 |
| 2111 configs -= [ "//build/config/compiler:chromium_code" ] | 2111 configs -= [ "//build/config/compiler:chromium_code" ] |
| 2112 configs += [ "//build/config/compiler:no_chromium_code" ] | 2112 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 2113 configs += [ | 2113 configs += [ |
| 2114 # Note: don't use :internal_config here because this target will get | 2114 # Note: don't use :internal_config here because this target will get |
| 2115 # the :external_config applied to it by virtue of depending on :v8, and | 2115 # 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 Loading... |
| 2184 sources = [ | 2184 sources = [ |
| 2185 "test/fuzzer/wasm-asmjs.cc", | 2185 "test/fuzzer/wasm-asmjs.cc", |
| 2186 ] | 2186 ] |
| 2187 | 2187 |
| 2188 deps = [ | 2188 deps = [ |
| 2189 ":fuzzer_support", | 2189 ":fuzzer_support", |
| 2190 ] | 2190 ] |
| 2191 | 2191 |
| 2192 configs = [ ":internal_config" ] | 2192 configs = [ ":internal_config" ] |
| 2193 } | 2193 } |
| OLD | NEW |