Add parser_fuzzer to BUILD.gn

BUG=chromium:577261
R=machenbach@chromium.org
LOG=n

Review URL: https://codereview.chromium.org/1635963003

Cr-Commit-Position: refs/heads/master@{#33511}
This commit is contained in:
jochen 2016-01-26 04:19:28 -08:00 committed by Commit bot
parent befe61fa3e
commit 4e234f2748

View File

@ -46,6 +46,15 @@ if (is_msan) {
v8_target_arch = target_cpu v8_target_arch = target_cpu
} }
if (v8_use_snapshot && v8_use_external_startup_data) {
snapshot_target = ":v8_external_snapshot"
} else if (v8_use_snapshot) {
snapshot_target = ":v8_snapshot"
} else {
assert(!v8_use_external_startup_data)
snapshot_target = ":v8_nosnapshot"
}
############################################################################### ###############################################################################
# Configurations # Configurations
# #
@ -1788,6 +1797,28 @@ source_set("v8_libplatform") {
] ]
} }
source_set("fuzzer_support") {
visibility = [ ":*" ] # Only targets in this file can depend on this.
sources = [
"test/fuzzer/fuzzer-support.cc",
"test/fuzzer/fuzzer-support.h",
]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
configs += [
":internal_config_base",
":features",
":toolchain",
]
deps = [
":v8_libplatform",
snapshot_target,
]
}
############################################################################### ###############################################################################
# Executables # Executables
# #
@ -1821,15 +1852,6 @@ if (current_toolchain == snapshot_toolchain) {
# Public targets # Public targets
# #
if (v8_use_snapshot && v8_use_external_startup_data) {
snapshot_target = ":v8_external_snapshot"
} else if (v8_use_snapshot) {
snapshot_target = ":v8_snapshot"
} else {
assert(!v8_use_external_startup_data)
snapshot_target = ":v8_nosnapshot"
}
if (is_component_build) { if (is_component_build) {
component("v8") { component("v8") {
sources = [ sources = [
@ -1911,3 +1933,21 @@ if ((current_toolchain == host_toolchain && v8_toolset_for_d8 == "host") ||
} }
} }
} }
source_set("parser_fuzzer") {
sources = [
"test/fuzzer/parser.cc",
]
deps = [
":fuzzer_support",
]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
configs += [
":internal_config",
":features",
":toolchain",
]
}