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

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

Issue 1439973004: [PoC] Reformat all BUILD.gn and *.gni files with new gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-sort-deps
Patch Set: Synchronize with new version of gn patch Created 5 years, 1 month 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 6
7 gypi_values = exec_script("//build/gypi_to_gn.py", 7 gypi_values = exec_script("//build/gypi_to_gn.py",
8 [ rebase_path("devtools.gypi") ], 8 [ rebase_path("devtools.gypi") ],
9 "scope", 9 "scope",
10 [ "devtools.gypi" ]) 10 [ "devtools.gypi" ])
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 resources_out_dir + "InspectorBackendCommands.js", 68 resources_out_dir + "InspectorBackendCommands.js",
69 resources_out_dir + "SupportedCSSProperties.js", 69 resources_out_dir + "SupportedCSSProperties.js",
70 ] 70 ]
71 71
72 #------------------------------------------------------------------------------- 72 #-------------------------------------------------------------------------------
73 73
74 visibility = [ "//third_party/WebKit/*" ] 74 visibility = [ "//third_party/WebKit/*" ]
75 75
76 group("devtools_frontend_resources") { 76 group("devtools_frontend_resources") {
77 public_deps = [ 77 public_deps = [
78 ":build_applications",
78 ":copy_compatibility_scripts", 79 ":copy_compatibility_scripts",
80 ":copy_emulated_devices_images",
79 ":copy_inspector_images", 81 ":copy_inspector_images",
80 ":copy_emulated_devices_images",
81 ":devtools_extension_api", 82 ":devtools_extension_api",
82 ":frontend_protocol_sources", 83 ":frontend_protocol_sources",
83 ":supported_css_properties", 84 ":supported_css_properties",
84 ":build_applications",
85 ] 85 ]
86 86
87 if (!debug_devtools) { 87 if (!debug_devtools) {
88 # This overwrites application-specific core CSS (devtools.css), 88 # This overwrites application-specific core CSS (devtools.css),
89 # and thus should be guarded out in Debug builds. 89 # and thus should be guarded out in Debug builds.
90 public_deps += [ 90 public_deps += [
91 ":concatenated_inspector_css", 91 ":concatenated_inspector_css",
92 ":concatenated_toolbox_css", 92 ":concatenated_toolbox_css",
93 ] 93 ]
94 } 94 }
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 "front_end/inspector.html", 258 "front_end/inspector.html",
259 "front_end/toolbox.html", 259 "front_end/toolbox.html",
260 ] 260 ]
261 261
262 outputs = [ 262 outputs = [
263 resources_out_dir + "inspector.html", 263 resources_out_dir + "inspector.html",
264 resources_out_dir + "toolbox.html", 264 resources_out_dir + "toolbox.html",
265 ] 265 ]
266 266
267 deps = [ 267 deps = [
268 ":frontend_protocol_sources",
268 ":supported_css_properties", 269 ":supported_css_properties",
269 ":frontend_protocol_sources",
270 ] 270 ]
271 271
272 if (debug_devtools) { 272 if (debug_devtools) {
273 deps += [ ":copy_debug_non_modules" ] 273 deps += [ ":copy_debug_non_modules" ]
274 274
275 debug_mode = "1" 275 debug_mode = "1"
276 } else { 276 } else {
277 outputs += [ 277 outputs += [
278 resources_out_dir + "inspector.js", 278 resources_out_dir + "inspector.js",
279 resources_out_dir + "toolbox.js", 279 resources_out_dir + "toolbox.js",
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 rebase_path(resources_out_dir, root_build_dir), 317 rebase_path(resources_out_dir, root_build_dir),
318 "--debug", 318 "--debug",
319 debug_mode, 319 debug_mode,
320 ] 320 ]
321 } 321 }
322 322
323 if (debug_devtools) { 323 if (debug_devtools) {
324 # Debug: copy non-module directories and core into resources_out_dir as-is. 324 # Debug: copy non-module directories and core into resources_out_dir as-is.
325 group("copy_debug_non_modules") { 325 group("copy_debug_non_modules") {
326 public_deps = [ 326 public_deps = [
327 ":copy_runtime_core",
328 ":copy_acorn_js_files", 327 ":copy_acorn_js_files",
329 ":copy_codemirror_files", 328 ":copy_codemirror_files",
329 ":copy_runtime_core",
330 ] 330 ]
331 } 331 }
332 332
333 copy("copy_runtime_core") { 333 copy("copy_runtime_core") {
334 sources = gypi_values.devtools_core_base_files + 334 sources = gypi_values.devtools_core_base_files +
335 gypi_values.devtools_core_css_files 335 gypi_values.devtools_core_css_files
336 outputs = [ 336 outputs = [
337 resources_out_dir + "/{{source_file_part}}", 337 resources_out_dir + "/{{source_file_part}}",
338 ] 338 ]
339 } 339 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 } 376 }
377 377
378 concatenate_css("concatenated_inspector_css") { 378 concatenate_css("concatenated_inspector_css") {
379 app_name = "inspector" 379 app_name = "inspector"
380 } 380 }
381 381
382 concatenate_css("concatenated_toolbox_css") { 382 concatenate_css("concatenated_toolbox_css") {
383 app_name = "toolbox" 383 app_name = "toolbox"
384 } 384 }
385 } 385 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698