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("//third_party/WebKit/Source/bindings/bindings.gni") | 5 import("//third_party/WebKit/Source/bindings/bindings.gni") |
6 import("//third_party/WebKit/Source/core/core.gni") | 6 import("//third_party/WebKit/Source/core/core.gni") |
7 import( | 7 import( |
8 "//third_party/WebKit/Source/platform/inspector_protocol/inspector_protocol.
gni") | 8 "//third_party/WebKit/Source/platform/inspector_protocol/inspector_protocol.
gni") |
9 | 9 |
10 action("instrumentation_sources") { | 10 action("instrumentation_sources") { |
| 11 visibility = [ ":*" ] |
11 script = "CodeGeneratorInstrumentation.py" | 12 script = "CodeGeneratorInstrumentation.py" |
12 | 13 |
13 inputs = [ | 14 inputs = [ |
14 # Input file for the script. | 15 # Input file for the script. |
15 "InspectorInstrumentation.idl", | 16 "InspectorInstrumentation.idl", |
16 ] | 17 ] |
17 | 18 |
18 outputs = [ | 19 outputs = [ |
19 "$blink_core_output_dir/InspectorInstrumentationInl.h", | 20 "$blink_core_output_dir/InspectorInstrumentationInl.h", |
20 "$blink_core_output_dir/InspectorOverridesInl.h", | 21 "$blink_core_output_dir/InspectorOverridesInl.h", |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 "inspector/protocol/Worker.cpp", | 102 "inspector/protocol/Worker.cpp", |
102 "inspector/protocol/Worker.h", | 103 "inspector/protocol/Worker.h", |
103 ] | 104 ] |
104 | 105 |
105 deps = [ | 106 deps = [ |
106 ":protocol_version", | 107 ":protocol_version", |
107 ] | 108 ] |
108 } | 109 } |
109 | 110 |
110 # Compiles the sources generated above. | 111 # Compiles the sources generated above. |
111 source_set("protocol") { | 112 source_set("inspector") { |
112 sources = get_target_outputs(":protocol_sources") | 113 sources = get_target_outputs(":protocol_sources") + |
| 114 get_target_outputs(":instrumentation_sources") |
113 | 115 |
114 configs -= core_config_remove | 116 configs -= core_config_remove |
115 configs += | 117 configs += core_config_add + [ |
116 core_config_add + [ "//third_party/WebKit/Source/core:core_include_dirs" ] | 118 "../..:inside_blink", |
| 119 "//third_party/WebKit/Source/core:core_include_dirs", |
| 120 ] |
| 121 |
| 122 if (is_win) { |
| 123 cflags = [ "/wd4702" ] # Unreachable code. |
| 124 } |
117 | 125 |
118 deps = [ | 126 deps = [ |
| 127 ":instrumentation_sources", |
119 ":protocol_sources", | 128 ":protocol_sources", |
| 129 "//skia", |
120 "//third_party/WebKit/Source/wtf", | 130 "//third_party/WebKit/Source/wtf", |
| 131 "//v8", |
121 ] | 132 ] |
122 } | 133 } |
123 | 134 |
124 action("protocol_compatibility_check") { | 135 action("protocol_compatibility_check") { |
125 script = "../../platform/inspector_protocol/CheckProtocolCompatibility.py" | 136 script = "../../platform/inspector_protocol/CheckProtocolCompatibility.py" |
126 | 137 |
127 inputs = [ | 138 inputs = [ |
128 "browser_protocol.json", | 139 "browser_protocol.json", |
129 "../../platform/v8_inspector/js_protocol.json", | 140 "../../platform/v8_inspector/js_protocol.json", |
130 ] | 141 ] |
(...skipping 24 matching lines...) Expand all Loading... |
155 outputs = [ | 166 outputs = [ |
156 output_file, | 167 output_file, |
157 ] | 168 ] |
158 | 169 |
159 args = [ | 170 args = [ |
160 rebase_path("browser_protocol.json", root_build_dir), | 171 rebase_path("browser_protocol.json", root_build_dir), |
161 rebase_path("../../platform/v8_inspector/js_protocol.json", root_build_dir), | 172 rebase_path("../../platform/v8_inspector/js_protocol.json", root_build_dir), |
162 rebase_path(output_file, root_build_dir), | 173 rebase_path(output_file, root_build_dir), |
163 ] | 174 ] |
164 } | 175 } |
OLD | NEW |