blob: a1a3d060206e6b8342acb41623cb1b9463d4ef79 [file] [log] [blame]
Blink Reformat4c46d092018-04-07 15:32:371# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Blink Reformat4c46d092018-04-07 15:32:375import("//third_party/blink/public/public_features.gni")
Tim van der Lippe85f14942020-07-13 14:02:406import("./all_devtools_files.gni")
Tim van der Lippe5822c1a2020-07-13 14:00:517import("./all_devtools_modules.gni")
Tim van der Lippe41a98a82020-07-15 12:58:248import("./devtools_image_files.gni")
Tim van der Lippe334be382020-07-13 14:35:589import("./devtools_module_entrypoints.gni")
Tim van der Lippef6650492020-07-16 13:41:1410import("./scripts/build/ninja/vars.gni")
Tim van der Lippebc42a632019-11-28 14:22:5511
12devtools_test_files = [
13 "//third_party/axe-core/axe.js",
14 "front_end/accessibility_test_runner/AccessibilityPaneTestRunner.js",
15 "front_end/accessibility_test_runner/module.json",
16 "front_end/application_test_runner/AppcacheTestRunner.js",
17 "front_end/application_test_runner/CacheStorageTestRunner.js",
18 "front_end/application_test_runner/IndexedDBTestRunner.js",
19 "front_end/application_test_runner/module.json",
20 "front_end/application_test_runner/ResourcesTestRunner.js",
21 "front_end/application_test_runner/ResourceTreeTestRunner.js",
22 "front_end/application_test_runner/ServiceWorkersTestRunner.js",
Connor Clark2bc3be22020-02-14 22:34:1923 "front_end/lighthouse_test_runner/LighthouseTestRunner.js",
24 "front_end/lighthouse_test_runner/module.json",
Tim van der Lippebc42a632019-11-28 14:22:5525 "front_end/axe_core_test_runner/AxeCoreTestRunner.js",
26 "front_end/axe_core_test_runner/module.json",
27 "front_end/bindings_test_runner/AutomappingTestRunner.js",
28 "front_end/bindings_test_runner/BindingsTestRunner.js",
29 "front_end/bindings_test_runner/IsolatedFilesystemTestRunner.js",
30 "front_end/bindings_test_runner/module.json",
31 "front_end/bindings_test_runner/OverridesTestRunner.js",
32 "front_end/bindings_test_runner/PersistenceTestRunner.js",
33 "front_end/console_test_runner/ConsoleTestRunner.js",
34 "front_end/console_test_runner/module.json",
35 "front_end/coverage_test_runner/CoverageTestRunner.js",
36 "front_end/coverage_test_runner/module.json",
37 "front_end/cpu_profiler_test_runner/module.json",
38 "front_end/cpu_profiler_test_runner/ProfilerTestRunner.js",
39 "front_end/data_grid_test_runner/DataGridTestRunner.js",
40 "front_end/data_grid_test_runner/module.json",
41 "front_end/device_mode_test_runner/DeviceModeTestRunner.js",
42 "front_end/device_mode_test_runner/module.json",
43 "front_end/elements_test_runner/EditDOMTestRunner.js",
44 "front_end/elements_test_runner/ElementsPanelShadowSelectionOnRefreshTestRunner.js",
45 "front_end/elements_test_runner/ElementsTestRunner.js",
46 "front_end/elements_test_runner/module.json",
47 "front_end/elements_test_runner/SetOuterHTMLTestRunner.js",
48 "front_end/elements_test_runner/StylesUpdateLinksTestRunner.js",
49 "front_end/extensions_test_runner/ExtensionsNetworkTestRunner.js",
50 "front_end/extensions_test_runner/ExtensionsTestRunner.js",
51 "front_end/extensions_test_runner/module.json",
52 "front_end/heap_profiler_test_runner/HeapProfilerTestRunner.js",
53 "front_end/heap_profiler_test_runner/module.json",
54 "front_end/integration_test_runner.html",
55 "front_end/integration_test_runner.js",
56 "front_end/integration_test_runner.json",
57 "front_end/layers_test_runner/LayersTestRunner.js",
58 "front_end/layers_test_runner/module.json",
59 "front_end/network_test_runner/module.json",
60 "front_end/network_test_runner/NetworkTestRunner.js",
61 "front_end/performance_test_runner/module.json",
62 "front_end/performance_test_runner/TimelineDataTestRunner.js",
63 "front_end/performance_test_runner/TimelineTestRunner.js",
64 "front_end/sdk_test_runner/module.json",
65 "front_end/sdk_test_runner/PageMockTestRunner.js",
66 "front_end/security_test_runner/module.json",
67 "front_end/security_test_runner/SecurityTestRunner.js",
68 "front_end/sources_test_runner/AutocompleteTestRunner.js",
69 "front_end/sources_test_runner/DebuggerTestRunner.js",
70 "front_end/sources_test_runner/EditorTestRunner.js",
71 "front_end/sources_test_runner/LiveEditTestRunner.js",
72 "front_end/sources_test_runner/module.json",
73 "front_end/sources_test_runner/SearchTestRunner.js",
74 "front_end/sources_test_runner/SourcesTestRunner.js",
75 "front_end/test_runner/module.json",
Tim van der Lippebc42a632019-11-28 14:22:5576]
77
78devtools_embedder_scripts = [
79 "front_end/devtools_compatibility.js",
80 "front_end/Tests.js",
81]
82
83devtools_emulated_devices_images = [
84 "front_end/emulated_devices/google-nexus-5-horizontal-default-1x.png",
85 "front_end/emulated_devices/google-nexus-5-horizontal-default-2x.png",
86 "front_end/emulated_devices/google-nexus-5-horizontal-keyboard-1x.png",
87 "front_end/emulated_devices/google-nexus-5-horizontal-keyboard-2x.png",
88 "front_end/emulated_devices/google-nexus-5-horizontal-navigation-1x.png",
89 "front_end/emulated_devices/google-nexus-5-horizontal-navigation-2x.png",
90 "front_end/emulated_devices/google-nexus-5-vertical-default-1x.png",
91 "front_end/emulated_devices/google-nexus-5-vertical-default-2x.png",
92 "front_end/emulated_devices/google-nexus-5-vertical-keyboard-1x.png",
93 "front_end/emulated_devices/google-nexus-5-vertical-keyboard-2x.png",
94 "front_end/emulated_devices/google-nexus-5-vertical-navigation-1x.png",
95 "front_end/emulated_devices/google-nexus-5-vertical-navigation-2x.png",
96 "front_end/emulated_devices/google-nexus-5x-horizontal-default-1x.png",
97 "front_end/emulated_devices/google-nexus-5x-horizontal-default-2x.png",
98 "front_end/emulated_devices/google-nexus-5x-horizontal-keyboard-1x.png",
99 "front_end/emulated_devices/google-nexus-5x-horizontal-keyboard-2x.png",
100 "front_end/emulated_devices/google-nexus-5x-horizontal-navigation-1x.png",
101 "front_end/emulated_devices/google-nexus-5x-horizontal-navigation-2x.png",
102 "front_end/emulated_devices/google-nexus-5x-vertical-default-1x.png",
103 "front_end/emulated_devices/google-nexus-5x-vertical-default-2x.png",
104 "front_end/emulated_devices/google-nexus-5x-vertical-keyboard-1x.png",
105 "front_end/emulated_devices/google-nexus-5x-vertical-keyboard-2x.png",
106 "front_end/emulated_devices/google-nexus-5x-vertical-navigation-1x.png",
107 "front_end/emulated_devices/google-nexus-5x-vertical-navigation-2x.png",
108 "front_end/emulated_devices/iPad-landscape.svg",
109 "front_end/emulated_devices/iPad-portrait.svg",
110 "front_end/emulated_devices/iPhone5-landscape.svg",
111 "front_end/emulated_devices/iPhone5-portrait.svg",
112 "front_end/emulated_devices/iPhone6-landscape.svg",
113 "front_end/emulated_devices/iPhone6-portrait.svg",
114 "front_end/emulated_devices/iPhone6Plus-landscape.svg",
115 "front_end/emulated_devices/iPhone6Plus-portrait.svg",
Connor Clark5f86e052020-01-24 21:38:50116 "front_end/emulated_devices/MotoG4-landscape.svg",
117 "front_end/emulated_devices/MotoG4-portrait.svg",
Tim van der Lippebc42a632019-11-28 14:22:55118 "front_end/emulated_devices/Nexus5X-landscape.svg",
119 "front_end/emulated_devices/Nexus5X-portrait.svg",
120 "front_end/emulated_devices/Nexus6P-landscape.svg",
121 "front_end/emulated_devices/Nexus6P-portrait.svg",
122]
123
Tim van der Lippebc42a632019-11-28 14:22:55124application_templates = [
125 "front_end/devtools_app.html",
126 "front_end/inspector.html",
127 "front_end/integration_test_runner.html",
128 "front_end/js_app.html",
129 "front_end/ndb_app.html",
130 "front_end/node_app.html",
131 "front_end/toolbox.html",
132 "front_end/worker_app.html",
133]
134
Tim van der Lippe49155912020-05-12 11:26:44135generated_applications_html = [
Tim van der Lippebc42a632019-11-28 14:22:55136 "$resources_out_dir/devtools_app.html",
Tim van der Lippebc42a632019-11-28 14:22:55137 "$resources_out_dir/inspector.html",
Tim van der Lippe49155912020-05-12 11:26:44138 "$resources_out_dir/integration_test_runner.html",
Tim van der Lippebc42a632019-11-28 14:22:55139 "$resources_out_dir/js_app.html",
Tim van der Lippe49155912020-05-12 11:26:44140 "$resources_out_dir/ndb_app.html",
Tim van der Lippebc42a632019-11-28 14:22:55141 "$resources_out_dir/node_app.html",
Tim van der Lippe49155912020-05-12 11:26:44142 "$resources_out_dir/toolbox.html",
143 "$resources_out_dir/worker_app.html",
144]
145
146generated_applications_js = [
147 "$resources_out_dir/lighthouse_worker.js",
148 "$resources_out_dir/devtools_app.js",
149 "$resources_out_dir/inspector.js",
150 "$resources_out_dir/js_app.js",
Tim van der Lippebc42a632019-11-28 14:22:55151 "$resources_out_dir/node_app.js",
152 "$resources_out_dir/shell.js",
Tim van der Lippebc42a632019-11-28 14:22:55153 "$resources_out_dir/toolbox.js",
Tim van der Lippebc42a632019-11-28 14:22:55154 "$resources_out_dir/worker_app.js",
155]
156
157generated_non_autostart_non_remote_modules = [
Tim van der Lippe387b03e2019-12-17 16:09:22158 "$resources_out_dir/accessibility/accessibility_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55159 "$resources_out_dir/animation/animation_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55160 "$resources_out_dir/browser_debugger/browser_debugger_module.js",
161 "$resources_out_dir/changes/changes_module.js",
Mathias Bynens4a0d1932020-07-28 06:31:37162 "$resources_out_dir/client_variations/client_variations_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55163 "$resources_out_dir/cm_modes/cm_modes_module.js",
Mathias Bynens2d8a20d2019-12-20 08:04:09164 "$resources_out_dir/cm/cm_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55165 "$resources_out_dir/color_picker/color_picker_module.js",
166 "$resources_out_dir/console/console_module.js",
167 "$resources_out_dir/cookie_table/cookie_table_module.js",
168 "$resources_out_dir/coverage/coverage_module.js",
Mathias Bynens2d8a20d2019-12-20 08:04:09169 "$resources_out_dir/css_overview/css_overview_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55170 "$resources_out_dir/data_grid/data_grid_module.js",
171 "$resources_out_dir/devices/devices_module.js",
172 "$resources_out_dir/diff/diff_module.js",
173 "$resources_out_dir/elements/elements_module.js",
174 "$resources_out_dir/event_listeners/event_listeners_module.js",
175 "$resources_out_dir/formatter/formatter_module.js",
176 "$resources_out_dir/har_importer/har_importer_module.js",
177 "$resources_out_dir/heap_snapshot_model/heap_snapshot_model_module.js",
178 "$resources_out_dir/help/help_module.js",
179 "$resources_out_dir/inline_editor/inline_editor_module.js",
Mathias Bynens2d8a20d2019-12-20 08:04:09180 "$resources_out_dir/input/input_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55181 "$resources_out_dir/javascript_metadata/javascript_metadata_module.js",
182 "$resources_out_dir/js_profiler/js_profiler_module.js",
183 "$resources_out_dir/layer_viewer/layer_viewer_module.js",
184 "$resources_out_dir/layers/layers_module.js",
Mathias Bynens4a0d1932020-07-28 06:31:37185 "$resources_out_dir/lighthouse/lighthouse_module.js",
Simon Zünda9f48fb2020-07-08 11:18:29186 "$resources_out_dir/marked/marked_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55187 "$resources_out_dir/media/media_module.js",
188 "$resources_out_dir/network/network_module.js",
189 "$resources_out_dir/node_debugger/node_debugger_module.js",
190 "$resources_out_dir/object_ui/object_ui_module.js",
191 "$resources_out_dir/perf_ui/perf_ui_module.js",
192 "$resources_out_dir/performance_monitor/performance_monitor_module.js",
193 "$resources_out_dir/profiler/profiler_module.js",
Jan Scheffler01005812020-02-05 12:41:00194 "$resources_out_dir/issues/issues_module.js",
Sigurd Schneider91907802020-07-08 08:53:59195 "$resources_out_dir/developer_resources/developer_resources_module.js",
Mathias Bynens2d8a20d2019-12-20 08:04:09196 "$resources_out_dir/protocol_monitor/protocol_monitor_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55197 "$resources_out_dir/quick_open/quick_open_module.js",
198 "$resources_out_dir/resources/resources_module.js",
199 "$resources_out_dir/search/search_module.js",
200 "$resources_out_dir/security/security_module.js",
201 "$resources_out_dir/settings/settings_module.js",
202 "$resources_out_dir/snippets/snippets_module.js",
203 "$resources_out_dir/source_frame/source_frame_module.js",
204 "$resources_out_dir/sources/sources_module.js",
205 "$resources_out_dir/text_editor/text_editor_module.js",
206 "$resources_out_dir/timeline_model/timeline_model_module.js",
207 "$resources_out_dir/timeline/timeline_module.js",
208 "$resources_out_dir/web_audio/web_audio_module.js",
Fawaz Mohammad81995832020-06-09 18:28:23209 "$resources_out_dir/webauthn/webauthn_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55210 "$resources_out_dir/workspace_diff/workspace_diff_module.js",
211]
212
213generated_remote_modules = [
Connor Clark2bc3be22020-02-14 22:34:19214 "$resources_out_dir/lighthouse_worker/lighthouse_worker_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55215 "$resources_out_dir/dagre_layout/dagre_layout_module.js",
216 "$resources_out_dir/emulated_devices/emulated_devices_module.js",
217]
218
219generated_test_modules = [
220 "$resources_out_dir/accessibility_test_runner/accessibility_test_runner_module.js",
221 "$resources_out_dir/application_test_runner/application_test_runner_module.js",
Connor Clark2bc3be22020-02-14 22:34:19222 "$resources_out_dir/lighthouse_test_runner/lighthouse_test_runner_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55223 "$resources_out_dir/axe_core_test_runner/axe_core_test_runner_module.js",
224 "$resources_out_dir/bindings_test_runner/bindings_test_runner_module.js",
225 "$resources_out_dir/console_test_runner/console_test_runner_module.js",
226 "$resources_out_dir/coverage_test_runner/coverage_test_runner_module.js",
227 "$resources_out_dir/cpu_profiler_test_runner/cpu_profiler_test_runner_module.js",
228 "$resources_out_dir/data_grid_test_runner/data_grid_test_runner_module.js",
229 "$resources_out_dir/device_mode_test_runner/device_mode_test_runner_module.js",
230 "$resources_out_dir/elements_test_runner/elements_test_runner_module.js",
231 "$resources_out_dir/extensions_test_runner/extensions_test_runner_module.js",
232 "$resources_out_dir/heap_profiler_test_runner/heap_profiler_test_runner_module.js",
233 "$resources_out_dir/heap_snapshot_worker/heap_snapshot_worker_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55234 "$resources_out_dir/integration_test_runner.js",
235 "$resources_out_dir/layers_test_runner/layers_test_runner_module.js",
236 "$resources_out_dir/network_test_runner/network_test_runner_module.js",
237 "$resources_out_dir/performance_test_runner/performance_test_runner_module.js",
238 "$resources_out_dir/sdk_test_runner/sdk_test_runner_module.js",
239 "$resources_out_dir/security_test_runner/security_test_runner_module.js",
240 "$resources_out_dir/sources_test_runner/sources_test_runner_module.js",
241]
242
Tim van der Lippef9f55f12020-01-22 12:24:39243all_worker_entrypoints = [
Tim van der Lippef9f55f12020-01-22 12:24:39244 "front_end/heap_snapshot_worker_entrypoint.js",
245 "front_end/wasmparser_worker_entrypoint.js",
246]
247
Tim van der Lippebc42a632019-11-28 14:22:55248generated_worker_bundles = [
Tim van der Lippe0c21af52020-01-08 11:55:22249 "$resources_out_dir/heap_snapshot_worker_entrypoint.js",
250 "$resources_out_dir/wasmparser_worker_entrypoint.js",
Tim van der Lippebc42a632019-11-28 14:22:55251]
252
253devtools_applications = [
Connor Clark2bc3be22020-02-14 22:34:19254 "lighthouse_worker",
Tim van der Lippebc42a632019-11-28 14:22:55255 "devtools_app",
Tim van der Lippe0c21af52020-01-08 11:55:22256 "heap_snapshot_worker_entrypoint",
Tim van der Lippebc42a632019-11-28 14:22:55257 "inspector",
258 "integration_test_runner",
259 "js_app",
260 "ndb_app",
261 "node_app",
262 "shell",
263 "toolbox",
Tim van der Lippe0c21af52020-01-08 11:55:22264 "wasmparser_worker_entrypoint",
Tim van der Lippebc42a632019-11-28 14:22:55265 "worker_app",
266]
267
268#-------------------------------------------------------------------------------
269
Tim van der Lippe501473c2020-05-19 15:01:52270devtools_frontend_resources_deps = [
271 ":build_release_devtools",
Tim van der Lippe501473c2020-05-19 15:01:52272 ":copy_emulated_devices_images",
Tim van der Lippe501473c2020-05-19 15:01:52273 ":devtools_extension_api",
274 "front_end",
Tim van der Lippe7ebe48c2020-07-13 12:27:15275 "test",
Tim van der Lippe39fc2542020-02-28 09:38:02276]
Tim van der Lippe3bf1c192020-01-22 11:45:13277
Tim van der Lippe8bdbc7a2020-03-09 10:42:09278if (is_debug) {
279 devtools_frontend_resources_deps += [ ":copy_devtools_modules" ]
280}
281
Tim van der Lippe7ebe48c2020-07-13 12:27:15282group("devtools_all_files") {
283 testonly = true
284 data = all_devtools_files + generated_devtools_module_entrypoints
285 data += [
286 # This enables us to test bots with whitespace changes.
287 "scripts/whitespaces.txt",
288 ]
289 data_deps = devtools_frontend_resources_deps
Tim van der Lippe1a0338a2020-02-21 14:44:49290}
291
Tim van der Lippebc42a632019-11-28 14:22:55292group("devtools_frontend_resources") {
293 public_deps = devtools_frontend_resources_deps
294}
295
Alex Rudenkof0d02a12020-05-28 12:59:04296group("generate_devtools_inspector_overlay_resources") {
Alex Rudenko7bf4d032020-05-13 15:45:02297 public_deps = [ "front_end/inspector_overlay:build_inspector_overlay" ]
298}
299
Tim van der Lippebc42a632019-11-28 14:22:55300copy("copy_emulated_devices_images") {
301 sources = devtools_emulated_devices_images
Paul Lewise73301b2020-01-22 14:35:26302 outputs = [ "$resources_out_dir/emulated_devices/{{source_file_part}}" ]
Tim van der Lippebc42a632019-11-28 14:22:55303}
304
Tim van der Lippec30dd722020-03-10 11:17:49305if (is_debug) {
Tim van der Lippe8bdbc7a2020-03-09 10:42:09306 action("copy_devtools_modules") {
307 script = "scripts/build/copy_devtools_modules.py"
308
309 deps = [ ":build_release_devtools" ]
310
311 inputs = input_devtools_modules
312 response_file_contents = inputs
313 outputs = output_devtools_modules
314
315 args = [
316 "--file_list",
317 "{{response_file_name}}",
318 "--input_path",
319 rebase_path(".", root_build_dir),
320 "--output_path",
321 rebase_path(resources_out_dir, root_build_dir),
322 ]
323 }
324}
325
Tim van der Lippebc42a632019-11-28 14:22:55326action("generate_devtools_grd") {
327 script = "scripts/build/generate_devtools_grd.py"
328
Paul Lewise73301b2020-01-22 14:35:26329 deps = [ ":devtools_frontend_resources" ]
Blink Reformat4c46d092018-04-07 15:32:37330
Tim van der Lippebc42a632019-11-28 14:22:55331 grd_files =
Tim van der Lippe8bdbc7a2020-03-09 10:42:09332 generated_devtools_module_entrypoints + output_devtools_modules +
Tim van der Lippe49155912020-05-12 11:26:44333 generated_applications_html + generated_applications_js +
334 generated_non_autostart_non_remote_modules + devtools_embedder_scripts +
Tim van der Lippe60421842020-07-01 15:53:58335 generated_worker_bundles + generated_typescript_entrypoints +
Tim van der Lippe98a014f2020-07-07 09:02:14336 generated_typescript_modules +
Tim van der Lippebc42a632019-11-28 14:22:55337 [
338 "$resources_out_dir/devtools_extension_api.js",
339 "$resources_out_dir/sdk/wasm_source_map/pkg/wasm_source_map_bg.wasm",
Paul Lewis91182682020-07-23 16:53:52340 "$resources_out_dir/formatter_worker_entrypoint.js",
341 "$resources_out_dir/third_party/acorn/package/dist/acorn.mjs",
Tim van der Lippebc42a632019-11-28 14:22:55342 ]
343
Tim van der Lippe41a98a82020-07-15 12:58:24344 inputs = grd_files + front_end_image_files
Rob Paveza49473552020-01-08 21:38:58345 response_file_contents = rebase_path(grd_files, root_build_dir)
Tim van der Lippebc42a632019-11-28 14:22:55346 outfile = "$root_gen_dir/devtools/devtools_resources.grd"
Paul Lewise73301b2020-01-22 14:35:26347 outputs = [ outfile ]
Blink Reformat4c46d092018-04-07 15:32:37348
Tim van der Lippebc42a632019-11-28 14:22:55349 relative_path_dirs = [
350 resources_out_dir,
351 "front_end",
Blink Reformat4c46d092018-04-07 15:32:37352 ]
353
Tim van der Lippee2fbfea2020-01-09 13:53:50354 args = [
Rob Paveza41120592020-01-13 17:17:02355 "--file_list",
Tim van der Lippee2fbfea2020-01-09 13:53:50356 "{{response_file_name}}",
357 "--relative_path_dirs",
358 ] + rebase_path(relative_path_dirs, root_build_dir) +
Tim van der Lippebc42a632019-11-28 14:22:55359 [
360 "--images",
361 rebase_path("front_end/Images", root_build_dir),
362 "--output",
363 rebase_path(outfile, root_build_dir),
364 ]
365}
366
367action("devtools_extension_api") {
368 script = "scripts/build/generate_devtools_extension_api.py"
369
370 devtools_extension_api_files = [ "front_end/extensions/ExtensionAPI.js" ]
371 inputs = devtools_extension_api_files
Paul Lewise73301b2020-01-22 14:35:26372 outputs = [ "$resources_out_dir/devtools_extension_api.js" ]
Blink Reformat4c46d092018-04-07 15:32:37373
Tim van der Lippebc42a632019-11-28 14:22:55374 args = rebase_path(outputs, root_build_dir) +
375 rebase_path(devtools_extension_api_files, root_build_dir)
376}
377
Tim van der Lippe8bdbc7a2020-03-09 10:42:09378build_release_devtools_args = []
379
380if (!is_debug) {
381 build_release_devtools_args += [ "--rollup" ]
382}
383
Tim van der Lippebc42a632019-11-28 14:22:55384action("build_release_devtools") {
385 script = "scripts/build/build_release_applications.py"
Blink Reformat4c46d092018-04-07 15:32:37386
Tim van der Lippebc42a632019-11-28 14:22:55387 helper_scripts = [
388 "scripts/build/modular_build.py",
389 "scripts/build/rjsmin.py",
Tim van der Lippe10095002020-06-15 16:15:33390 "front_end/rollup.config.js",
Tim van der Lippebc42a632019-11-28 14:22:55391 ]
392
Tim van der Lippe8ea04b02020-05-26 09:57:58393 deps = [ "front_end" ]
394
Tim van der Lippe8ec07dd2020-01-23 18:29:34395 inputs = helper_scripts + all_devtools_files + devtools_test_files +
Tim van der Lippeb3b90762020-03-04 15:21:52396 application_templates + all_worker_entrypoints +
Tim van der Lippec30dd722020-03-10 11:17:49397 front_end_devtools_module_entrypoints + input_devtools_modules
Tim van der Lippebc42a632019-11-28 14:22:55398 outputs =
Tim van der Lippe49155912020-05-12 11:26:44399 generated_applications_js + generated_non_autostart_non_remote_modules +
Tim van der Lippebc42a632019-11-28 14:22:55400 generated_remote_modules + generated_test_modules +
Tim van der Lippe8bdbc7a2020-03-09 10:42:09401 generated_worker_bundles + generated_devtools_module_entrypoints
Tim van der Lippebc42a632019-11-28 14:22:55402
403 args = devtools_applications + [
404 "--input_path",
405 rebase_path("front_end", root_build_dir),
406 "--output_path",
407 rebase_path(resources_out_dir, root_build_dir),
Tim van der Lippe8bdbc7a2020-03-09 10:42:09408 ] + build_release_devtools_args
Tim van der Lippebc42a632019-11-28 14:22:55409}