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("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 7 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
8 import("//third_party/WebKit/Source/config.gni") | 8 import("//third_party/WebKit/Source/config.gni") |
9 import("//third_party/WebKit/Source/platform/platform.gni") | 9 import("//third_party/WebKit/Source/platform/platform.gni") |
10 import("//third_party/WebKit/Source/platform/platform_generated.gni") | 10 import("//third_party/WebKit/Source/platform/platform_generated.gni") |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 "//build/config/sanitizers:deps", | 181 "//build/config/sanitizers:deps", |
182 | 182 |
183 # Default manifest on Windows (a no-op elsewhere). | 183 # Default manifest on Windows (a no-op elsewhere). |
184 "//build/win:default_exe_manifest", | 184 "//build/win:default_exe_manifest", |
185 "//third_party/icu", | 185 "//third_party/icu", |
186 ] | 186 ] |
187 } | 187 } |
188 | 188 |
189 # Inspector protocol | 189 # Inspector protocol |
190 | 190 |
191 protocol_file = "../devtools/protocol.json" | |
192 | |
193 action("inspector_protocol_sources") { | 191 action("inspector_protocol_sources") { |
194 script = "inspector_protocol/CodeGenerator.py" | 192 script = "inspector_protocol/CodeGenerator.py" |
195 | 193 deps = [ |
| 194 ":inspector_protocol_version", |
| 195 ] |
196 sources = [ | 196 sources = [ |
197 "inspector_protocol/CodeGenerator.py", | 197 "inspector_protocol/CodeGenerator.py", |
| 198 "inspector_protocol/TypeBuilder_cpp.template", |
| 199 "inspector_protocol/TypeBuilder_h.template", |
198 ] | 200 ] |
199 inputs = [ | 201 inputs = [ |
200 protocol_file, | 202 "v8_inspector/protocol/Debugger.json", |
201 "inspector_protocol/TypeBuilder_h.template", | 203 "v8_inspector/protocol/HeapProfiler.json", |
202 "inspector_protocol/TypeBuilder_cpp.template", | 204 "v8_inspector/protocol/Profiler.json", |
| 205 "v8_inspector/protocol/Runtime.json", |
203 ] | 206 ] |
204 outputs = [ | 207 outputs = [ |
205 "$blink_platform_output_dir/v8_inspector/protocol/Debugger.cpp", | 208 "$blink_platform_output_dir/v8_inspector/protocol/Debugger.cpp", |
206 "$blink_platform_output_dir/v8_inspector/protocol/Debugger.h", | 209 "$blink_platform_output_dir/v8_inspector/protocol/Debugger.h", |
207 "$blink_platform_output_dir/v8_inspector/protocol/HeapProfiler.cpp", | 210 "$blink_platform_output_dir/v8_inspector/protocol/HeapProfiler.cpp", |
208 "$blink_platform_output_dir/v8_inspector/protocol/HeapProfiler.h", | 211 "$blink_platform_output_dir/v8_inspector/protocol/HeapProfiler.h", |
209 "$blink_platform_output_dir/v8_inspector/protocol/Profiler.cpp", | 212 "$blink_platform_output_dir/v8_inspector/protocol/Profiler.cpp", |
210 "$blink_platform_output_dir/v8_inspector/protocol/Profiler.h", | 213 "$blink_platform_output_dir/v8_inspector/protocol/Profiler.h", |
211 "$blink_platform_output_dir/v8_inspector/protocol/Runtime.cpp", | 214 "$blink_platform_output_dir/v8_inspector/protocol/Runtime.cpp", |
212 "$blink_platform_output_dir/v8_inspector/protocol/Runtime.h", | 215 "$blink_platform_output_dir/v8_inspector/protocol/Runtime.h", |
213 ] | 216 ] |
214 | 217 |
215 args = [ | 218 args = [ |
216 rebase_path(protocol_file, root_build_dir), | 219 "--protocol_dir", |
217 "--domains", | 220 rebase_path("v8_inspector/protocol", root_build_dir), |
218 "Debugger,HeapProfiler,Profiler,Runtime", | |
219 "--string_type", | 221 "--string_type", |
220 "String16", | 222 "String16", |
221 "--export_macro", | 223 "--export_macro", |
222 "PLATFORM_EXPORT", | 224 "PLATFORM_EXPORT", |
223 "--output_dir", | 225 "--output_dir", |
224 rebase_path(blink_platform_output_dir + "/v8_inspector/protocol", | 226 rebase_path(blink_platform_output_dir + "/v8_inspector/protocol", |
225 root_build_dir), | 227 root_build_dir), |
226 "--output_package", | 228 "--output_package", |
227 "platform/v8_inspector/protocol", | 229 "platform/v8_inspector/protocol", |
228 ] | 230 ] |
229 } | 231 } |
230 | 232 |
231 action("inspector_protocol_version") { | 233 action("inspector_protocol_version") { |
232 script = "inspector_protocol/generate-inspector-protocol-version" | 234 script = "inspector_protocol/generate-inspector-protocol-version" |
233 | 235 |
234 inputs = [ | 236 inputs = [ |
235 protocol_file, | 237 "v8_inspector/protocol/Debugger.json", |
| 238 "v8_inspector/protocol/HeapProfiler.json", |
| 239 "v8_inspector/protocol/Profiler.json", |
| 240 "v8_inspector/protocol/Runtime.json", |
236 ] | 241 ] |
237 output_file = | 242 output_file = |
238 "$blink_platform_output_dir/inspector_protocol/InspectorProtocolVersion.h" | 243 "$blink_platform_output_dir/v8_inspector/protocol/v8inspector.json" |
239 outputs = [ | 244 outputs = [ |
240 output_file, | 245 output_file, |
241 ] | 246 ] |
242 | 247 |
243 args = [ | 248 args = [ |
244 "-o", | 249 "--o", |
245 rebase_path(output_file, root_build_dir), | 250 rebase_path(output_file, root_build_dir), |
246 rebase_path(protocol_file, root_build_dir), | 251 rebase_path("v8_inspector", root_build_dir), |
247 ] | 252 ] |
248 } | 253 } |
249 | 254 |
250 action("inspector_injected_script") { | 255 action("inspector_injected_script") { |
251 script = "v8_inspector/build/xxd.py" | 256 script = "v8_inspector/build/xxd.py" |
252 inputs = [ | 257 inputs = [ |
253 "v8_inspector/InjectedScriptSource.js", | 258 "v8_inspector/InjectedScriptSource.js", |
254 ] | 259 ] |
255 outputs = [ | 260 outputs = [ |
256 "$blink_platform_output_dir/v8_inspector/InjectedScriptSource.h", | 261 "$blink_platform_output_dir/v8_inspector/InjectedScriptSource.h", |
(...skipping 30 matching lines...) Expand all Loading... |
287 visibility = [ "//third_party/WebKit/Source/*" ] | 292 visibility = [ "//third_party/WebKit/Source/*" ] |
288 public_deps = [ | 293 public_deps = [ |
289 ":blink_common", | 294 ":blink_common", |
290 ":character_data", | 295 ":character_data", |
291 ":color_data", | 296 ":color_data", |
292 ":font_family_names", | 297 ":font_family_names", |
293 ":http_names", | 298 ":http_names", |
294 ":inspector_debugger_script", | 299 ":inspector_debugger_script", |
295 ":inspector_injected_script", | 300 ":inspector_injected_script", |
296 ":inspector_protocol_sources", | 301 ":inspector_protocol_sources", |
297 ":inspector_protocol_version", | |
298 ":runtime_enabled_features", | 302 ":runtime_enabled_features", |
299 ] | 303 ] |
300 } | 304 } |
301 | 305 |
302 # TODO(brettw) Objective C Renaming postbuild steps on Mac. | 306 # TODO(brettw) Objective C Renaming postbuild steps on Mac. |
303 # blink_platform target in blink_platform.gyp | 307 # blink_platform target in blink_platform.gyp |
304 component("platform") { | 308 component("platform") { |
305 visibility = [] # Allow re-assignment of list. | 309 visibility = [] # Allow re-assignment of list. |
306 visibility = [ | 310 visibility = [ |
307 "//third_party/WebKit/*", | 311 "//third_party/WebKit/*", |
308 "//url/mojo:url_mojom_origin_blink_cpp_sources", | 312 "//url/mojo:url_mojom_origin_blink_cpp_sources", |
309 "//url/mojo:url_mojom_gurl_blink_cpp_sources", | 313 "//url/mojo:url_mojom_gurl_blink_cpp_sources", |
310 ] | 314 ] |
311 output_name = "blink_platform" | 315 output_name = "blink_platform" |
312 | 316 |
313 sources = platform_files | 317 sources = platform_files |
314 sources -= blink_platform_neon_files | 318 sources -= blink_platform_neon_files |
315 sources -= blink_platform_sse_files | 319 sources -= blink_platform_sse_files |
316 | 320 |
317 # Add in the generated files. | 321 # Add in the generated files. |
318 sources += get_target_outputs(":character_data") + | 322 sources += get_target_outputs(":character_data") + |
319 get_target_outputs(":color_data") + | 323 get_target_outputs(":color_data") + |
320 get_target_outputs(":font_family_names") + | 324 get_target_outputs(":font_family_names") + |
321 get_target_outputs(":http_names") + | 325 get_target_outputs(":http_names") + |
322 get_target_outputs(":inspector_debugger_script") + | 326 get_target_outputs(":inspector_debugger_script") + |
323 get_target_outputs(":inspector_injected_script") + | 327 get_target_outputs(":inspector_injected_script") + |
324 get_target_outputs(":inspector_protocol_sources") + | 328 get_target_outputs(":inspector_protocol_sources") + |
325 get_target_outputs(":inspector_protocol_version") + | |
326 get_target_outputs(":runtime_enabled_features") | 329 get_target_outputs(":runtime_enabled_features") |
327 | 330 |
328 configs += [ | 331 configs += [ |
329 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 332 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
330 "//build/config/compiler:no_size_t_to_int_warning", | 333 "//build/config/compiler:no_size_t_to_int_warning", |
331 "//third_party/WebKit/Source:config", | 334 "//third_party/WebKit/Source:config", |
332 "//third_party/WebKit/Source:non_test_config", | 335 "//third_party/WebKit/Source:non_test_config", |
333 ] | 336 ] |
334 | 337 |
335 defines = [ | 338 defines = [ |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 } | 628 } |
626 | 629 |
627 if (current_cpu == "x86" || current_cpu == "x64") { | 630 if (current_cpu == "x86" || current_cpu == "x64") { |
628 source_set("blink_x86_sse") { | 631 source_set("blink_x86_sse") { |
629 sources = blink_platform_sse_files | 632 sources = blink_platform_sse_files |
630 deps = [ | 633 deps = [ |
631 ":blink_common", | 634 ":blink_common", |
632 ] | 635 ] |
633 } | 636 } |
634 } | 637 } |
OLD | NEW |