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

Unified Diff: sky/engine/v8_inspector/BUILD.gn

Issue 772563003: Move many of v8_inspector dependencies out of core/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
Index: sky/engine/v8_inspector/BUILD.gn
diff --git a/sky/engine/v8_inspector/BUILD.gn b/sky/engine/v8_inspector/BUILD.gn
index b2e1be694693e6f48302ff2ae94f7292e52be19a..10837b9bd7de43f3df00a06d672300c702b4e42b 100644
--- a/sky/engine/v8_inspector/BUILD.gn
+++ b/sky/engine/v8_inspector/BUILD.gn
@@ -7,10 +7,13 @@ import("//sky/engine/config.gni")
visibility = ["//sky/*"]
+gen_dir = "$root_gen_dir/v8_inspector"
+
component("v8_inspector") {
output_name = "v8_inspector"
deps = [
+ ":protocol_sources",
"//base",
"//mojo/public/cpp/application",
"//mojo/public/interfaces/application",
@@ -18,6 +21,7 @@ component("v8_inspector") {
"//sky/engine/platform", # FIXME: Remove.
"//sky/services/inspector:bindings",
"//sky/engine/core:core_generated", # FIXME: Remove.
+ "//sky/engine/wtf",
]
configs += [
@@ -27,11 +31,91 @@ component("v8_inspector") {
]
sources = [
+ "AsyncCallStackTracker.cpp",
+ "AsyncCallStackTracker.h",
+ "ContentSearchUtils.cpp",
+ "ContentSearchUtils.h",
+ "InjectedScript.cpp",
+ "InjectedScript.h",
+ "InjectedScriptBase.cpp",
+ "InjectedScriptBase.h",
+ "InjectedScriptManager.cpp",
+ "InjectedScriptManager.h",
"inspector_backend_mojo.cc",
"inspector_backend_mojo.h",
+ "inspector_host.h",
+ "InspectorBaseAgent.cpp",
+ "InspectorBaseAgent.h",
+ "InspectorDebuggerAgent.cpp",
+ "InspectorDebuggerAgent.h",
+ "InspectorFrontendChannel.h",
+ "InspectorState.cpp",
+ "InspectorState.h",
+ "InstrumentingAgents.h",
+ "JSONParser.cpp",
+ "JSONParser.h",
"PageDebuggerAgent.cpp",
"PageDebuggerAgent.h",
"PageScriptDebugServer.cpp",
"PageScriptDebugServer.h",
+ "PromiseTracker.cpp",
+ "PromiseTracker.h",
+ "ScriptBreakpoint.h",
+ "ScriptDebugListener.h",
+ "ScriptDebugServer.cpp",
+ "ScriptDebugServer.h",
+ "ScriptPreprocessor.cpp",
+ "ScriptPreprocessor.h",
+ "ScriptRegexp.cpp",
+ "ScriptRegexp.h",
+ ]
+
+ # TODO(eseidel): These should be compiled in a separate _generated target.
+ sources += [
+ "$gen_dir/InspectorFrontend.cpp",
+ "$gen_dir/InspectorBackendDispatcher.cpp",
+ "$gen_dir/InspectorTypeBuilder.cpp",
+ ]
+}
+
+protocol_file = "protocol.json"
+
+action("protocol_sources") {
+ script = "CodeGeneratorInspector.py"
+
+ inputs = [
+ # The helper script imported by CodeGeneratorInspector.py.
+ "CodeGeneratorInspectorStrings.py",
+ protocol_file,
+ ]
+ outputs = [
+ "$gen_dir/InspectorBackendDispatcher.cpp",
+ "$gen_dir/InspectorBackendDispatcher.h",
+ "$gen_dir/InspectorFrontend.cpp",
+ "$gen_dir/InspectorFrontend.h",
+ "$gen_dir/InspectorTypeBuilder.cpp",
+ "$gen_dir/InspectorTypeBuilder.h",
+ ]
+
+ args = [
+ rebase_path(protocol_file, root_build_dir),
+ "--output_dir", rebase_path(gen_dir, root_build_dir),
+ ]
+
+ deps = [
+ ":protocol_version",
+ ]
+}
+
+action("protocol_version") {
+ script = "generate-inspector-protocol-version"
+
+ inputs = [ protocol_file ]
+ output_file = "$gen_dir/InspectorProtocolVersion.h"
+ outputs = [ output_file ]
+
+ args = [
+ "-o", rebase_path(output_file, root_build_dir),
+ rebase_path(protocol_file, root_build_dir),
]
}
« no previous file with comments | « sky/engine/v8_inspector/AsyncCallStackTracker.cpp ('k') | sky/engine/v8_inspector/CodeGeneratorInspector.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698