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

Side by Side 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 import("//sky/engine/config.gni") 6 import("//sky/engine/config.gni")
7 7
8 visibility = ["//sky/*"] 8 visibility = ["//sky/*"]
9 9
10 gen_dir = "$root_gen_dir/v8_inspector"
11
10 component("v8_inspector") { 12 component("v8_inspector") {
11 output_name = "v8_inspector" 13 output_name = "v8_inspector"
12 14
13 deps = [ 15 deps = [
16 ":protocol_sources",
14 "//base", 17 "//base",
15 "//mojo/public/cpp/application", 18 "//mojo/public/cpp/application",
16 "//mojo/public/interfaces/application", 19 "//mojo/public/interfaces/application",
17 "//sky/engine/core", # FIXME: Remove. 20 "//sky/engine/core", # FIXME: Remove.
18 "//sky/engine/platform", # FIXME: Remove. 21 "//sky/engine/platform", # FIXME: Remove.
19 "//sky/services/inspector:bindings", 22 "//sky/services/inspector:bindings",
20 "//sky/engine/core:core_generated", # FIXME: Remove. 23 "//sky/engine/core:core_generated", # FIXME: Remove.
24 "//sky/engine/wtf",
21 ] 25 ]
22 26
23 configs += [ 27 configs += [
24 "//sky/engine:config", 28 "//sky/engine:config",
25 "//sky/engine:inside_blink", 29 "//sky/engine:inside_blink",
26 "//sky/engine:non_test_config", 30 "//sky/engine:non_test_config",
27 ] 31 ]
28 32
29 sources = [ 33 sources = [
34 "AsyncCallStackTracker.cpp",
35 "AsyncCallStackTracker.h",
36 "ContentSearchUtils.cpp",
37 "ContentSearchUtils.h",
38 "InjectedScript.cpp",
39 "InjectedScript.h",
40 "InjectedScriptBase.cpp",
41 "InjectedScriptBase.h",
42 "InjectedScriptManager.cpp",
43 "InjectedScriptManager.h",
30 "inspector_backend_mojo.cc", 44 "inspector_backend_mojo.cc",
31 "inspector_backend_mojo.h", 45 "inspector_backend_mojo.h",
46 "inspector_host.h",
47 "InspectorBaseAgent.cpp",
48 "InspectorBaseAgent.h",
49 "InspectorDebuggerAgent.cpp",
50 "InspectorDebuggerAgent.h",
51 "InspectorFrontendChannel.h",
52 "InspectorState.cpp",
53 "InspectorState.h",
54 "InstrumentingAgents.h",
55 "JSONParser.cpp",
56 "JSONParser.h",
32 "PageDebuggerAgent.cpp", 57 "PageDebuggerAgent.cpp",
33 "PageDebuggerAgent.h", 58 "PageDebuggerAgent.h",
34 "PageScriptDebugServer.cpp", 59 "PageScriptDebugServer.cpp",
35 "PageScriptDebugServer.h", 60 "PageScriptDebugServer.h",
61 "PromiseTracker.cpp",
62 "PromiseTracker.h",
63 "ScriptBreakpoint.h",
64 "ScriptDebugListener.h",
65 "ScriptDebugServer.cpp",
66 "ScriptDebugServer.h",
67 "ScriptPreprocessor.cpp",
68 "ScriptPreprocessor.h",
69 "ScriptRegexp.cpp",
70 "ScriptRegexp.h",
71 ]
72
73 # TODO(eseidel): These should be compiled in a separate _generated target.
74 sources += [
75 "$gen_dir/InspectorFrontend.cpp",
76 "$gen_dir/InspectorBackendDispatcher.cpp",
77 "$gen_dir/InspectorTypeBuilder.cpp",
36 ] 78 ]
37 } 79 }
80
81 protocol_file = "protocol.json"
82
83 action("protocol_sources") {
84 script = "CodeGeneratorInspector.py"
85
86 inputs = [
87 # The helper script imported by CodeGeneratorInspector.py.
88 "CodeGeneratorInspectorStrings.py",
89 protocol_file,
90 ]
91 outputs = [
92 "$gen_dir/InspectorBackendDispatcher.cpp",
93 "$gen_dir/InspectorBackendDispatcher.h",
94 "$gen_dir/InspectorFrontend.cpp",
95 "$gen_dir/InspectorFrontend.h",
96 "$gen_dir/InspectorTypeBuilder.cpp",
97 "$gen_dir/InspectorTypeBuilder.h",
98 ]
99
100 args = [
101 rebase_path(protocol_file, root_build_dir),
102 "--output_dir", rebase_path(gen_dir, root_build_dir),
103 ]
104
105 deps = [
106 ":protocol_version",
107 ]
108 }
109
110 action("protocol_version") {
111 script = "generate-inspector-protocol-version"
112
113 inputs = [ protocol_file ]
114 output_file = "$gen_dir/InspectorProtocolVersion.h"
115 outputs = [ output_file ]
116
117 args = [
118 "-o", rebase_path(output_file, root_build_dir),
119 rebase_path(protocol_file, root_build_dir),
120 ]
121 }
OLDNEW
« 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