| 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 blink_devtools_output_dir = "$root_gen_dir/blink/devtools/" |
| 6 |
| 5 gypi_values = exec_script( | 7 gypi_values = exec_script( |
| 6 "//build/gypi_to_gn.py", | 8 "//build/gypi_to_gn.py", |
| 7 [ rebase_path("devtools.gypi") ], | 9 [ rebase_path("devtools.gypi") ], |
| 8 "scope", | 10 "scope", |
| 9 [ "devtools.gypi" ]) | 11 [ "devtools.gypi" ]) |
| 10 | 12 |
| 11 # Some of the files in the .gypi use GYP variable expansions, go through and | 13 # Some of the files in the .gypi use GYP variable expansions, go through and |
| 12 # fix them. | 14 # fix them. |
| 13 devtools_core_base_js_files = gypi_values.devtools_core_base_js_files - [ | 15 devtools_core_base_js_files = gypi_values.devtools_core_base_js_files - [ |
| 14 "<@(devtools_main_js_files)", | 16 "<@(devtools_main_js_files)", |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 action("supported_css_properties") { | 181 action("supported_css_properties") { |
| 180 script = "scripts/generate_supported_css.py" | 182 script = "scripts/generate_supported_css.py" |
| 181 | 183 |
| 182 source_prereqs = [ | 184 source_prereqs = [ |
| 183 "../core/css/CSSPropertyNames.in", | 185 "../core/css/CSSPropertyNames.in", |
| 184 "../core/css/SVGCSSPropertyNames.in", | 186 "../core/css/SVGCSSPropertyNames.in", |
| 185 "../core/css/CSSShorthands.in", | 187 "../core/css/CSSShorthands.in", |
| 186 ] | 188 ] |
| 187 | 189 |
| 188 outputs = [ | 190 outputs = [ |
| 189 "$root_gen_dir/blink/devtools/SupportedCSSProperties.js" | 191 blink_devtools_output_dir + "SupportedCSSProperties.js" |
| 190 ] | 192 ] |
| 191 | 193 |
| 192 args = rebase_path(source_prereqs, root_build_dir) + | 194 args = rebase_path(source_prereqs, root_build_dir) + |
| 193 rebase_path(outputs, root_build_dir) | 195 rebase_path(outputs, root_build_dir) |
| 194 } | 196 } |
| 195 | 197 |
| 196 action("frontend_protocol_sources") { | 198 action("frontend_protocol_sources") { |
| 197 script = "scripts/CodeGeneratorFrontend.py" | 199 script = "scripts/CodeGeneratorFrontend.py" |
| 198 | 200 |
| 199 source_prereqs = [ "protocol.json" ] | 201 source_prereqs = [ "protocol.json" ] |
| 200 outputs = [ "$root_gen_dir/blink/devtools/InspectorBackendCommands.js" ] | 202 outputs = [ blink_devtools_output_dir + "InspectorBackendCommands.js" ] |
| 201 | 203 |
| 202 args = rebase_path(source_prereqs, root_build_dir) + [ | 204 args = rebase_path(source_prereqs, root_build_dir) + [ |
| 203 "--output_js_dir", rebase_path("$root_gen_dir/blink", root_build_dir), | 205 "--output_js_dir", rebase_path(blink_devtools_output_dir, root_build_dir), |
| 204 ] | 206 ] |
| 205 } | 207 } |
| 206 | 208 |
| 207 # Runs the inline_js_imports script. | 209 # Runs the inline_js_imports script. |
| 208 # input: (String) The input .js file to read. | 210 # input: (String) The input .js file to read. |
| 209 # imported_files: (List of strings) The list of files the input depends on. | 211 # imported_files: (List of strings) The list of files the input depends on. |
| 210 # output: (String) The .js file to write. | 212 # output: (String) The .js file to write. |
| 211 template("inline_js_imports") { | 213 template("inline_js_imports") { |
| 212 assert(defined(invoker.input), target_name) | 214 assert(defined(invoker.input), target_name) |
| 213 assert(defined(invoker.imported_files), target_name) | 215 assert(defined(invoker.imported_files), target_name) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 230 input = "front_end/audits/AuditsPanel.js" | 232 input = "front_end/audits/AuditsPanel.js" |
| 231 imported_files = gypi_values.devtools_audits_js_files | 233 imported_files = gypi_values.devtools_audits_js_files |
| 232 output = "$root_out_dir/resources/inspector/audits/AuditsPanel.js" | 234 output = "$root_out_dir/resources/inspector/audits/AuditsPanel.js" |
| 233 } | 235 } |
| 234 | 236 |
| 235 action("build_core_module") { | 237 action("build_core_module") { |
| 236 script = "scripts/concatenate_js_files.py" | 238 script = "scripts/concatenate_js_files.py" |
| 237 input_page = "front_end/inspector.html" | 239 input_page = "front_end/inspector.html" |
| 238 source_prereqs = [ | 240 source_prereqs = [ |
| 239 input_page, | 241 input_page, |
| 240 "$root_gen_dir/blink/devtools/InspectorBackendCommands.js", | 242 blink_devtools_output_dir + "InspectorBackendCommands.js", |
| 241 "$root_gen_dir/blink/devtools/SupportedCSSProperties.js", | 243 blink_devtools_output_dir + "SupportedCSSProperties.js", |
| 242 "$root_gen_dir/blink/devtools/common/modules.js", | 244 blink_devtools_output_dir + "common/modules.js", |
| 243 ] + devtools_core_js_files | 245 ] + devtools_core_js_files |
| 244 | 246 |
| 245 search_path = [ | 247 search_path = [ |
| 246 "$root_gen_dir/blink", | 248 blink_devtools_output_dir, |
| 247 "front_end", | 249 "front_end", |
| 248 ] | 250 ] |
| 249 outputs = [ | 251 outputs = [ |
| 250 "$root_out_dir/resources/inspector/main/Main.js", | 252 "$root_out_dir/resources/inspector/main/Main.js", |
| 251 ] | 253 ] |
| 252 | 254 |
| 253 args = [ | 255 args = [ |
| 254 rebase_path(input_page, root_build_dir), | 256 rebase_path(input_page, root_build_dir), |
| 255 ] | 257 ] |
| 256 args += rebase_path(search_path, root_build_dir) | 258 args += rebase_path(search_path, root_build_dir) |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 input = "front_end/temp_storage_shared_worker/TempStorageSharedWorker.js" | 361 input = "front_end/temp_storage_shared_worker/TempStorageSharedWorker.js" |
| 360 imported_files = gypi_values.devtools_temp_storage_shared_worker_js_files | 362 imported_files = gypi_values.devtools_temp_storage_shared_worker_js_files |
| 361 output = "$root_out_dir/resources/inspector/temp_storage_shared_worker/TempSto
rageSharedWorker.js" | 363 output = "$root_out_dir/resources/inspector/temp_storage_shared_worker/TempSto
rageSharedWorker.js" |
| 362 } | 364 } |
| 363 | 365 |
| 364 action("concatenated_module_descriptors") { | 366 action("concatenated_module_descriptors") { |
| 365 script = "scripts/concatenate_module_descriptors.py" | 367 script = "scripts/concatenate_module_descriptors.py" |
| 366 | 368 |
| 367 input = "front_end/common/modules.js" | 369 input = "front_end/common/modules.js" |
| 368 source_prereqs = [ input ] + gypi_values.devtools_module_json_files | 370 source_prereqs = [ input ] + gypi_values.devtools_module_json_files |
| 369 outputs = [ "$root_gen_dir/blink/devtools/common/modules.js" ] | 371 outputs = [ blink_devtools_output_dir + "common/modules.js" ] |
| 370 | 372 |
| 371 args = rebase_path([ input ] + outputs + gypi_values.devtools_module_json_file
s, root_build_dir) | 373 args = rebase_path([ input ] + outputs + gypi_values.devtools_module_json_file
s, root_build_dir) |
| 372 } | 374 } |
| 373 | 375 |
| 374 action("concatenated_devtools_css") { | 376 action("concatenated_devtools_css") { |
| 375 script = "scripts/concatenate_css_files.py" | 377 script = "scripts/concatenate_css_files.py" |
| 376 | 378 |
| 377 input_page = "front_end/inspector.html" | 379 input_page = "front_end/inspector.html" |
| 378 source_prereqs = [ input_page ] + all_devtools_files | 380 source_prereqs = [ input_page ] + all_devtools_files |
| 379 search_path = [ "front_end" ] | 381 search_path = [ "front_end" ] |
| 380 | 382 |
| 381 outputs = [ "$root_out_dir/resources/inspector/inspector.css" ] | 383 outputs = [ "$root_out_dir/resources/inspector/inspector.css" ] |
| 382 | 384 |
| 383 args = [ rebase_path(input_page, root_build_dir) ] + | 385 args = [ rebase_path(input_page, root_build_dir) ] + |
| 384 rebase_path(search_path, root_build_dir) + | 386 rebase_path(search_path, root_build_dir) + |
| 385 rebase_path(outputs, root_build_dir) | 387 rebase_path(outputs, root_build_dir) |
| 386 } | 388 } |
| OLD | NEW |