OLD | NEW |
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", |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 "-D", "SHARED_INTERMEDIATE_DIR=" + | 43 "-D", "SHARED_INTERMEDIATE_DIR=" + |
44 rebase_path(root_gen_dir, root_build_dir), | 44 rebase_path(root_gen_dir, root_build_dir), |
45 ] + grit_defines | 45 ] + grit_defines |
46 | 46 |
47 deps = [ | 47 deps = [ |
48 # This is the action that generates out .grd input file. | 48 # This is the action that generates out .grd input file. |
49 "//third_party/WebKit/public:blink_generate_devtools_grd", | 49 "//third_party/WebKit/public:blink_generate_devtools_grd", |
50 ] | 50 ] |
51 } | 51 } |
52 | 52 |
53 action("devtools_protocol_constants") { | 53 action("gen_devtools_protocol_constants") { |
54 visibility = ":resources" | 54 visibility = ":devtools_protocol_constants" |
55 | 55 |
56 script = "//content/public/browser/devtools_protocol_constants_generator.py" | 56 script = "//content/public/browser/devtools_protocol_constants_generator.py" |
57 | 57 |
58 blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json" | 58 blink_protocol = "//third_party/WebKit/Source/devtools/protocol.json" |
59 browser_protocol = "browser_protocol.json" | 59 browser_protocol = "browser_protocol.json" |
60 inputs = [ blink_protocol, browser_protocol ] | 60 inputs = [ blink_protocol, browser_protocol ] |
61 | 61 |
62 outputs = [ | 62 outputs = [ |
63 "$target_gen_dir/devtools_protocol_constants.cc", | 63 "$target_gen_dir/devtools_protocol_constants.cc", |
64 "$target_gen_dir/devtools_protocol_constants.h", | 64 "$target_gen_dir/devtools_protocol_constants.h", |
65 ] | 65 ] |
66 | 66 |
67 args = [ "content" ] + rebase_path(outputs, root_build_dir) + [ | 67 args = [ "content" ] + rebase_path(outputs, root_build_dir) + [ |
68 rebase_path(blink_protocol, root_build_dir), | 68 rebase_path(blink_protocol, root_build_dir), |
69 rebase_path(browser_protocol, root_build_dir), | 69 rebase_path(browser_protocol, root_build_dir), |
70 ] | 70 ] |
71 } | 71 } |
| 72 |
| 73 source_set("devtools_protocol_constants") { |
| 74 visibility = ":resources" |
| 75 sources = get_target_outputs(":gen_devtools_protocol_constants") |
| 76 } |
OLD | NEW |