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

Side by Side Diff: BUILD.gn

Issue 2032363002: [gn] Add fuzzer targets. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rename Created 4 years, 6 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 | test/fuzzer/fuzzer.gyp » ('j') | test/fuzzer/fuzzer.gyp » ('J')
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 1989 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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 }
2205
2182 v8_source_set("json_fuzzer") { 2206 v8_source_set("json_fuzzer") {
2183 sources = [ 2207 sources = [
2184 "test/fuzzer/json.cc", 2208 "test/fuzzer/json.cc",
2185 ] 2209 ]
2186 2210
2187 deps = [ 2211 deps = [
2188 ":fuzzer_support", 2212 ":fuzzer_support",
2189 ] 2213 ]
2190 2214
2191 configs = [ ":internal_config" ] 2215 configs = [ ":internal_config" ]
2192 } 2216 }
2193 2217
2218 v8_fuzzer("json_fuzzer") {}
2219
2194 v8_source_set("parser_fuzzer") { 2220 v8_source_set("parser_fuzzer") {
2195 sources = [ 2221 sources = [
2196 "test/fuzzer/parser.cc", 2222 "test/fuzzer/parser.cc",
2197 ] 2223 ]
2198 2224
2199 deps = [ 2225 deps = [
2200 ":fuzzer_support", 2226 ":fuzzer_support",
2201 ] 2227 ]
2202 2228
2203 configs = [ ":internal_config" ] 2229 configs = [ ":internal_config" ]
2204 } 2230 }
2205 2231
2232 v8_fuzzer("parser_fuzzer") {}
2233
2206 v8_source_set("regexp_fuzzer") { 2234 v8_source_set("regexp_fuzzer") {
2207 sources = [ 2235 sources = [
2208 "test/fuzzer/regexp.cc", 2236 "test/fuzzer/regexp.cc",
2209 ] 2237 ]
2210 2238
2211 deps = [ 2239 deps = [
2212 ":fuzzer_support", 2240 ":fuzzer_support",
2213 ] 2241 ]
2214 2242
2215 configs = [ ":internal_config" ] 2243 configs = [ ":internal_config" ]
2216 } 2244 }
2217 2245
2246 v8_fuzzer("regexp_fuzzer") {}
2247
2218 v8_source_set("wasm_fuzzer") { 2248 v8_source_set("wasm_fuzzer") {
2219 sources = [ 2249 sources = [
2220 "test/fuzzer/wasm.cc", 2250 "test/fuzzer/wasm.cc",
2221 ] 2251 ]
2222 2252
2223 deps = [ 2253 deps = [
2224 ":fuzzer_support", 2254 ":fuzzer_support",
2225 ] 2255 ]
2226 2256
2227 configs = [ ":internal_config" ] 2257 configs = [ ":internal_config" ]
2228 } 2258 }
2229 2259
2260 v8_fuzzer("wasm_fuzzer") {}
2261
2230 v8_source_set("wasm_asmjs_fuzzer") { 2262 v8_source_set("wasm_asmjs_fuzzer") {
2231 sources = [ 2263 sources = [
2232 "test/fuzzer/wasm-asmjs.cc", 2264 "test/fuzzer/wasm-asmjs.cc",
2233 ] 2265 ]
2234 2266
2235 deps = [ 2267 deps = [
2236 ":fuzzer_support", 2268 ":fuzzer_support",
2237 ] 2269 ]
2238 2270
2239 configs = [ ":internal_config" ] 2271 configs = [ ":internal_config" ]
2240 } 2272 }
2273
2274 v8_fuzzer("wasm_asmjs_fuzzer") {}
OLDNEW
« no previous file with comments | « no previous file | test/fuzzer/fuzzer.gyp » ('j') | test/fuzzer/fuzzer.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698