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

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

Issue 359743003: DevTools: Fix GN build flakiness (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698