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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 # Similar to vfp but on MIPS. | 59 # Similar to vfp but on MIPS. |
60 v8_can_use_fpu_instructions = true | 60 v8_can_use_fpu_instructions = true |
61 | 61 |
62 # Similar to the ARM hard float ABI but on MIPS. | 62 # Similar to the ARM hard float ABI but on MIPS. |
63 v8_use_mips_abi_hardfloat = true | 63 v8_use_mips_abi_hardfloat = true |
64 } | 64 } |
65 | 65 |
66 v8_random_seed = "314159265" | 66 v8_random_seed = "314159265" |
67 v8_toolset_for_d8 = "host" | 67 v8_toolset_for_d8 = "host" |
| 68 v8_toolset_for_shell = "host" |
68 | 69 |
69 if (is_msan) { | 70 if (is_msan) { |
70 # Running the V8-generated code on an ARM simulator is a powerful hack that | 71 # Running the V8-generated code on an ARM simulator is a powerful hack that |
71 # allows the tool to see the memory accesses from JITted code. Without this | 72 # allows the tool to see the memory accesses from JITted code. Without this |
72 # flag, JS code causes false positive reports from MSan. | 73 # flag, JS code causes false positive reports from MSan. |
73 v8_target_arch = "arm64" | 74 v8_target_arch = "arm64" |
74 } else { | 75 } else { |
75 v8_target_arch = target_cpu | 76 v8_target_arch = target_cpu |
76 } | 77 } |
77 | 78 |
(...skipping 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2120 | 2121 |
2121 if (!is_component_build) { | 2122 if (!is_component_build) { |
2122 sources += [ "$target_gen_dir/d8-js.cc" ] | 2123 sources += [ "$target_gen_dir/d8-js.cc" ] |
2123 } | 2124 } |
2124 if (v8_enable_i18n_support) { | 2125 if (v8_enable_i18n_support) { |
2125 deps += [ "//third_party/icu" ] | 2126 deps += [ "//third_party/icu" ] |
2126 } | 2127 } |
2127 } | 2128 } |
2128 } | 2129 } |
2129 | 2130 |
| 2131 if ((current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || |
| 2132 (current_toolchain == snapshot_toolchain && v8_toolset_for_shell == "host")
|| |
| 2133 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target")) { |
| 2134 executable("shell") { |
| 2135 sources = [ |
| 2136 "samples/shell.cc", |
| 2137 ] |
| 2138 |
| 2139 configs -= [ "//build/config/compiler:chromium_code" ] |
| 2140 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 2141 configs += [ |
| 2142 # Note: don't use :internal_config here because this target will get |
| 2143 # the :external_config applied to it by virtue of depending on :v8, and |
| 2144 # you can't have both applied to the same target. |
| 2145 ":internal_config_base", |
| 2146 ":features", |
| 2147 ":toolchain", |
| 2148 ] |
| 2149 |
| 2150 deps = [ |
| 2151 ":v8", |
| 2152 ":v8_libplatform", |
| 2153 "//build/config/sanitizers:deps", |
| 2154 "//build/win:default_exe_manifest", |
| 2155 ] |
| 2156 |
| 2157 if (v8_enable_i18n_support) { |
| 2158 deps += [ "//third_party/icu" ] |
| 2159 } |
| 2160 } |
| 2161 } |
| 2162 |
2130 source_set("json_fuzzer") { | 2163 source_set("json_fuzzer") { |
2131 sources = [ | 2164 sources = [ |
2132 "test/fuzzer/json.cc", | 2165 "test/fuzzer/json.cc", |
2133 ] | 2166 ] |
2134 | 2167 |
2135 deps = [ | 2168 deps = [ |
2136 ":fuzzer_support", | 2169 ":fuzzer_support", |
2137 ] | 2170 ] |
2138 | 2171 |
2139 configs -= [ "//build/config/compiler:chromium_code" ] | 2172 configs -= [ "//build/config/compiler:chromium_code" ] |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2214 | 2247 |
2215 configs -= [ "//build/config/compiler:chromium_code" ] | 2248 configs -= [ "//build/config/compiler:chromium_code" ] |
2216 configs += [ "//build/config/compiler:no_chromium_code" ] | 2249 configs += [ "//build/config/compiler:no_chromium_code" ] |
2217 configs += [ | 2250 configs += [ |
2218 ":internal_config", | 2251 ":internal_config", |
2219 ":libplatform_config", | 2252 ":libplatform_config", |
2220 ":features", | 2253 ":features", |
2221 ":toolchain", | 2254 ":toolchain", |
2222 ] | 2255 ] |
2223 } | 2256 } |
OLD | NEW |