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

Side by Side Diff: content/browser/devtools/BUILD.gn

Issue 508973003: DevTools: Protocol handler generator for content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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("//tools/grit/grit_rule.gni") 5 import("//tools/grit/grit_rule.gni")
6 6
7 # In GYP: devtools_resources target. 7 # In GYP: devtools_resources target.
8 group("resources") { 8 group("resources") {
9 deps = [ 9 deps = [
10 ":devtools_resources", 10 ":devtools_resources",
11 ":devtools_protocol_constants", 11 ":devtools_protocol_constants",
12 ":devtools_protocol_handler",
12 ] 13 ]
13 } 14 }
14 15
15 # In GYP: devtools_resources action in the devtools_resources target. 16 # In GYP: devtools_resources action in the devtools_resources target.
16 grit("devtools_resources") { 17 grit("devtools_resources") {
17 source = "$root_gen_dir/devtools/devtools_resources.grd" 18 source = "$root_gen_dir/devtools/devtools_resources.grd"
18 19
19 # TOOD(brettw) remove this so the output file goes into the target_gen_dir, 20 # TOOD(brettw) remove this so the output file goes into the target_gen_dir,
20 # but keep this for not for GYP compat. 21 # but keep this for not for GYP compat.
21 output_dir = "$root_gen_dir/webkit" 22 output_dir = "$root_gen_dir/webkit"
(...skipping 27 matching lines...) Expand all
49 "$target_gen_dir/devtools_protocol_constants.cc", 50 "$target_gen_dir/devtools_protocol_constants.cc",
50 "$target_gen_dir/devtools_protocol_constants.h", 51 "$target_gen_dir/devtools_protocol_constants.h",
51 ] 52 ]
52 53
53 args = [ "content" ] + rebase_path(outputs, root_build_dir) + [ 54 args = [ "content" ] + rebase_path(outputs, root_build_dir) + [
54 rebase_path(blink_protocol, root_build_dir), 55 rebase_path(blink_protocol, root_build_dir),
55 rebase_path(browser_protocol, root_build_dir), 56 rebase_path(browser_protocol, root_build_dir),
56 ] 57 ]
57 } 58 }
58 59
60 action("gen_devtools_protocol_handler") {
61 visibility = ":devtools_protocol_handler"
62
63 script = "//content/browser/devtools/devtools_protocol_handler_generator.py"
64
65 blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json"
66 inputs = [ blink_protocol ]
67
68 outputs = [
69 "$target_gen_dir/devtools_protocol_handler.h",
70 "$target_gen_dir/devtools_protocol_handler.cc",
71 ]
72
73 args = [
74 rebase_path(blink_protocol, root_build_dir),
75 ] + rebase_path(outputs, root_build_dir)
76 }
77
59 source_set("devtools_protocol_constants") { 78 source_set("devtools_protocol_constants") {
60 visibility = [ ":resources" ] 79 visibility = [ ":resources" ]
61 sources = get_target_outputs(":gen_devtools_protocol_constants") 80 sources = get_target_outputs(":gen_devtools_protocol_constants")
62 } 81 }
82
83 source_set("devtools_protocol_handler") {
84 visibility = ":resources"
85 sources = get_target_outputs(":gen_devtools_protocol_handler")
86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698