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

Unified Diff: BUILD.gn

Issue 2032363002: [gn] Add fuzzer targets. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/fuzzer/fuzzer.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index 56a65e4fce660646dc13fc6e55ebe62a1aad3061..f9908d57e0a79782ee7d1fb23ac7931506bfae5a 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -2007,6 +2007,14 @@ v8_source_set("fuzzer_support") {
]
}
+v8_source_set("simple_fuzzer") {
+ sources = [
+ "test/fuzzer/fuzzer.cc",
+ ]
+
+ configs = [ ":internal_config_base" ]
+}
+
###############################################################################
# Executables
#
@@ -2052,6 +2060,11 @@ group("gn_all") {
deps = [
":d8",
+ ":v8_simple_json_fuzzer",
+ ":v8_simple_parser_fuzzer",
+ ":v8_simple_regexp_fuzzer",
+ ":v8_simple_wasm_fuzzer",
+ ":v8_simple_wasm_asmjs_fuzzer",
]
if (want_v8_shell) {
@@ -2179,6 +2192,19 @@ if (want_v8_shell) {
}
}
+template("v8_fuzzer") {
+ name = target_name
+ forward_variables_from(invoker, "*")
+ executable("v8_simple_" + name) {
+ deps = [
+ ":" + name,
+ ":simple_fuzzer",
+ ]
+
+ configs += [ ":external_config" ]
+ }
+}
+
v8_source_set("json_fuzzer") {
sources = [
"test/fuzzer/json.cc",
@@ -2191,6 +2217,8 @@ v8_source_set("json_fuzzer") {
configs = [ ":internal_config" ]
}
+v8_fuzzer("json_fuzzer") {}
+
v8_source_set("parser_fuzzer") {
sources = [
"test/fuzzer/parser.cc",
@@ -2203,6 +2231,8 @@ v8_source_set("parser_fuzzer") {
configs = [ ":internal_config" ]
}
+v8_fuzzer("parser_fuzzer") {}
+
v8_source_set("regexp_fuzzer") {
sources = [
"test/fuzzer/regexp.cc",
@@ -2215,6 +2245,8 @@ v8_source_set("regexp_fuzzer") {
configs = [ ":internal_config" ]
}
+v8_fuzzer("regexp_fuzzer") {}
+
v8_source_set("wasm_fuzzer") {
sources = [
"test/fuzzer/wasm.cc",
@@ -2227,6 +2259,8 @@ v8_source_set("wasm_fuzzer") {
configs = [ ":internal_config" ]
}
+v8_fuzzer("wasm_fuzzer") {}
+
v8_source_set("wasm_asmjs_fuzzer") {
sources = [
"test/fuzzer/wasm-asmjs.cc",
@@ -2238,3 +2272,5 @@ v8_source_set("wasm_asmjs_fuzzer") {
configs = [ ":internal_config" ]
}
+
+v8_fuzzer("wasm_asmjs_fuzzer") {}
« no previous file with comments | « no previous file | test/fuzzer/fuzzer.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698