| 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/features.gni") | 5 import("//build/config/features.gni") |
| 6 | 6 |
| 7 gypi_values = exec_script( | 7 gypi_values = exec_script( |
| 8 "//build/gypi_to_gn.py", | 8 "//build/gypi_to_gn.py", |
| 9 [ rebase_path("devtools.gypi") ], | 9 [ rebase_path("devtools.gypi") ], |
| 10 "scope", | 10 "scope", |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 generated_scripts = [ | 75 generated_scripts = [ |
| 76 resources_out_dir + "InspectorBackendCommands.js", | 76 resources_out_dir + "InspectorBackendCommands.js", |
| 77 resources_out_dir + "SupportedCSSProperties.js", | 77 resources_out_dir + "SupportedCSSProperties.js", |
| 78 ] | 78 ] |
| 79 | 79 |
| 80 #------------------------------------------------------------------------------- | 80 #------------------------------------------------------------------------------- |
| 81 | 81 |
| 82 visibility = [ "//third_party/WebKit/*" ] | 82 visibility = [ "//third_party/WebKit/*" ] |
| 83 | 83 |
| 84 group("devtools_frontend_resources") { | 84 group("devtools_frontend_resources") { |
| 85 deps = [ | 85 public_deps = [ |
| 86 ":copy_compatibility_scripts", | 86 ":copy_compatibility_scripts", |
| 87 ":copy_inspector_images", | 87 ":copy_inspector_images", |
| 88 ":copy_emulated_devices_images", | 88 ":copy_emulated_devices_images", |
| 89 ":devtools_extension_api", | 89 ":devtools_extension_api", |
| 90 ":frontend_protocol_sources", | 90 ":frontend_protocol_sources", |
| 91 ":supported_css_properties", | 91 ":supported_css_properties", |
| 92 ":build_applications", | 92 ":build_applications", |
| 93 ] | 93 ] |
| 94 | 94 |
| 95 if (!debug_devtools) { | 95 if (!debug_devtools) { |
| 96 # This overwrites application-specific core CSS (devtools.css), | 96 # This overwrites application-specific core CSS (devtools.css), |
| 97 # and thus should be guarded out in Debug builds. | 97 # and thus should be guarded out in Debug builds. |
| 98 deps += [ | 98 public_deps += [ |
| 99 ":concatenated_inspector_css", | 99 ":concatenated_inspector_css", |
| 100 ":concatenated_toolbox_css", | 100 ":concatenated_toolbox_css", |
| 101 ] | 101 ] |
| 102 } | 102 } |
| 103 } | 103 } |
| 104 | 104 |
| 105 copy("copy_compatibility_scripts") { | 105 copy("copy_compatibility_scripts") { |
| 106 sources = gypi_values.devtools_compatibility_scripts | 106 sources = gypi_values.devtools_compatibility_scripts |
| 107 outputs = [ resources_out_dir + "{{source_file_part}}" ] | 107 outputs = [ resources_out_dir + "{{source_file_part}}" ] |
| 108 } | 108 } |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 "inspector", "toolbox", | 293 "inspector", "toolbox", |
| 294 "--input_path", rebase_path("front_end", root_build_dir), | 294 "--input_path", rebase_path("front_end", root_build_dir), |
| 295 "--output_path", rebase_path(resources_out_dir, root_build_dir), | 295 "--output_path", rebase_path(resources_out_dir, root_build_dir), |
| 296 "--debug", debug_mode | 296 "--debug", debug_mode |
| 297 ] | 297 ] |
| 298 } | 298 } |
| 299 | 299 |
| 300 if (debug_devtools) { | 300 if (debug_devtools) { |
| 301 # Debug: copy non-module directories and core into resources_out_dir as-is. | 301 # Debug: copy non-module directories and core into resources_out_dir as-is. |
| 302 group("copy_debug_non_modules") { | 302 group("copy_debug_non_modules") { |
| 303 deps = [ | 303 public_deps = [ |
| 304 ":copy_runtime_core", | 304 ":copy_runtime_core", |
| 305 ":copy_acorn_js_files", | 305 ":copy_acorn_js_files", |
| 306 ":copy_codemirror_files", | 306 ":copy_codemirror_files", |
| 307 ] | 307 ] |
| 308 } | 308 } |
| 309 | 309 |
| 310 copy("copy_runtime_core") { | 310 copy("copy_runtime_core") { |
| 311 sources = gypi_values.devtools_core_base_files + | 311 sources = gypi_values.devtools_core_base_files + |
| 312 gypi_values.devtools_core_css_files | 312 gypi_values.devtools_core_css_files |
| 313 outputs = [ resources_out_dir + "/{{source_file_part}}" ] | 313 outputs = [ resources_out_dir + "/{{source_file_part}}" ] |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 } | 345 } |
| 346 | 346 |
| 347 concatenate_css("concatenated_inspector_css") { | 347 concatenate_css("concatenated_inspector_css") { |
| 348 app_name = "inspector" | 348 app_name = "inspector" |
| 349 } | 349 } |
| 350 | 350 |
| 351 concatenate_css("concatenated_toolbox_css") { | 351 concatenate_css("concatenated_toolbox_css") { |
| 352 app_name = "toolbox" | 352 app_name = "toolbox" |
| 353 } | 353 } |
| 354 } | 354 } |
| OLD | NEW |