| 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 import("//third_party/WebKit/Source/core/core.gni") | 6 import("//third_party/WebKit/Source/core/core.gni") |
| 7 | 7 |
| 8 gypi_values = exec_script("//build/gypi_to_gn.py", | 8 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 9 [ rebase_path("devtools.gypi") ], | 9 [ rebase_path("devtools.gypi") ], |
| 10 "scope", | 10 "scope", |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 all_devtools_files = | 60 all_devtools_files = |
| 61 gypi_values.devtools_cm_css_files + gypi_values.devtools_cm_js_files + | 61 gypi_values.devtools_cm_css_files + gypi_values.devtools_cm_js_files + |
| 62 devtools_core_files + gypi_values.devtools_module_json_files + | 62 devtools_core_files + gypi_values.devtools_module_json_files + |
| 63 devtools_modules_js_files + gypi_values.devtools_acorn_files | 63 devtools_modules_js_files + gypi_values.devtools_acorn_files |
| 64 | 64 |
| 65 # FIXME: Fix the generate_devtools_grd.py script to accept trailing slashes. | 65 # FIXME: Fix the generate_devtools_grd.py script to accept trailing slashes. |
| 66 resources_out_dir_no_slash = "$root_out_dir/resources/inspector" | 66 resources_out_dir_no_slash = "$root_out_dir/resources/inspector" |
| 67 resources_out_dir = resources_out_dir_no_slash + "/" | 67 resources_out_dir = resources_out_dir_no_slash + "/" |
| 68 | 68 |
| 69 generated_scripts = [ | 69 generated_scripts = [ |
| 70 resources_out_dir + "InspectorBackendCommands.js", | 70 resources_out_dir + "gen/InspectorBackendCommands.js", |
| 71 resources_out_dir + "SupportedCSSProperties.js", | 71 resources_out_dir + "gen/SupportedCSSProperties.js", |
| 72 ] | 72 ] |
| 73 | 73 |
| 74 #------------------------------------------------------------------------------- | 74 #------------------------------------------------------------------------------- |
| 75 | 75 |
| 76 visibility = [ "//third_party/WebKit/*" ] | 76 visibility = [ "//third_party/WebKit/*" ] |
| 77 | 77 |
| 78 group("devtools_frontend_resources") { | 78 group("devtools_frontend_resources") { |
| 79 public_deps = [ | 79 public_deps = [ |
| 80 ":build_applications", | 80 ":build_applications", |
| 81 ":copy_embedder_scripts", | 81 ":copy_embedder_scripts", |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 } | 209 } |
| 210 | 210 |
| 211 action("supported_css_properties") { | 211 action("supported_css_properties") { |
| 212 script = "scripts/generate_supported_css.py" | 212 script = "scripts/generate_supported_css.py" |
| 213 | 213 |
| 214 inputs = [ | 214 inputs = [ |
| 215 "../core/css/CSSProperties.in", | 215 "../core/css/CSSProperties.in", |
| 216 ] | 216 ] |
| 217 | 217 |
| 218 outputs = [ | 218 outputs = [ |
| 219 resources_out_dir + "SupportedCSSProperties.js", | 219 resources_out_dir + "gen/SupportedCSSProperties.js", |
| 220 ] | 220 ] |
| 221 | 221 |
| 222 args = | 222 args = |
| 223 rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir) | 223 rebase_path(inputs, root_build_dir) + rebase_path(outputs, root_build_dir) |
| 224 } | 224 } |
| 225 | 225 |
| 226 action("frontend_protocol_sources") { | 226 action("frontend_protocol_sources") { |
| 227 script = "scripts/CodeGeneratorFrontend.py" | 227 script = "scripts/CodeGeneratorFrontend.py" |
| 228 deps = [ | 228 deps = [ |
| 229 "../core/inspector:protocol_version", | 229 "../core/inspector:protocol_version", |
| 230 ] | 230 ] |
| 231 inputs = [ | 231 inputs = [ |
| 232 "$blink_core_output_dir/inspector/protocol.json", | 232 "$blink_core_output_dir/inspector/protocol.json", |
| 233 ] | 233 ] |
| 234 outputs = [ | 234 outputs = [ |
| 235 resources_out_dir + "InspectorBackendCommands.js", | 235 resources_out_dir + "gen/InspectorBackendCommands.js", |
| 236 ] | 236 ] |
| 237 | 237 |
| 238 args = rebase_path(inputs, root_build_dir) + [ | 238 args = rebase_path(inputs, root_build_dir) + [ |
| 239 "--output_js_dir", | 239 "--output_js_dir", |
| 240 rebase_path(resources_out_dir, root_build_dir), | 240 rebase_path(resources_out_dir, root_build_dir), |
| 241 ] | 241 ] |
| 242 } | 242 } |
| 243 | 243 |
| 244 action("build_applications") { | 244 action("build_applications") { |
| 245 script = "scripts/build_applications.py" | 245 script = "scripts/build_applications.py" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 } | 345 } |
| 346 | 346 |
| 347 copy("copy_codemirror_files") { | 347 copy("copy_codemirror_files") { |
| 348 sources = | 348 sources = |
| 349 gypi_values.devtools_cm_js_files + gypi_values.devtools_cm_css_files | 349 gypi_values.devtools_cm_js_files + gypi_values.devtools_cm_css_files |
| 350 outputs = [ | 350 outputs = [ |
| 351 resources_out_dir + "cm/{{source_file_part}}", | 351 resources_out_dir + "cm/{{source_file_part}}", |
| 352 ] | 352 ] |
| 353 } | 353 } |
| 354 } | 354 } |
| OLD | NEW |