[gn] Add remaining executables to gn

This adds generate-bytecode-expectations and parser_shell.

BUG=chromium:474921
NOTRY=true

Review-Url: https://codereview.chromium.org/2102483002
Cr-Commit-Position: refs/heads/master@{#37287}
This commit is contained in:
machenbach 2016-06-27 04:55:33 -07:00 committed by Commit bot
parent c34cc7a6ff
commit 1deca4bafd
3 changed files with 58 additions and 1 deletions

View File

@ -2069,6 +2069,7 @@ group("gn_all") {
deps = [
":d8",
":v8_hello_world",
":v8_parser_shell",
":v8_sample_process",
":v8_simple_json_fuzzer",
":v8_simple_parser_fuzzer",
@ -2206,6 +2207,36 @@ v8_executable("v8_sample_process") {
}
}
v8_executable("v8_parser_shell") {
sources = [
"tools/parser-shell.cc",
"tools/shell-utils.h",
]
configs = [
":external_config",
":internal_config_base",
]
deps = [
":v8_libplatform",
"//build/config/sanitizers:deps",
"//build/win:default_exe_manifest",
]
if (is_component_build) {
# v8_parser_shell can't be built against a shared library, so we
# need to depend on the underlying static target in that case.
deps += [ ":v8_maybe_snapshot" ]
} else {
deps += [ ":v8" ]
}
if (v8_enable_i18n_support) {
deps += [ "//third_party/icu" ]
}
}
if (want_v8_shell) {
v8_executable("v8_shell") {
sources = [

View File

@ -15,6 +15,7 @@ group("gn_all") {
# These items don't compile for Android on Mac.
deps += [
"cctest:cctest",
"cctest:generate-bytecode-expectations",
"unittests:unittests",
]
}

View File

@ -372,4 +372,29 @@ action("resources") {
]
args += rebase_path(sources, root_build_dir)
}
# TODO(machenbach): Migrate generate-bytecode-expectations.
v8_executable("generate-bytecode-expectations") {
sources = [
"interpreter/bytecode-expectations-printer.cc",
"interpreter/bytecode-expectations-printer.h",
"interpreter/generate-bytecode-expectations.cc",
]
configs = [
"../..:external_config",
"../..:internal_config_base",
]
deps = [
"../..:v8_libplatform",
"//build/config/sanitizers:deps",
"//build/win:default_exe_manifest",
]
if (is_component_build) {
# Same as cctest, we need to depend on the underlying static target.
deps += [ "../..:v8_maybe_snapshot" ]
} else {
deps += [ "../..:v8" ]
}
}