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 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2014 "//build/config/sanitizers:deps", | 2014 "//build/config/sanitizers:deps", |
2015 "//build/win:default_exe_manifest", | 2015 "//build/win:default_exe_manifest", |
2016 ] | 2016 ] |
2017 } | 2017 } |
2018 } | 2018 } |
2019 | 2019 |
2020 ############################################################################### | 2020 ############################################################################### |
2021 # Public targets | 2021 # Public targets |
2022 # | 2022 # |
2023 | 2023 |
2024 want_v8_shell = ( | |
2025 (current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || | |
2026 (current_toolchain == v8_snapshot_toolchain && | |
2027 v8_toolset_for_shell == "host") || | |
2028 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target")) | |
2029 | |
2030 group("gn_all") { | |
2031 testonly = true | |
2032 | |
2033 deps = [ | |
2034 ":d8", | |
2035 ] | |
2036 | |
2037 if (want_v8_shell) { | |
2038 deps += [ | |
2039 ":v8_shell", | |
2040 ] | |
2041 } | |
2042 | |
2043 if (host_os != "mac" || !is_android) { | |
2044 # These items don't compile for Android on Mac. | |
2045 deps += [ | |
2046 "test/unittests:unittests", | |
2047 ] | |
2048 } | |
2049 } | |
2050 | |
2051 if (is_component_build) { | 2024 if (is_component_build) { |
2052 component("v8") { | 2025 component("v8") { |
2053 sources = [ | 2026 sources = [ |
2054 "src/v8dll-main.cc", | 2027 "src/v8dll-main.cc", |
2055 ] | 2028 ] |
2056 | 2029 |
2057 public_deps = [ | 2030 public_deps = [ |
2058 ":v8_base", | 2031 ":v8_base", |
2059 snapshot_target, | 2032 snapshot_target, |
2060 ] | 2033 ] |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2113 } | 2086 } |
2114 | 2087 |
2115 if (!is_component_build) { | 2088 if (!is_component_build) { |
2116 sources += [ "$target_gen_dir/d8-js.cc" ] | 2089 sources += [ "$target_gen_dir/d8-js.cc" ] |
2117 } | 2090 } |
2118 if (v8_enable_i18n_support) { | 2091 if (v8_enable_i18n_support) { |
2119 deps += [ "//third_party/icu" ] | 2092 deps += [ "//third_party/icu" ] |
2120 } | 2093 } |
2121 } | 2094 } |
2122 | 2095 |
2123 if (want_v8_shell) { | 2096 if ((current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || |
| 2097 (current_toolchain == v8_snapshot_toolchain && |
| 2098 v8_toolset_for_shell == "host") || |
| 2099 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target")) { |
2124 executable("v8_shell") { | 2100 executable("v8_shell") { |
2125 sources = [ | 2101 sources = [ |
2126 "samples/shell.cc", | 2102 "samples/shell.cc", |
2127 ] | 2103 ] |
2128 | 2104 |
2129 configs -= [ "//build/config/compiler:chromium_code" ] | 2105 configs -= [ "//build/config/compiler:chromium_code" ] |
2130 configs += [ "//build/config/compiler:no_chromium_code" ] | 2106 configs += [ "//build/config/compiler:no_chromium_code" ] |
2131 configs += [ | 2107 configs += [ |
2132 # Note: don't use :internal_config here because this target will get | 2108 # Note: don't use :internal_config here because this target will get |
2133 # the :external_config applied to it by virtue of depending on :v8, and | 2109 # 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... |
2202 sources = [ | 2178 sources = [ |
2203 "test/fuzzer/wasm-asmjs.cc", | 2179 "test/fuzzer/wasm-asmjs.cc", |
2204 ] | 2180 ] |
2205 | 2181 |
2206 deps = [ | 2182 deps = [ |
2207 ":fuzzer_support", | 2183 ":fuzzer_support", |
2208 ] | 2184 ] |
2209 | 2185 |
2210 configs = [ ":internal_config" ] | 2186 configs = [ ":internal_config" ] |
2211 } | 2187 } |
OLD | NEW |