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

Side by Side Diff: third_party/WebKit/Source/platform/BUILD.gn

Issue 2282283002: [DevTools] Prepare inspector_protocol build to move. (Closed)
Patch Set: NOTREACHED Created 4 years, 3 months 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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//testing/libfuzzer/fuzzer_test.gni") 7 import("//testing/libfuzzer/fuzzer_test.gni")
8 import("//testing/test.gni") 8 import("//testing/test.gni")
9 import("//third_party/WebKit/Source/build/scripts/scripts.gni") 9 import("//third_party/WebKit/Source/build/scripts/scripts.gni")
10 import("//third_party/WebKit/Source/config.gni") 10 import("//third_party/WebKit/Source/config.gni")
11 import(
12 "//third_party/WebKit/Source/platform/inspector_protocol/inspector_protocol. gni")
11 import("//third_party/WebKit/Source/platform/platform.gni") 13 import("//third_party/WebKit/Source/platform/platform.gni")
12 import("//third_party/WebKit/Source/platform/platform_generated.gni") 14 import("//third_party/WebKit/Source/platform/platform_generated.gni")
13 15
14 # Most targets in this file are private actions so use that as the default. 16 # Most targets in this file are private actions so use that as the default.
15 visibility = [ ":*" ] 17 visibility = [ ":*" ]
16 18
17 heap_gypi = exec_script("//build/gypi_to_gn.py", 19 heap_gypi = exec_script("//build/gypi_to_gn.py",
18 [ rebase_path("heap/blink_heap.gypi") ], 20 [ rebase_path("heap/blink_heap.gypi") ],
19 "scope", 21 "scope",
20 [ "heap/blink_heap.gypi" ]) 22 [ "heap/blink_heap.gypi" ])
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 "//build/win:default_exe_manifest", 188 "//build/win:default_exe_manifest",
187 "//third_party/icu", 189 "//third_party/icu",
188 ] 190 ]
189 } 191 }
190 192
191 # Inspector protocol 193 # Inspector protocol
192 194
193 action("inspector_protocol_sources") { 195 action("inspector_protocol_sources") {
194 script = "inspector_protocol/CodeGenerator.py" 196 script = "inspector_protocol/CodeGenerator.py"
195 deps = [ 197 deps = [
196 ":inspector_protocol_version", 198 ":inspector_protocol_compatibility",
197 ] 199 ]
198 sources = [ 200 sources = inspector_protocol_sources
199 "inspector_protocol/Allocator_h.template",
200 "inspector_protocol/Array_h.template",
201 "inspector_protocol/BackendCallback_h.template",
202 "inspector_protocol/CodeGenerator.py",
203 "inspector_protocol/Collections_h.template",
204 "inspector_protocol/DispatcherBase_cpp.template",
205 "inspector_protocol/DispatcherBase_h.template",
206 "inspector_protocol/ErrorSupport_cpp.template",
207 "inspector_protocol/ErrorSupport_h.template",
208 "inspector_protocol/Exported_h.template",
209 "inspector_protocol/Forward_h.template",
210 "inspector_protocol/FrontendChannel_h.template",
211 "inspector_protocol/Imported_h.template",
212 "inspector_protocol/Maybe_h.template",
213 "inspector_protocol/Object_cpp.template",
214 "inspector_protocol/Object_h.template",
215 "inspector_protocol/Parser_cpp.template",
216 "inspector_protocol/Parser_h.template",
217 "inspector_protocol/Protocol_cpp.template",
218 "inspector_protocol/TypeBuilder_cpp.template",
219 "inspector_protocol/TypeBuilder_h.template",
220 "inspector_protocol/ValueConversions_h.template",
221 "inspector_protocol/Values_cpp.template",
222 "inspector_protocol/Values_h.template",
223 ]
224 inputs = [ 201 inputs = [
225 "v8_inspector/js_protocol.json", 202 "v8_inspector/js_protocol.json",
226 "v8_inspector/inspector_protocol_config.json", 203 "v8_inspector/inspector_protocol_config.json",
227 ] 204 ]
228 outputs = [ 205 outputs = [
229 "$blink_platform_output_dir/v8_inspector/protocol/Forward.h", 206 "$blink_platform_output_dir/v8_inspector/protocol/Forward.h",
230 "$blink_platform_output_dir/v8_inspector/protocol/Protocol.cpp", 207 "$blink_platform_output_dir/v8_inspector/protocol/Protocol.cpp",
231 "$blink_platform_output_dir/v8_inspector/protocol/Protocol.h", 208 "$blink_platform_output_dir/v8_inspector/protocol/Protocol.h",
232 "$blink_platform_output_dir/v8_inspector/protocol/Console.cpp", 209 "$blink_platform_output_dir/v8_inspector/protocol/Console.cpp",
233 "$blink_platform_output_dir/v8_inspector/protocol/Console.h", 210 "$blink_platform_output_dir/v8_inspector/protocol/Console.h",
234 "$blink_platform_output_dir/v8_inspector/protocol/Debugger.cpp", 211 "$blink_platform_output_dir/v8_inspector/protocol/Debugger.cpp",
235 "$blink_platform_output_dir/v8_inspector/protocol/Debugger.h", 212 "$blink_platform_output_dir/v8_inspector/protocol/Debugger.h",
236 "$blink_platform_output_dir/v8_inspector/protocol/HeapProfiler.cpp", 213 "$blink_platform_output_dir/v8_inspector/protocol/HeapProfiler.cpp",
237 "$blink_platform_output_dir/v8_inspector/protocol/HeapProfiler.h", 214 "$blink_platform_output_dir/v8_inspector/protocol/HeapProfiler.h",
238 "$blink_platform_output_dir/v8_inspector/protocol/Profiler.cpp", 215 "$blink_platform_output_dir/v8_inspector/protocol/Profiler.cpp",
239 "$blink_platform_output_dir/v8_inspector/protocol/Profiler.h", 216 "$blink_platform_output_dir/v8_inspector/protocol/Profiler.h",
240 "$blink_platform_output_dir/v8_inspector/protocol/Runtime.cpp", 217 "$blink_platform_output_dir/v8_inspector/protocol/Runtime.cpp",
241 "$blink_platform_output_dir/v8_inspector/protocol/Runtime.h", 218 "$blink_platform_output_dir/v8_inspector/protocol/Runtime.h",
242 "$blink_platform_output_dir/v8_inspector/protocol/Schema.cpp", 219 "$blink_platform_output_dir/v8_inspector/protocol/Schema.cpp",
243 "$blink_platform_output_dir/v8_inspector/protocol/Schema.h", 220 "$blink_platform_output_dir/v8_inspector/protocol/Schema.h",
244 "$blink_platform_output_dir/v8_inspector/public/protocol/Debugger.h", 221 "$blink_platform_output_dir/v8_inspector/public/protocol/Debugger.h",
245 "$blink_platform_output_dir/v8_inspector/public/protocol/Runtime.h", 222 "$blink_platform_output_dir/v8_inspector/public/protocol/Runtime.h",
246 "$blink_platform_output_dir/v8_inspector/public/protocol/Schema.h", 223 "$blink_platform_output_dir/v8_inspector/public/protocol/Schema.h",
247 ] 224 ]
248 225
249 args = [ 226 args = [
227 "--jinja_dir",
228 rebase_path("../../../", root_build_dir), # jinja is in chromium's third_pa rty
250 "--output_base", 229 "--output_base",
251 rebase_path(blink_platform_output_dir, root_build_dir), 230 rebase_path(blink_platform_output_dir, root_build_dir),
252 "--config", 231 "--config",
253 rebase_path("v8_inspector/inspector_protocol_config.json", root_build_dir), 232 rebase_path("v8_inspector/inspector_protocol_config.json", root_build_dir),
254 ] 233 ]
255 } 234 }
256 235
257 action("inspector_protocol_version") { 236 action("inspector_protocol_compatibility") {
258 script = "inspector_protocol/generate-inspector-protocol-version" 237 script = "inspector_protocol/CheckProtocolCompatibility.py"
259
260 inputs = [ 238 inputs = [
261 "v8_inspector/js_protocol.json", 239 "v8_inspector/js_protocol.json",
262 ] 240 ]
263 output_file = 241 _stamp = "$blink_platform_output_dir/v8_inspector/js_protocol.stamp"
264 "$blink_platform_output_dir/v8_inspector/protocol/v8inspector.json"
265 outputs = [ 242 outputs = [
266 output_file, 243 _stamp,
267 ] 244 ]
268 245
269 args = [ 246 args = [
270 "--o", 247 "--stamp",
271 rebase_path(output_file, root_build_dir), 248 rebase_path(_stamp, root_build_dir),
272 rebase_path("v8_inspector/js_protocol.json", root_build_dir), 249 rebase_path("v8_inspector/js_protocol.json", root_build_dir),
273 ] 250 ]
274 } 251 }
275 252
276 action("inspector_injected_script") { 253 action("inspector_injected_script") {
277 script = "v8_inspector/build/xxd.py" 254 script = "v8_inspector/build/xxd.py"
278 inputs = [ 255 inputs = [
279 "v8_inspector/InjectedScriptSource.js", 256 "v8_inspector/InjectedScriptSource.js",
280 ] 257 ]
281 outputs = [ 258 outputs = [
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 ":platform", 678 ":platform",
702 ":test_support", 679 ":test_support",
703 ] 680 ]
704 dict = "//testing/libfuzzer/fuzzers/dicts/mhtml.dict" 681 dict = "//testing/libfuzzer/fuzzers/dicts/mhtml.dict"
705 seed_corpus = "//third_party/WebKit/LayoutTests/mhtml" 682 seed_corpus = "//third_party/WebKit/LayoutTests/mhtml"
706 additional_configs = [ 683 additional_configs = [
707 "//third_party/WebKit/Source/wtf:wtf_config", 684 "//third_party/WebKit/Source/wtf:wtf_config",
708 "//third_party/WebKit/Source:config", 685 "//third_party/WebKit/Source:config",
709 ] 686 ]
710 } 687 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698