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

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

Issue 710033003: [DevTools] Extract part of DevTools into inspector app. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 1 month 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 | 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 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",
11 [ "devtools.gypi" ]) 11 [ "devtools.gypi" ])
12 12
13 # 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
14 # fix them. 14 # fix them.
15 devtools_core_files = 15 devtools_core_files =
16 gypi_values.devtools_core_base_files + 16 gypi_values.devtools_core_base_files +
17 gypi_values.devtools_bindings_js_files + 17 gypi_values.devtools_bindings_js_files +
18 gypi_values.devtools_common_js_files + 18 gypi_values.devtools_common_js_files +
19 gypi_values.devtools_components_js_files + 19 gypi_values.devtools_components_js_files +
20 gypi_values.devtools_devtools_app_js_files +
20 gypi_values.devtools_host_js_files + 21 gypi_values.devtools_host_js_files +
21 gypi_values.devtools_main_js_files + 22 gypi_values.devtools_main_js_files +
22 gypi_values.devtools_platform_js_files + 23 gypi_values.devtools_platform_js_files +
23 gypi_values.devtools_screencast_js_files + 24 gypi_values.devtools_screencast_js_files +
24 gypi_values.devtools_sdk_js_files + 25 gypi_values.devtools_sdk_js_files +
25 gypi_values.devtools_toolbox_js_files + 26 gypi_values.devtools_toolbox_js_files +
26 gypi_values.devtools_toolbox_bootstrap_js_files + 27 gypi_values.devtools_toolbox_bootstrap_js_files +
27 gypi_values.devtools_ui_js_files + 28 gypi_values.devtools_ui_js_files +
28 gypi_values.devtools_workspace_js_files + 29 gypi_values.devtools_workspace_js_files +
29 gypi_values.devtools_core_css_files 30 gypi_values.devtools_core_css_files
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 ":frontend_protocol_sources", 81 ":frontend_protocol_sources",
81 ":supported_css_properties", 82 ":supported_css_properties",
82 ":build_applications", 83 ":build_applications",
83 ] 84 ]
84 85
85 if (!debug_devtools) { 86 if (!debug_devtools) {
86 # This overwrites application-specific core CSS (devtools.css), 87 # This overwrites application-specific core CSS (devtools.css),
87 # and thus should be guarded out in Debug builds. 88 # and thus should be guarded out in Debug builds.
88 deps += [ 89 deps += [
89 ":concatenated_devtools_css", 90 ":concatenated_devtools_css",
91 ":concatenated_inspector_css",
90 ":concatenated_toolbox_css", 92 ":concatenated_toolbox_css",
91 ] 93 ]
92 } 94 }
93 } 95 }
94 96
95 copy("copy_inspector_images") { 97 copy("copy_inspector_images") {
96 sources = gypi_values.devtools_image_files 98 sources = gypi_values.devtools_image_files
97 outputs = [ resources_out_dir + "Images/{{source_file_part}}" ] 99 outputs = [ resources_out_dir + "Images/{{source_file_part}}" ]
98 } 100 }
99 101
100 action("generate_devtools_grd") { 102 action("generate_devtools_grd") {
101 script = "scripts/generate_devtools_grd.py" 103 script = "scripts/generate_devtools_grd.py"
102 104
103 deps = [ ":devtools_frontend_resources" ] 105 deps = [ ":devtools_frontend_resources" ]
104 static_files_list = "$target_gen_dir/devtools_static_grd_files.tmp" 106 static_files_list = "$target_gen_dir/devtools_static_grd_files.tmp"
105 inputs = gypi_values.devtools_image_files + all_devtools_files + [ 107 inputs = gypi_values.devtools_image_files + all_devtools_files + [
106 static_files_list 108 static_files_list
107 ] 109 ]
108 110
109 static_files = [] 111 static_files = []
110 112
111 if (debug_devtools) { 113 if (debug_devtools) {
112 # Debug: all files are picked as-is. 114 # Debug: all files are picked as-is.
113 generated_files = generated_scripts + [ 115 generated_files = generated_scripts + [
114 resources_out_dir + "devtools.html", 116 resources_out_dir + "devtools.html",
117 resources_out_dir + "inspector.html",
115 resources_out_dir + "toolbox.html", 118 resources_out_dir + "toolbox.html",
116 ] 119 ]
117 static_files += all_devtools_files + [ "front_end/Runtime.js" ] 120 static_files += all_devtools_files + [ "front_end/Runtime.js" ]
118 } else { 121 } else {
119 # Release: pick compiled files and lazy-loaded CSS. 122 # Release: pick compiled files and lazy-loaded CSS.
120 generated_files = [ 123 generated_files = [
121 resources_out_dir + "devtools.css", 124 resources_out_dir + "devtools.css",
122 resources_out_dir + "devtools.html", 125 resources_out_dir + "devtools.html",
123 resources_out_dir + "devtools.js", 126 resources_out_dir + "devtools.js",
127 resources_out_dir + "inspector.css",
128 resources_out_dir + "inspector.html",
129 resources_out_dir + "inspector.js",
124 resources_out_dir + "toolbox.css", 130 resources_out_dir + "toolbox.css",
125 resources_out_dir + "toolbox.html", 131 resources_out_dir + "toolbox.html",
126 resources_out_dir + "toolbox.js", 132 resources_out_dir + "toolbox.js",
127 resources_out_dir + "audits_module.js", 133 resources_out_dir + "audits_module.js",
128 resources_out_dir + "console_module.js", 134 resources_out_dir + "console_module.js",
129 resources_out_dir + "devices_module.js", 135 resources_out_dir + "devices_module.js",
130 resources_out_dir + "documentation_module.js", 136 resources_out_dir + "documentation_module.js",
131 resources_out_dir + "elements_module.js", 137 resources_out_dir + "elements_module.js",
132 resources_out_dir + "heap_snapshot_worker_module.js", 138 resources_out_dir + "heap_snapshot_worker_module.js",
133 resources_out_dir + "layers_module.js", 139 resources_out_dir + "layers_module.js",
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 209
204 action("build_applications") { 210 action("build_applications") {
205 script = "scripts/build_applications.py" 211 script = "scripts/build_applications.py"
206 helper_scripts = [ 212 helper_scripts = [
207 "scripts/modular_build.py", 213 "scripts/modular_build.py",
208 "scripts/concatenate_application_code.py", 214 "scripts/concatenate_application_code.py",
209 ] 215 ]
210 216
211 inputs = helper_scripts + all_devtools_files + generated_scripts + [ 217 inputs = helper_scripts + all_devtools_files + generated_scripts + [
212 "front_end/devtools.html", 218 "front_end/devtools.html",
219 "front_end/inspector.html",
213 "front_end/toolbox.html", 220 "front_end/toolbox.html",
214 ] 221 ]
215 222
216 outputs = [ 223 outputs = [
217 resources_out_dir + "devtools.html", 224 resources_out_dir + "devtools.html",
225 resources_out_dir + "inspector.html",
218 resources_out_dir + "toolbox.html", 226 resources_out_dir + "toolbox.html",
219 ] 227 ]
220 228
221 if (debug_devtools) { 229 if (debug_devtools) {
222 deps = [ ":copy_debug_non_modules" ] 230 deps = [ ":copy_debug_non_modules" ]
223 231
224 debug_mode = "1" 232 debug_mode = "1"
225 } else { 233 } else {
226 outputs += [ 234 outputs += [
227 resources_out_dir + "devtools.js", 235 resources_out_dir + "devtools.js",
236 resources_out_dir + "inspector.js",
228 resources_out_dir + "toolbox.js", 237 resources_out_dir + "toolbox.js",
229 resources_out_dir + "audits_module.js", 238 resources_out_dir + "audits_module.js",
230 resources_out_dir + "console_module.js", 239 resources_out_dir + "console_module.js",
231 resources_out_dir + "devices_module.js", 240 resources_out_dir + "devices_module.js",
232 resources_out_dir + "documentation_module.js", 241 resources_out_dir + "documentation_module.js",
233 resources_out_dir + "elements_module.js", 242 resources_out_dir + "elements_module.js",
234 resources_out_dir + "heap_snapshot_worker_module.js", 243 resources_out_dir + "heap_snapshot_worker_module.js",
235 resources_out_dir + "layers_module.js", 244 resources_out_dir + "layers_module.js",
236 resources_out_dir + "network_module.js", 245 resources_out_dir + "network_module.js",
237 resources_out_dir + "profiler_module.js", 246 resources_out_dir + "profiler_module.js",
238 resources_out_dir + "promises_module.js", 247 resources_out_dir + "promises_module.js",
239 resources_out_dir + "resources_module.js", 248 resources_out_dir + "resources_module.js",
240 resources_out_dir + "script_formatter_worker_module.js", 249 resources_out_dir + "script_formatter_worker_module.js",
241 resources_out_dir + "settings_module.js", 250 resources_out_dir + "settings_module.js",
242 resources_out_dir + "source_frame_module.js", 251 resources_out_dir + "source_frame_module.js",
243 resources_out_dir + "sources_module.js", 252 resources_out_dir + "sources_module.js",
244 resources_out_dir + "temp_storage_shared_worker_module.js", 253 resources_out_dir + "temp_storage_shared_worker_module.js",
245 resources_out_dir + "timeline_module.js", 254 resources_out_dir + "timeline_module.js",
246 ] 255 ]
247 256
248 deps = [ 257 deps = [
249 ":supported_css_properties", 258 ":supported_css_properties",
250 ":frontend_protocol_sources", 259 ":frontend_protocol_sources",
251 ] 260 ]
252 261
253 debug_mode = "0" 262 debug_mode = "0"
254 } 263 }
255 264
256 args = [ 265 args = [
257 "devtools", "toolbox", 266 "devtools", "inspector", "toolbox",
258 "--input_path", rebase_path("front_end", root_build_dir), 267 "--input_path", rebase_path("front_end", root_build_dir),
259 "--output_path", rebase_path(resources_out_dir, root_build_dir), 268 "--output_path", rebase_path(resources_out_dir, root_build_dir),
260 "--debug", debug_mode 269 "--debug", debug_mode
261 ] 270 ]
262 } 271 }
263 272
264 if (debug_devtools) { 273 if (debug_devtools) {
265 # Debug: copy non-module directories and core into resources_out_dir as-is. 274 # Debug: copy non-module directories and core into resources_out_dir as-is.
266 group("copy_debug_non_modules") { 275 group("copy_debug_non_modules") {
267 deps = [ 276 deps = [
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 314
306 args = [ rebase_path(input_stylesheet, root_build_dir) ] + 315 args = [ rebase_path(input_stylesheet, root_build_dir) ] +
307 rebase_path(outputs, root_build_dir) 316 rebase_path(outputs, root_build_dir)
308 } 317 }
309 } 318 }
310 319
311 concatenate_css("concatenated_devtools_css") { 320 concatenate_css("concatenated_devtools_css") {
312 app_name = "devtools" 321 app_name = "devtools"
313 } 322 }
314 323
324 concatenate_css("concatenated_inspector_css") {
325 app_name = "inspector"
326 }
327
315 concatenate_css("concatenated_toolbox_css") { 328 concatenate_css("concatenated_toolbox_css") {
316 app_name = "toolbox" 329 app_name = "toolbox"
317 } 330 }
318 } 331 }
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