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 1989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2000 | 2000 |
2001 deps = [ | 2001 deps = [ |
2002 ":v8_maybe_snapshot", | 2002 ":v8_maybe_snapshot", |
2003 ] | 2003 ] |
2004 | 2004 |
2005 public_deps = [ | 2005 public_deps = [ |
2006 ":v8_libplatform", | 2006 ":v8_libplatform", |
2007 ] | 2007 ] |
2008 } | 2008 } |
2009 | 2009 |
| 2010 v8_source_set("simple_fuzzer") { |
| 2011 sources = [ |
| 2012 "test/fuzzer/fuzzer.cc", |
| 2013 ] |
| 2014 |
| 2015 configs = [ ":internal_config_base" ] |
| 2016 } |
| 2017 |
2010 ############################################################################### | 2018 ############################################################################### |
2011 # Executables | 2019 # Executables |
2012 # | 2020 # |
2013 | 2021 |
2014 if (current_toolchain == v8_snapshot_toolchain) { | 2022 if (current_toolchain == v8_snapshot_toolchain) { |
2015 executable("mksnapshot") { | 2023 executable("mksnapshot") { |
2016 visibility = [ ":*" ] # Only targets in this file can depend on this. | 2024 visibility = [ ":*" ] # Only targets in this file can depend on this. |
2017 | 2025 |
2018 sources = [ | 2026 sources = [ |
2019 "src/snapshot/mksnapshot.cc", | 2027 "src/snapshot/mksnapshot.cc", |
(...skipping 25 matching lines...) Expand all Loading... |
2045 (current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || | 2053 (current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || |
2046 (current_toolchain == v8_snapshot_toolchain && | 2054 (current_toolchain == v8_snapshot_toolchain && |
2047 v8_toolset_for_shell == "host") || | 2055 v8_toolset_for_shell == "host") || |
2048 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target")) | 2056 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target")) |
2049 | 2057 |
2050 group("gn_all") { | 2058 group("gn_all") { |
2051 testonly = true | 2059 testonly = true |
2052 | 2060 |
2053 deps = [ | 2061 deps = [ |
2054 ":d8", | 2062 ":d8", |
| 2063 ":v8_simple_json_fuzzer", |
| 2064 ":v8_simple_parser_fuzzer", |
| 2065 ":v8_simple_regexp_fuzzer", |
| 2066 ":v8_simple_wasm_fuzzer", |
| 2067 ":v8_simple_wasm_asmjs_fuzzer", |
2055 ] | 2068 ] |
2056 | 2069 |
2057 if (want_v8_shell) { | 2070 if (want_v8_shell) { |
2058 deps += [ | 2071 deps += [ |
2059 ":v8_shell", | 2072 ":v8_shell", |
2060 ] | 2073 ] |
2061 } | 2074 } |
2062 | 2075 |
2063 if (host_os != "mac" || !is_android) { | 2076 if (host_os != "mac" || !is_android) { |
2064 # These items don't compile for Android on Mac. | 2077 # These items don't compile for Android on Mac. |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2172 "//build/config/sanitizers:deps", | 2185 "//build/config/sanitizers:deps", |
2173 "//build/win:default_exe_manifest", | 2186 "//build/win:default_exe_manifest", |
2174 ] | 2187 ] |
2175 | 2188 |
2176 if (v8_enable_i18n_support) { | 2189 if (v8_enable_i18n_support) { |
2177 deps += [ "//third_party/icu" ] | 2190 deps += [ "//third_party/icu" ] |
2178 } | 2191 } |
2179 } | 2192 } |
2180 } | 2193 } |
2181 | 2194 |
| 2195 template("v8_fuzzer") { |
| 2196 name = target_name |
| 2197 forward_variables_from(invoker, "*") |
| 2198 executable("v8_simple_" + name) { |
| 2199 deps = [ |
| 2200 ":" + name, |
| 2201 ":simple_fuzzer", |
| 2202 ] |
| 2203 |
| 2204 configs += [ ":external_config" ] |
| 2205 } |
| 2206 } |
| 2207 |
2182 v8_source_set("json_fuzzer") { | 2208 v8_source_set("json_fuzzer") { |
2183 sources = [ | 2209 sources = [ |
2184 "test/fuzzer/json.cc", | 2210 "test/fuzzer/json.cc", |
2185 ] | 2211 ] |
2186 | 2212 |
2187 deps = [ | 2213 deps = [ |
2188 ":fuzzer_support", | 2214 ":fuzzer_support", |
2189 ] | 2215 ] |
2190 | 2216 |
2191 configs = [ ":internal_config" ] | 2217 configs = [ ":internal_config" ] |
2192 } | 2218 } |
2193 | 2219 |
| 2220 v8_fuzzer("json_fuzzer") {} |
| 2221 |
2194 v8_source_set("parser_fuzzer") { | 2222 v8_source_set("parser_fuzzer") { |
2195 sources = [ | 2223 sources = [ |
2196 "test/fuzzer/parser.cc", | 2224 "test/fuzzer/parser.cc", |
2197 ] | 2225 ] |
2198 | 2226 |
2199 deps = [ | 2227 deps = [ |
2200 ":fuzzer_support", | 2228 ":fuzzer_support", |
2201 ] | 2229 ] |
2202 | 2230 |
2203 configs = [ ":internal_config" ] | 2231 configs = [ ":internal_config" ] |
2204 } | 2232 } |
2205 | 2233 |
| 2234 v8_fuzzer("parser_fuzzer") {} |
| 2235 |
2206 v8_source_set("regexp_fuzzer") { | 2236 v8_source_set("regexp_fuzzer") { |
2207 sources = [ | 2237 sources = [ |
2208 "test/fuzzer/regexp.cc", | 2238 "test/fuzzer/regexp.cc", |
2209 ] | 2239 ] |
2210 | 2240 |
2211 deps = [ | 2241 deps = [ |
2212 ":fuzzer_support", | 2242 ":fuzzer_support", |
2213 ] | 2243 ] |
2214 | 2244 |
2215 configs = [ ":internal_config" ] | 2245 configs = [ ":internal_config" ] |
2216 } | 2246 } |
2217 | 2247 |
| 2248 v8_fuzzer("regexp_fuzzer") {} |
| 2249 |
2218 v8_source_set("wasm_fuzzer") { | 2250 v8_source_set("wasm_fuzzer") { |
2219 sources = [ | 2251 sources = [ |
2220 "test/fuzzer/wasm.cc", | 2252 "test/fuzzer/wasm.cc", |
2221 ] | 2253 ] |
2222 | 2254 |
2223 deps = [ | 2255 deps = [ |
2224 ":fuzzer_support", | 2256 ":fuzzer_support", |
2225 ] | 2257 ] |
2226 | 2258 |
2227 configs = [ ":internal_config" ] | 2259 configs = [ ":internal_config" ] |
2228 } | 2260 } |
2229 | 2261 |
| 2262 v8_fuzzer("wasm_fuzzer") {} |
| 2263 |
2230 v8_source_set("wasm_asmjs_fuzzer") { | 2264 v8_source_set("wasm_asmjs_fuzzer") { |
2231 sources = [ | 2265 sources = [ |
2232 "test/fuzzer/wasm-asmjs.cc", | 2266 "test/fuzzer/wasm-asmjs.cc", |
2233 ] | 2267 ] |
2234 | 2268 |
2235 deps = [ | 2269 deps = [ |
2236 ":fuzzer_support", | 2270 ":fuzzer_support", |
2237 ] | 2271 ] |
2238 | 2272 |
2239 configs = [ ":internal_config" ] | 2273 configs = [ ":internal_config" ] |
2240 } | 2274 } |
| 2275 |
| 2276 v8_fuzzer("wasm_asmjs_fuzzer") {} |
OLD | NEW |