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

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

Issue 332413004: Generate web, devtools files into their own sub-dirs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: more gn build changes 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
« no previous file with comments | « no previous file | Source/devtools/devtools.gyp » ('j') | 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 gypi_values = exec_script( 5 gypi_values = exec_script(
6 "//build/gypi_to_gn.py", 6 "//build/gypi_to_gn.py",
7 [ rebase_path("devtools.gypi") ], 7 [ rebase_path("devtools.gypi") ],
8 "scope", 8 "scope",
9 [ "devtools.gypi" ]) 9 [ "devtools.gypi" ])
10 10
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 action("supported_css_properties") { 179 action("supported_css_properties") {
180 script = "scripts/generate_supported_css.py" 180 script = "scripts/generate_supported_css.py"
181 181
182 source_prereqs = [ 182 source_prereqs = [
183 "../core/css/CSSPropertyNames.in", 183 "../core/css/CSSPropertyNames.in",
184 "../core/css/SVGCSSPropertyNames.in", 184 "../core/css/SVGCSSPropertyNames.in",
185 "../core/css/CSSShorthands.in", 185 "../core/css/CSSShorthands.in",
186 ] 186 ]
187 187
188 outputs = [ 188 outputs = [
189 "$root_gen_dir/blink/SupportedCSSProperties.js" 189 "$root_gen_dir/blink/devtools/SupportedCSSProperties.js"
190 ] 190 ]
191 191
192 args = rebase_path(source_prereqs, root_build_dir) + 192 args = rebase_path(source_prereqs, root_build_dir) +
193 rebase_path(outputs, root_build_dir) 193 rebase_path(outputs, root_build_dir)
194 } 194 }
195 195
196 action("frontend_protocol_sources") { 196 action("frontend_protocol_sources") {
197 script = "scripts/CodeGeneratorFrontend.py" 197 script = "scripts/CodeGeneratorFrontend.py"
198 198
199 source_prereqs = [ "protocol.json" ] 199 source_prereqs = [ "protocol.json" ]
200 outputs = [ "$root_gen_dir/blink/InspectorBackendCommands.js" ] 200 outputs = [ "$root_gen_dir/blink/devtools/InspectorBackendCommands.js" ]
201 201
202 args = rebase_path(source_prereqs, root_build_dir) + [ 202 args = rebase_path(source_prereqs, root_build_dir) + [
203 "--output_js_dir", rebase_path("$root_gen_dir/blink", root_build_dir), 203 "--output_js_dir", rebase_path("$root_gen_dir/blink", root_build_dir),
204 ] 204 ]
205 } 205 }
206 206
207 # Runs the inline_js_imports script. 207 # Runs the inline_js_imports script.
208 # input: (String) The input .js file to read. 208 # input: (String) The input .js file to read.
209 # imported_files: (List of strings) The list of files the input depends on. 209 # imported_files: (List of strings) The list of files the input depends on.
210 # output: (String) The .js file to write. 210 # output: (String) The .js file to write.
(...skipping 19 matching lines...) Expand all
230 input = "front_end/audits/AuditsPanel.js" 230 input = "front_end/audits/AuditsPanel.js"
231 imported_files = gypi_values.devtools_audits_js_files 231 imported_files = gypi_values.devtools_audits_js_files
232 output = "$root_out_dir/resources/inspector/audits/AuditsPanel.js" 232 output = "$root_out_dir/resources/inspector/audits/AuditsPanel.js"
233 } 233 }
234 234
235 action("build_core_module") { 235 action("build_core_module") {
236 script = "scripts/concatenate_js_files.py" 236 script = "scripts/concatenate_js_files.py"
237 input_page = "front_end/inspector.html" 237 input_page = "front_end/inspector.html"
238 source_prereqs = [ 238 source_prereqs = [
239 input_page, 239 input_page,
240 "$root_gen_dir/blink/InspectorBackendCommands.js", 240 "$root_gen_dir/blink/devtools/InspectorBackendCommands.js",
241 "$root_gen_dir/blink/SupportedCSSProperties.js", 241 "$root_gen_dir/blink/devtools/SupportedCSSProperties.js",
242 "$root_gen_dir/blink/common/modules.js", 242 "$root_gen_dir/blink/devtools/common/modules.js",
243 ] + devtools_core_js_files 243 ] + devtools_core_js_files
244 244
245 search_path = [ 245 search_path = [
246 "$root_gen_dir/blink", 246 "$root_gen_dir/blink",
247 "front_end", 247 "front_end",
248 ] 248 ]
249 outputs = [ 249 outputs = [
250 "$root_out_dir/resources/inspector/main/Main.js", 250 "$root_out_dir/resources/inspector/main/Main.js",
251 ] 251 ]
252 252
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 input = "front_end/temp_storage_shared_worker/TempStorageSharedWorker.js" 359 input = "front_end/temp_storage_shared_worker/TempStorageSharedWorker.js"
360 imported_files = gypi_values.devtools_temp_storage_shared_worker_js_files 360 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" 361 output = "$root_out_dir/resources/inspector/temp_storage_shared_worker/TempSto rageSharedWorker.js"
362 } 362 }
363 363
364 action("concatenated_module_descriptors") { 364 action("concatenated_module_descriptors") {
365 script = "scripts/concatenate_module_descriptors.py" 365 script = "scripts/concatenate_module_descriptors.py"
366 366
367 input = "front_end/common/modules.js" 367 input = "front_end/common/modules.js"
368 source_prereqs = [ input ] + gypi_values.devtools_module_json_files 368 source_prereqs = [ input ] + gypi_values.devtools_module_json_files
369 outputs = [ "$root_gen_dir/blink/common/modules.js" ] 369 outputs = [ "$root_gen_dir/blink/devtools/common/modules.js" ]
370 370
371 args = rebase_path([ input ] + outputs + gypi_values.devtools_module_json_file s, root_build_dir) 371 args = rebase_path([ input ] + outputs + gypi_values.devtools_module_json_file s, root_build_dir)
372 } 372 }
373 373
374 action("concatenated_devtools_css") { 374 action("concatenated_devtools_css") {
375 script = "scripts/concatenate_css_files.py" 375 script = "scripts/concatenate_css_files.py"
376 376
377 input_page = "front_end/inspector.html" 377 input_page = "front_end/inspector.html"
378 source_prereqs = [ input_page ] + all_devtools_files 378 source_prereqs = [ input_page ] + all_devtools_files
379 search_path = [ "front_end" ] 379 search_path = [ "front_end" ]
380 380
381 outputs = [ "$root_out_dir/resources/inspector/inspector.css" ] 381 outputs = [ "$root_out_dir/resources/inspector/inspector.css" ]
382 382
383 args = [ rebase_path(input_page, root_build_dir) ] + 383 args = [ rebase_path(input_page, root_build_dir) ] +
384 rebase_path(search_path, root_build_dir) + 384 rebase_path(search_path, root_build_dir) +
385 rebase_path(outputs, root_build_dir) 385 rebase_path(outputs, root_build_dir)
386 } 386 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/devtools.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698