Commit 1deca4ba authored by machenbach's avatar machenbach Committed by Commit bot

[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}
parent c34cc7a6
......@@ -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 = [
......
......@@ -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",
]
}
......
......@@ -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" ]
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment