Commit d96fbee9 authored by Michael Achenbach's avatar Michael Achenbach Committed by Commit Bot

[build] Remove remaining disable-inspector options in GN

Bug: chromium:645890
Change-Id: I9856712ca8694b3447a611c3555c42145f449b11
Reviewed-on: https://chromium-review.googlesource.com/464726Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Reviewed-by: 's avatarAleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44417}
parent f5dc738c
...@@ -194,10 +194,10 @@ config("external_config") { ...@@ -194,10 +194,10 @@ config("external_config") {
if (is_component_build) { if (is_component_build) {
defines = [ "USING_V8_SHARED" ] defines = [ "USING_V8_SHARED" ]
} }
include_dirs = [ "include" ] include_dirs = [
if (v8_enable_inspector) { "include",
include_dirs += [ "$target_gen_dir/include" ] "$target_gen_dir/include",
} ]
} }
# This config should only be applied to code that needs to be explicitly # This config should only be applied to code that needs to be explicitly
...@@ -788,7 +788,6 @@ action("v8_dump_build_config") { ...@@ -788,7 +788,6 @@ action("v8_dump_build_config") {
"target_cpu=\"$target_cpu\"", "target_cpu=\"$target_cpu\"",
"v8_current_cpu=\"$v8_current_cpu\"", "v8_current_cpu=\"$v8_current_cpu\"",
"v8_enable_i18n_support=$v8_enable_i18n_support", "v8_enable_i18n_support=$v8_enable_i18n_support",
"v8_enable_inspector=$v8_enable_inspector",
"v8_target_cpu=\"$v8_target_cpu\"", "v8_target_cpu=\"$v8_target_cpu\"",
"v8_use_snapshot=$v8_use_snapshot", "v8_use_snapshot=$v8_use_snapshot",
] ]
...@@ -1043,6 +1042,8 @@ v8_source_set("v8_base") { ...@@ -1043,6 +1042,8 @@ v8_source_set("v8_base") {
### gcmole(all) ### ### gcmole(all) ###
"include/v8-debug.h", "include/v8-debug.h",
"include/v8-inspector-protocol.h",
"include/v8-inspector.h",
"include/v8-platform.h", "include/v8-platform.h",
"include/v8-profiler.h", "include/v8-profiler.h",
"include/v8-testing.h", "include/v8-testing.h",
...@@ -2374,6 +2375,7 @@ v8_source_set("v8_base") { ...@@ -2374,6 +2375,7 @@ v8_source_set("v8_base") {
":v8_libbase", ":v8_libbase",
":v8_libsampler", ":v8_libsampler",
":v8_version", ":v8_version",
"src/inspector:inspector",
] ]
sources += [ v8_generated_peephole_source ] sources += [ v8_generated_peephole_source ]
...@@ -2395,14 +2397,6 @@ v8_source_set("v8_base") { ...@@ -2395,14 +2397,6 @@ v8_source_set("v8_base") {
sources += [ "$target_gen_dir/debug-support.cc" ] sources += [ "$target_gen_dir/debug-support.cc" ]
deps += [ ":postmortem-metadata" ] deps += [ ":postmortem-metadata" ]
} }
if (v8_enable_inspector) {
sources += [
"include/v8-inspector-protocol.h",
"include/v8-inspector.h",
]
deps += [ "src/inspector:inspector" ]
}
} }
v8_component("v8_libbase") { v8_component("v8_libbase") {
...@@ -2806,9 +2800,6 @@ v8_executable("d8") { ...@@ -2806,9 +2800,6 @@ v8_executable("d8") {
} }
defines = [] defines = []
if (v8_enable_inspector) {
defines += [ "V8_INSPECTOR_ENABLED" ]
}
if (v8_enable_vtunejit) { if (v8_enable_vtunejit) {
deps += [ "//src/third_party/vtune:v8_vtune" ] deps += [ "//src/third_party/vtune:v8_vtune" ]
......
...@@ -101,11 +101,6 @@ template("v8_isolate_run") { ...@@ -101,11 +101,6 @@ template("v8_isolate_run") {
} else { } else {
icu_use_data_file_flag = "0" icu_use_data_file_flag = "0"
} }
if (v8_enable_inspector) {
enable_inspector = "1"
} else {
enable_inspector = "0"
}
if (v8_use_external_startup_data) { if (v8_use_external_startup_data) {
use_external_startup_data = "1" use_external_startup_data = "1"
} else { } else {
...@@ -177,8 +172,6 @@ template("v8_isolate_run") { ...@@ -177,8 +172,6 @@ template("v8_isolate_run") {
"--config-variable", "--config-variable",
"target_arch=$target_arch", "target_arch=$target_arch",
"--config-variable", "--config-variable",
"v8_enable_inspector=$enable_inspector",
"--config-variable",
"v8_use_external_startup_data=$use_external_startup_data", "v8_use_external_startup_data=$use_external_startup_data",
"--config-variable", "--config-variable",
"v8_use_snapshot=$use_snapshot", "v8_use_snapshot=$use_snapshot",
......
...@@ -37,9 +37,6 @@ declare_args() { ...@@ -37,9 +37,6 @@ declare_args() {
# add a dependency on the ICU library. # add a dependency on the ICU library.
v8_enable_i18n_support = true v8_enable_i18n_support = true
# Enable inspector. See include/v8-inspector.h.
v8_enable_inspector = true
# Use static libraries instead of source_sets. # Use static libraries instead of source_sets.
v8_static_library = false v8_static_library = false
} }
......
...@@ -82,7 +82,6 @@ ...@@ -82,7 +82,6 @@
'--config-variable', 'sanitizer_coverage=<(sanitizer_coverage)', '--config-variable', 'sanitizer_coverage=<(sanitizer_coverage)',
'--config-variable', 'component=<(component)', '--config-variable', 'component=<(component)',
'--config-variable', 'target_arch=<(target_arch)', '--config-variable', 'target_arch=<(target_arch)',
'--config-variable', 'v8_enable_inspector=1',
'--config-variable', 'v8_use_external_startup_data=<(v8_use_external_startup_data)', '--config-variable', 'v8_use_external_startup_data=<(v8_use_external_startup_data)',
'--config-variable', 'v8_use_snapshot=<(v8_use_snapshot)', '--config-variable', 'v8_use_snapshot=<(v8_use_snapshot)',
], ],
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "include/libplatform/libplatform.h" #include "include/libplatform/libplatform.h"
#include "include/libplatform/v8-tracing.h" #include "include/libplatform/v8-tracing.h"
#include "include/v8-inspector.h"
#include "src/api.h" #include "src/api.h"
#include "src/base/cpu.h" #include "src/base/cpu.h"
#include "src/base/logging.h" #include "src/base/logging.h"
...@@ -39,10 +40,6 @@ ...@@ -39,10 +40,6 @@
#include "src/utils.h" #include "src/utils.h"
#include "src/v8.h" #include "src/v8.h"
#ifdef V8_INSPECTOR_ENABLED
#include "include/v8-inspector.h"
#endif // V8_INSPECTOR_ENABLED
#if !defined(_WIN32) && !defined(_WIN64) #if !defined(_WIN32) && !defined(_WIN64)
#include <unistd.h> // NOLINT #include <unistd.h> // NOLINT
#else #else
...@@ -1937,7 +1934,6 @@ void Shell::RunShell(Isolate* isolate) { ...@@ -1937,7 +1934,6 @@ void Shell::RunShell(Isolate* isolate) {
printf("\n"); printf("\n");
} }
#ifdef V8_INSPECTOR_ENABLED
class InspectorFrontend final : public v8_inspector::V8Inspector::Channel { class InspectorFrontend final : public v8_inspector::V8Inspector::Channel {
public: public:
explicit InspectorFrontend(Local<Context> context) { explicit InspectorFrontend(Local<Context> context) {
...@@ -2070,12 +2066,6 @@ class InspectorClient : public v8_inspector::V8InspectorClient { ...@@ -2070,12 +2066,6 @@ class InspectorClient : public v8_inspector::V8InspectorClient {
Global<Context> context_; Global<Context> context_;
Isolate* isolate_; Isolate* isolate_;
}; };
#else // V8_INSPECTOR_ENABLED
class InspectorClient {
public:
InspectorClient(Local<Context> context, bool connect) { CHECK(!connect); }
};
#endif // V8_INSPECTOR_ENABLED
SourceGroup::~SourceGroup() { SourceGroup::~SourceGroup() {
delete thread_; delete thread_;
......
...@@ -42,9 +42,6 @@ ...@@ -42,9 +42,6 @@
'v8.gyp:v8_libbase', 'v8.gyp:v8_libbase',
'v8.gyp:v8_libplatform', 'v8.gyp:v8_libplatform',
], ],
'defines': [
'V8_INSPECTOR_ENABLED',
],
# Generated source files need this explicitly: # Generated source files need this explicitly:
'include_dirs+': [ 'include_dirs+': [
'..', '..',
......
...@@ -10,6 +10,7 @@ group("gn_all") { ...@@ -10,6 +10,7 @@ group("gn_all") {
deps = [ deps = [
":default_tests", ":default_tests",
"inspector:inspector-test",
] ]
if (host_os != "mac" || !is_android) { if (host_os != "mac" || !is_android) {
...@@ -21,10 +22,6 @@ group("gn_all") { ...@@ -21,10 +22,6 @@ group("gn_all") {
] ]
} }
if (v8_enable_inspector) {
deps += [ "inspector:inspector-test" ]
}
if (v8_test_isolation_mode != "noop") { if (v8_test_isolation_mode != "noop") {
deps += [ deps += [
":benchmarks_run", ":benchmarks_run",
...@@ -136,10 +133,9 @@ v8_isolate_run("fuzzer") { ...@@ -136,10 +133,9 @@ v8_isolate_run("fuzzer") {
} }
v8_isolate_run("inspector-test") { v8_isolate_run("inspector-test") {
deps = [] deps = [
if (v8_enable_inspector) { "inspector:inspector-test",
deps += [ "inspector:inspector-test" ] ]
}
isolate = "inspector/inspector.isolate" isolate = "inspector/inspector.isolate"
} }
......
...@@ -3,15 +3,11 @@ ...@@ -3,15 +3,11 @@
# found in the LICENSE file. # found in the LICENSE file.
{ {
'conditions': [ 'variables': {
['v8_enable_inspector==1', { 'files': [
'variables': { './',
'files': [ ],
'./', },
],
},
}],
],
'includes': [ 'includes': [
'../../src/d8.isolate', '../../src/d8.isolate',
'../../tools/testrunner/testrunner.isolate', '../../tools/testrunner/testrunner.isolate',
......
...@@ -4,32 +4,30 @@ ...@@ -4,32 +4,30 @@
import("../../gni/v8.gni") import("../../gni/v8.gni")
if (v8_enable_inspector) { v8_executable("inspector-test") {
v8_executable("inspector-test") { testonly = true
testonly = true
sources = [ sources = [
"inspector-impl.cc", "inspector-impl.cc",
"inspector-impl.h", "inspector-impl.h",
"inspector-test.cc", "inspector-test.cc",
"task-runner.cc", "task-runner.cc",
"task-runner.h", "task-runner.h",
] ]
configs = [ configs = [
"../..:external_config", "../..:external_config",
"../..:internal_config_base", "../..:internal_config_base",
] ]
deps = [ deps = [
"../..:v8", "../..:v8",
"../..:v8_libbase", "../..:v8_libbase",
"../..:v8_libplatform", "../..:v8_libplatform",
"//build/config/sanitizers:deps", "//build/config/sanitizers:deps",
"//build/win:default_exe_manifest", "//build/win:default_exe_manifest",
] ]
cflags = [] cflags = []
ldflags = [] ldflags = []
}
} }
...@@ -2,27 +2,23 @@ ...@@ -2,27 +2,23 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
{ {
'conditions': [ 'variables': {
['v8_enable_inspector==1', { 'files': [
'variables': { './console/',
'files': [ './cpu-profiler/',
'./console/', './debugger/',
'./cpu-profiler/', './inspector.status',
'./debugger/', './json-parse-expected.txt',
'./inspector.status', './json-parse.js',
'./json-parse-expected.txt', './protocol-test.js',
'./json-parse.js', './runtime/',
'./protocol-test.js', './testcfg.py',
'./runtime/', '../../src/inspector/injected-script-source.js',
'./testcfg.py', '<(PRODUCT_DIR)/inspector-test<(EXECUTABLE_SUFFIX)',
'../../src/inspector/injected-script-source.js', ],
'<(PRODUCT_DIR)/inspector-test<(EXECUTABLE_SUFFIX)', },
],
},
}],
],
'includes': [ 'includes': [
'../../src/base.isolate', '../../src/base.isolate',
'../../tools/testrunner/testrunner.isolate', '../../tools/testrunner/testrunner.isolate',
], ],
} }
\ No newline at end of file
...@@ -263,9 +263,6 @@ def BuildOptions(): ...@@ -263,9 +263,6 @@ def BuildOptions():
result.add_option("--download-data-only", result.add_option("--download-data-only",
help="Deprecated", help="Deprecated",
default=False, action="store_true") default=False, action="store_true")
result.add_option("--enable-inspector",
help="Indicates a build with inspector support",
default=True, action="store_true")
result.add_option("--extra-flags", result.add_option("--extra-flags",
help="Additional flags to pass to each test command", help="Additional flags to pass to each test command",
default="") default="")
...@@ -496,7 +493,6 @@ def ProcessOptions(options): ...@@ -496,7 +493,6 @@ def ProcessOptions(options):
options.arch = 'ia32' options.arch = 'ia32'
options.asan = build_config["is_asan"] options.asan = build_config["is_asan"]
options.dcheck_always_on = build_config["dcheck_always_on"] options.dcheck_always_on = build_config["dcheck_always_on"]
options.enable_inspector = build_config["v8_enable_inspector"]
options.mode = 'debug' if build_config["is_debug"] else 'release' options.mode = 'debug' if build_config["is_debug"] else 'release'
options.msan = build_config["is_msan"] options.msan = build_config["is_msan"]
options.no_i18n = not build_config["v8_enable_i18n_support"] options.no_i18n = not build_config["v8_enable_i18n_support"]
...@@ -623,13 +619,6 @@ def ProcessOptions(options): ...@@ -623,13 +619,6 @@ def ProcessOptions(options):
if options.no_i18n: if options.no_i18n:
TEST_MAP["bot_default"].remove("intl") TEST_MAP["bot_default"].remove("intl")
TEST_MAP["default"].remove("intl") TEST_MAP["default"].remove("intl")
if not options.enable_inspector:
TEST_MAP["default"].remove("inspector")
TEST_MAP["bot_default"].remove("inspector")
TEST_MAP["optimize_for_size"].remove("inspector")
TEST_MAP["default"].remove("debugger")
TEST_MAP["bot_default"].remove("debugger")
TEST_MAP["optimize_for_size"].remove("debugger")
return True return True
......
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