blob: 12467b247e653abbbfb6a4344164bb20f8899c62 [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")
Paul Lewis6c0b15e2020-07-30 10:09:438import("./devtools_grd_files.gni")
Tim van der Lippe41a98a82020-07-15 12:58:249import("./devtools_image_files.gni")
Tim van der Lippe334be382020-07-13 14:35:5810import("./devtools_module_entrypoints.gni")
Tim van der Lippef6650492020-07-16 13:41:1411import("./scripts/build/ninja/vars.gni")
Tim van der Lippebc42a632019-11-28 14:22:5512
13devtools_test_files = [
14 "//third_party/axe-core/axe.js",
Tim van der Lippebdf5ca42020-09-11 12:05:1215 "front_end/accessibility_test_runner/accessibility_test_runner.js",
Tim van der Lippebc42a632019-11-28 14:22:5516 "front_end/accessibility_test_runner/module.json",
Tim van der Lippe374ec552020-09-11 13:14:2417 "front_end/application_test_runner/application_test_runner.js",
Tim van der Lippebc42a632019-11-28 14:22:5518 "front_end/application_test_runner/AppcacheTestRunner.js",
19 "front_end/application_test_runner/CacheStorageTestRunner.js",
20 "front_end/application_test_runner/IndexedDBTestRunner.js",
21 "front_end/application_test_runner/module.json",
22 "front_end/application_test_runner/ResourcesTestRunner.js",
23 "front_end/application_test_runner/ResourceTreeTestRunner.js",
24 "front_end/application_test_runner/ServiceWorkersTestRunner.js",
Connor Clark2bc3be22020-02-14 22:34:1925 "front_end/lighthouse_test_runner/LighthouseTestRunner.js",
26 "front_end/lighthouse_test_runner/module.json",
Tim van der Lippebc42a632019-11-28 14:22:5527 "front_end/axe_core_test_runner/AxeCoreTestRunner.js",
28 "front_end/axe_core_test_runner/module.json",
29 "front_end/bindings_test_runner/AutomappingTestRunner.js",
30 "front_end/bindings_test_runner/BindingsTestRunner.js",
31 "front_end/bindings_test_runner/IsolatedFilesystemTestRunner.js",
32 "front_end/bindings_test_runner/module.json",
33 "front_end/bindings_test_runner/OverridesTestRunner.js",
34 "front_end/bindings_test_runner/PersistenceTestRunner.js",
35 "front_end/console_test_runner/ConsoleTestRunner.js",
36 "front_end/console_test_runner/module.json",
37 "front_end/coverage_test_runner/CoverageTestRunner.js",
38 "front_end/coverage_test_runner/module.json",
39 "front_end/cpu_profiler_test_runner/module.json",
40 "front_end/cpu_profiler_test_runner/ProfilerTestRunner.js",
41 "front_end/data_grid_test_runner/DataGridTestRunner.js",
42 "front_end/data_grid_test_runner/module.json",
43 "front_end/device_mode_test_runner/DeviceModeTestRunner.js",
44 "front_end/device_mode_test_runner/module.json",
45 "front_end/elements_test_runner/EditDOMTestRunner.js",
46 "front_end/elements_test_runner/ElementsPanelShadowSelectionOnRefreshTestRunner.js",
47 "front_end/elements_test_runner/ElementsTestRunner.js",
48 "front_end/elements_test_runner/module.json",
49 "front_end/elements_test_runner/SetOuterHTMLTestRunner.js",
50 "front_end/elements_test_runner/StylesUpdateLinksTestRunner.js",
51 "front_end/extensions_test_runner/ExtensionsNetworkTestRunner.js",
52 "front_end/extensions_test_runner/ExtensionsTestRunner.js",
53 "front_end/extensions_test_runner/module.json",
54 "front_end/heap_profiler_test_runner/HeapProfilerTestRunner.js",
55 "front_end/heap_profiler_test_runner/module.json",
56 "front_end/integration_test_runner.html",
57 "front_end/integration_test_runner.js",
58 "front_end/integration_test_runner.json",
59 "front_end/layers_test_runner/LayersTestRunner.js",
60 "front_end/layers_test_runner/module.json",
61 "front_end/network_test_runner/module.json",
62 "front_end/network_test_runner/NetworkTestRunner.js",
63 "front_end/performance_test_runner/module.json",
64 "front_end/performance_test_runner/TimelineDataTestRunner.js",
65 "front_end/performance_test_runner/TimelineTestRunner.js",
66 "front_end/sdk_test_runner/module.json",
67 "front_end/sdk_test_runner/PageMockTestRunner.js",
68 "front_end/security_test_runner/module.json",
69 "front_end/security_test_runner/SecurityTestRunner.js",
70 "front_end/sources_test_runner/AutocompleteTestRunner.js",
71 "front_end/sources_test_runner/DebuggerTestRunner.js",
72 "front_end/sources_test_runner/EditorTestRunner.js",
73 "front_end/sources_test_runner/LiveEditTestRunner.js",
74 "front_end/sources_test_runner/module.json",
75 "front_end/sources_test_runner/SearchTestRunner.js",
76 "front_end/sources_test_runner/SourcesTestRunner.js",
77 "front_end/test_runner/module.json",
Tim van der Lippebc42a632019-11-28 14:22:5578]
79
80devtools_embedder_scripts = [
81 "front_end/devtools_compatibility.js",
82 "front_end/Tests.js",
83]
84
85devtools_emulated_devices_images = [
86 "front_end/emulated_devices/google-nexus-5-horizontal-default-1x.png",
87 "front_end/emulated_devices/google-nexus-5-horizontal-default-2x.png",
88 "front_end/emulated_devices/google-nexus-5-horizontal-keyboard-1x.png",
89 "front_end/emulated_devices/google-nexus-5-horizontal-keyboard-2x.png",
90 "front_end/emulated_devices/google-nexus-5-horizontal-navigation-1x.png",
91 "front_end/emulated_devices/google-nexus-5-horizontal-navigation-2x.png",
92 "front_end/emulated_devices/google-nexus-5-vertical-default-1x.png",
93 "front_end/emulated_devices/google-nexus-5-vertical-default-2x.png",
94 "front_end/emulated_devices/google-nexus-5-vertical-keyboard-1x.png",
95 "front_end/emulated_devices/google-nexus-5-vertical-keyboard-2x.png",
96 "front_end/emulated_devices/google-nexus-5-vertical-navigation-1x.png",
97 "front_end/emulated_devices/google-nexus-5-vertical-navigation-2x.png",
98 "front_end/emulated_devices/google-nexus-5x-horizontal-default-1x.png",
99 "front_end/emulated_devices/google-nexus-5x-horizontal-default-2x.png",
100 "front_end/emulated_devices/google-nexus-5x-horizontal-keyboard-1x.png",
101 "front_end/emulated_devices/google-nexus-5x-horizontal-keyboard-2x.png",
102 "front_end/emulated_devices/google-nexus-5x-horizontal-navigation-1x.png",
103 "front_end/emulated_devices/google-nexus-5x-horizontal-navigation-2x.png",
104 "front_end/emulated_devices/google-nexus-5x-vertical-default-1x.png",
105 "front_end/emulated_devices/google-nexus-5x-vertical-default-2x.png",
106 "front_end/emulated_devices/google-nexus-5x-vertical-keyboard-1x.png",
107 "front_end/emulated_devices/google-nexus-5x-vertical-keyboard-2x.png",
108 "front_end/emulated_devices/google-nexus-5x-vertical-navigation-1x.png",
109 "front_end/emulated_devices/google-nexus-5x-vertical-navigation-2x.png",
110 "front_end/emulated_devices/iPad-landscape.svg",
111 "front_end/emulated_devices/iPad-portrait.svg",
112 "front_end/emulated_devices/iPhone5-landscape.svg",
113 "front_end/emulated_devices/iPhone5-portrait.svg",
114 "front_end/emulated_devices/iPhone6-landscape.svg",
115 "front_end/emulated_devices/iPhone6-portrait.svg",
116 "front_end/emulated_devices/iPhone6Plus-landscape.svg",
117 "front_end/emulated_devices/iPhone6Plus-portrait.svg",
Connor Clark5f86e052020-01-24 21:38:50118 "front_end/emulated_devices/MotoG4-landscape.svg",
119 "front_end/emulated_devices/MotoG4-portrait.svg",
Tim van der Lippebc42a632019-11-28 14:22:55120 "front_end/emulated_devices/Nexus5X-landscape.svg",
121 "front_end/emulated_devices/Nexus5X-portrait.svg",
122 "front_end/emulated_devices/Nexus6P-landscape.svg",
123 "front_end/emulated_devices/Nexus6P-portrait.svg",
124]
125
Tim van der Lippebc42a632019-11-28 14:22:55126application_templates = [
127 "front_end/devtools_app.html",
128 "front_end/inspector.html",
129 "front_end/integration_test_runner.html",
130 "front_end/js_app.html",
131 "front_end/ndb_app.html",
132 "front_end/node_app.html",
133 "front_end/toolbox.html",
134 "front_end/worker_app.html",
135]
136
Tim van der Lippe49155912020-05-12 11:26:44137generated_applications_html = [
Tim van der Lippebc42a632019-11-28 14:22:55138 "$resources_out_dir/devtools_app.html",
Tim van der Lippebc42a632019-11-28 14:22:55139 "$resources_out_dir/inspector.html",
Tim van der Lippe49155912020-05-12 11:26:44140 "$resources_out_dir/integration_test_runner.html",
Tim van der Lippebc42a632019-11-28 14:22:55141 "$resources_out_dir/js_app.html",
Tim van der Lippe49155912020-05-12 11:26:44142 "$resources_out_dir/ndb_app.html",
Tim van der Lippebc42a632019-11-28 14:22:55143 "$resources_out_dir/node_app.html",
Tim van der Lippe49155912020-05-12 11:26:44144 "$resources_out_dir/toolbox.html",
145 "$resources_out_dir/worker_app.html",
146]
147
148generated_applications_js = [
149 "$resources_out_dir/lighthouse_worker.js",
150 "$resources_out_dir/devtools_app.js",
151 "$resources_out_dir/inspector.js",
152 "$resources_out_dir/js_app.js",
Tim van der Lippebc42a632019-11-28 14:22:55153 "$resources_out_dir/node_app.js",
154 "$resources_out_dir/shell.js",
Tim van der Lippebc42a632019-11-28 14:22:55155 "$resources_out_dir/toolbox.js",
Tim van der Lippebc42a632019-11-28 14:22:55156 "$resources_out_dir/worker_app.js",
157]
158
159generated_non_autostart_non_remote_modules = [
Tim van der Lippe387b03e2019-12-17 16:09:22160 "$resources_out_dir/accessibility/accessibility_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55161 "$resources_out_dir/animation/animation_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55162 "$resources_out_dir/browser_debugger/browser_debugger_module.js",
163 "$resources_out_dir/changes/changes_module.js",
Mathias Bynens4a0d1932020-07-28 06:31:37164 "$resources_out_dir/client_variations/client_variations_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55165 "$resources_out_dir/cm_modes/cm_modes_module.js",
Mathias Bynens2d8a20d2019-12-20 08:04:09166 "$resources_out_dir/cm/cm_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55167 "$resources_out_dir/color_picker/color_picker_module.js",
168 "$resources_out_dir/console/console_module.js",
169 "$resources_out_dir/cookie_table/cookie_table_module.js",
170 "$resources_out_dir/coverage/coverage_module.js",
Mathias Bynens2d8a20d2019-12-20 08:04:09171 "$resources_out_dir/css_overview/css_overview_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55172 "$resources_out_dir/data_grid/data_grid_module.js",
173 "$resources_out_dir/devices/devices_module.js",
174 "$resources_out_dir/diff/diff_module.js",
175 "$resources_out_dir/elements/elements_module.js",
176 "$resources_out_dir/event_listeners/event_listeners_module.js",
177 "$resources_out_dir/formatter/formatter_module.js",
178 "$resources_out_dir/har_importer/har_importer_module.js",
179 "$resources_out_dir/heap_snapshot_model/heap_snapshot_model_module.js",
180 "$resources_out_dir/help/help_module.js",
181 "$resources_out_dir/inline_editor/inline_editor_module.js",
Mathias Bynens2d8a20d2019-12-20 08:04:09182 "$resources_out_dir/input/input_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55183 "$resources_out_dir/javascript_metadata/javascript_metadata_module.js",
184 "$resources_out_dir/js_profiler/js_profiler_module.js",
185 "$resources_out_dir/layer_viewer/layer_viewer_module.js",
186 "$resources_out_dir/layers/layers_module.js",
Mathias Bynens4a0d1932020-07-28 06:31:37187 "$resources_out_dir/lighthouse/lighthouse_module.js",
Simon Zünda9f48fb2020-07-08 11:18:29188 "$resources_out_dir/marked/marked_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55189 "$resources_out_dir/media/media_module.js",
190 "$resources_out_dir/network/network_module.js",
191 "$resources_out_dir/node_debugger/node_debugger_module.js",
192 "$resources_out_dir/object_ui/object_ui_module.js",
193 "$resources_out_dir/perf_ui/perf_ui_module.js",
194 "$resources_out_dir/performance_monitor/performance_monitor_module.js",
195 "$resources_out_dir/profiler/profiler_module.js",
Jan Scheffler01005812020-02-05 12:41:00196 "$resources_out_dir/issues/issues_module.js",
Sigurd Schneider91907802020-07-08 08:53:59197 "$resources_out_dir/developer_resources/developer_resources_module.js",
Mathias Bynens2d8a20d2019-12-20 08:04:09198 "$resources_out_dir/protocol_monitor/protocol_monitor_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55199 "$resources_out_dir/quick_open/quick_open_module.js",
200 "$resources_out_dir/resources/resources_module.js",
201 "$resources_out_dir/search/search_module.js",
202 "$resources_out_dir/security/security_module.js",
203 "$resources_out_dir/settings/settings_module.js",
204 "$resources_out_dir/snippets/snippets_module.js",
205 "$resources_out_dir/source_frame/source_frame_module.js",
206 "$resources_out_dir/sources/sources_module.js",
207 "$resources_out_dir/text_editor/text_editor_module.js",
208 "$resources_out_dir/timeline_model/timeline_model_module.js",
209 "$resources_out_dir/timeline/timeline_module.js",
210 "$resources_out_dir/web_audio/web_audio_module.js",
Fawaz Mohammad81995832020-06-09 18:28:23211 "$resources_out_dir/webauthn/webauthn_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55212 "$resources_out_dir/workspace_diff/workspace_diff_module.js",
213]
214
215generated_remote_modules = [
Connor Clark2bc3be22020-02-14 22:34:19216 "$resources_out_dir/lighthouse_worker/lighthouse_worker_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55217 "$resources_out_dir/dagre_layout/dagre_layout_module.js",
218 "$resources_out_dir/emulated_devices/emulated_devices_module.js",
219]
220
221generated_test_modules = [
222 "$resources_out_dir/accessibility_test_runner/accessibility_test_runner_module.js",
223 "$resources_out_dir/application_test_runner/application_test_runner_module.js",
Connor Clark2bc3be22020-02-14 22:34:19224 "$resources_out_dir/lighthouse_test_runner/lighthouse_test_runner_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55225 "$resources_out_dir/axe_core_test_runner/axe_core_test_runner_module.js",
226 "$resources_out_dir/bindings_test_runner/bindings_test_runner_module.js",
227 "$resources_out_dir/console_test_runner/console_test_runner_module.js",
228 "$resources_out_dir/coverage_test_runner/coverage_test_runner_module.js",
229 "$resources_out_dir/cpu_profiler_test_runner/cpu_profiler_test_runner_module.js",
230 "$resources_out_dir/data_grid_test_runner/data_grid_test_runner_module.js",
231 "$resources_out_dir/device_mode_test_runner/device_mode_test_runner_module.js",
232 "$resources_out_dir/elements_test_runner/elements_test_runner_module.js",
233 "$resources_out_dir/extensions_test_runner/extensions_test_runner_module.js",
234 "$resources_out_dir/heap_profiler_test_runner/heap_profiler_test_runner_module.js",
235 "$resources_out_dir/heap_snapshot_worker/heap_snapshot_worker_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55236 "$resources_out_dir/integration_test_runner.js",
237 "$resources_out_dir/layers_test_runner/layers_test_runner_module.js",
238 "$resources_out_dir/network_test_runner/network_test_runner_module.js",
239 "$resources_out_dir/performance_test_runner/performance_test_runner_module.js",
240 "$resources_out_dir/sdk_test_runner/sdk_test_runner_module.js",
241 "$resources_out_dir/security_test_runner/security_test_runner_module.js",
242 "$resources_out_dir/sources_test_runner/sources_test_runner_module.js",
243]
244
Tim van der Lippef9f55f12020-01-22 12:24:39245all_worker_entrypoints = [
Tim van der Lippef9f55f12020-01-22 12:24:39246 "front_end/heap_snapshot_worker_entrypoint.js",
247 "front_end/wasmparser_worker_entrypoint.js",
248]
249
Tim van der Lippebc42a632019-11-28 14:22:55250generated_worker_bundles = [
Tim van der Lippe0c21af52020-01-08 11:55:22251 "$resources_out_dir/heap_snapshot_worker_entrypoint.js",
252 "$resources_out_dir/wasmparser_worker_entrypoint.js",
Tim van der Lippebc42a632019-11-28 14:22:55253]
254
255devtools_applications = [
Connor Clark2bc3be22020-02-14 22:34:19256 "lighthouse_worker",
Tim van der Lippebc42a632019-11-28 14:22:55257 "devtools_app",
Tim van der Lippe0c21af52020-01-08 11:55:22258 "heap_snapshot_worker_entrypoint",
Tim van der Lippebc42a632019-11-28 14:22:55259 "inspector",
260 "integration_test_runner",
261 "js_app",
262 "ndb_app",
263 "node_app",
264 "shell",
265 "toolbox",
Tim van der Lippe0c21af52020-01-08 11:55:22266 "wasmparser_worker_entrypoint",
Tim van der Lippebc42a632019-11-28 14:22:55267 "worker_app",
268]
269
270#-------------------------------------------------------------------------------
271
Tim van der Lippe501473c2020-05-19 15:01:52272devtools_frontend_resources_deps = [
273 ":build_release_devtools",
Tim van der Lippe501473c2020-05-19 15:01:52274 ":copy_emulated_devices_images",
Tim van der Lippe501473c2020-05-19 15:01:52275 ":devtools_extension_api",
276 "front_end",
Tim van der Lippe7ebe48c2020-07-13 12:27:15277 "test",
Tim van der Lippe39fc2542020-02-28 09:38:02278]
Tim van der Lippe3bf1c192020-01-22 11:45:13279
Tim van der Lippe7ebe48c2020-07-13 12:27:15280group("devtools_all_files") {
281 testonly = true
Jan Schefflerf3277b22020-07-28 10:51:44282 data = all_devtools_files + generated_devtools_module_entrypoint_sources
Tim van der Lippe7ebe48c2020-07-13 12:27:15283 data += [
284 # This enables us to test bots with whitespace changes.
285 "scripts/whitespaces.txt",
286 ]
287 data_deps = devtools_frontend_resources_deps
Tim van der Lippe1a0338a2020-02-21 14:44:49288}
289
Tim van der Lippebc42a632019-11-28 14:22:55290group("devtools_frontend_resources") {
291 public_deps = devtools_frontend_resources_deps
292}
293
Alex Rudenkof0d02a12020-05-28 12:59:04294group("generate_devtools_inspector_overlay_resources") {
Alex Rudenko0e8d7f42020-09-07 07:14:47295 public_deps = [ "inspector_overlay:build_inspector_overlay" ]
Alex Rudenko7bf4d032020-05-13 15:45:02296}
297
Tim van der Lippebc42a632019-11-28 14:22:55298copy("copy_emulated_devices_images") {
299 sources = devtools_emulated_devices_images
Paul Lewise73301b2020-01-22 14:35:26300 outputs = [ "$resources_out_dir/emulated_devices/{{source_file_part}}" ]
Tim van der Lippebc42a632019-11-28 14:22:55301}
302
Tim van der Lippebc42a632019-11-28 14:22:55303action("generate_devtools_grd") {
304 script = "scripts/build/generate_devtools_grd.py"
305
Paul Lewise73301b2020-01-22 14:35:26306 deps = [ ":devtools_frontend_resources" ]
Blink Reformat4c46d092018-04-07 15:32:37307
Tim van der Lippebc42a632019-11-28 14:22:55308 grd_files =
Tim van der Lippe11640442020-09-02 15:53:38309 generated_devtools_module_entrypoint_sources +
Tim van der Lippe49155912020-05-12 11:26:44310 generated_applications_html + generated_applications_js +
311 generated_non_autostart_non_remote_modules + devtools_embedder_scripts +
Jan Schefflerf3277b22020-07-28 10:51:44312 generated_worker_bundles + generated_typescript_entrypoint_sources +
vidorteg1fd76f82020-08-26 18:09:20313 generated_typescript_modules + generated_devtools_locale_files +
Tim van der Lippebc42a632019-11-28 14:22:55314 [
315 "$resources_out_dir/devtools_extension_api.js",
316 "$resources_out_dir/sdk/wasm_source_map/pkg/wasm_source_map_bg.wasm",
Paul Lewis91182682020-07-23 16:53:52317 "$resources_out_dir/formatter_worker_entrypoint.js",
318 "$resources_out_dir/third_party/acorn/package/dist/acorn.mjs",
Tim van der Lippebc42a632019-11-28 14:22:55319 ]
320
Tim van der Lippe41a98a82020-07-15 12:58:24321 inputs = grd_files + front_end_image_files
Paul Lewis6c0b15e2020-07-30 10:09:43322
323 # Confirm that the files in the inputs match expectations.
324 # There is some path wrangling necessary here because some paths come with
325 # //out/{Target} at the start, others with front_end
326 _normalized_inputs = []
327 foreach(input, inputs) {
328 _normalized_inputs +=
329 [ string_replace(input, resources_out_dir, "front_end") ]
330 }
331
332 # Always assume the release files are included.
333 _expected_files = []
334 _expected_files += grd_files_release_sources
335 if (is_debug) {
336 _expected_files += grd_files_debug_sources
337 }
338
339 # Remove the inputs from the expectations, any leftovers means that not all inputs were provided.
340 _missing_files_expected = filter_exclude(_expected_files, _normalized_inputs)
341 assert(
342 _missing_files_expected == [],
343 "Files were expected that weren't found in the GRD inputs: $_missing_files_expected")
344
345 # Remove the expectations from the inputs, any leftovers means that too many files were provided.
346 _missing_files_normalized =
347 filter_exclude(_normalized_inputs, _expected_files)
348 assert(
349 _missing_files_normalized == [],
350 "Files were provided that weren't expected in the GRD inputs: $_missing_files_normalized")
351
Rob Paveza49473552020-01-08 21:38:58352 response_file_contents = rebase_path(grd_files, root_build_dir)
Tim van der Lippebc42a632019-11-28 14:22:55353 outfile = "$root_gen_dir/devtools/devtools_resources.grd"
Paul Lewise73301b2020-01-22 14:35:26354 outputs = [ outfile ]
Blink Reformat4c46d092018-04-07 15:32:37355
Tim van der Lippebc42a632019-11-28 14:22:55356 relative_path_dirs = [
357 resources_out_dir,
358 "front_end",
Blink Reformat4c46d092018-04-07 15:32:37359 ]
360
Tim van der Lippee2fbfea2020-01-09 13:53:50361 args = [
Rob Paveza41120592020-01-13 17:17:02362 "--file_list",
Tim van der Lippee2fbfea2020-01-09 13:53:50363 "{{response_file_name}}",
364 "--relative_path_dirs",
365 ] + rebase_path(relative_path_dirs, root_build_dir) +
Tim van der Lippebc42a632019-11-28 14:22:55366 [
367 "--images",
368 rebase_path("front_end/Images", root_build_dir),
369 "--output",
370 rebase_path(outfile, root_build_dir),
371 ]
372}
373
374action("devtools_extension_api") {
375 script = "scripts/build/generate_devtools_extension_api.py"
376
377 devtools_extension_api_files = [ "front_end/extensions/ExtensionAPI.js" ]
378 inputs = devtools_extension_api_files
Paul Lewise73301b2020-01-22 14:35:26379 outputs = [ "$resources_out_dir/devtools_extension_api.js" ]
Blink Reformat4c46d092018-04-07 15:32:37380
Tim van der Lippebc42a632019-11-28 14:22:55381 args = rebase_path(outputs, root_build_dir) +
382 rebase_path(devtools_extension_api_files, root_build_dir)
383}
384
Tim van der Lippe8bdbc7a2020-03-09 10:42:09385build_release_devtools_args = []
386
387if (!is_debug) {
388 build_release_devtools_args += [ "--rollup" ]
389}
390
Tim van der Lippebc42a632019-11-28 14:22:55391action("build_release_devtools") {
392 script = "scripts/build/build_release_applications.py"
Blink Reformat4c46d092018-04-07 15:32:37393
Tim van der Lippebc42a632019-11-28 14:22:55394 helper_scripts = [
395 "scripts/build/modular_build.py",
396 "scripts/build/rjsmin.py",
Tim van der Lippe10095002020-06-15 16:15:33397 "front_end/rollup.config.js",
Tim van der Lippebc42a632019-11-28 14:22:55398 ]
399
Tim van der Lippebdf5ca42020-09-11 12:05:12400 deps = [
401 "front_end",
402 "front_end:legacy_test-resources",
403 ]
Tim van der Lippe8ea04b02020-05-26 09:57:58404
Tim van der Lippe8ec07dd2020-01-23 18:29:34405 inputs = helper_scripts + all_devtools_files + devtools_test_files +
Tim van der Lippeb3b90762020-03-04 15:21:52406 application_templates + all_worker_entrypoints +
Tim van der Lippe11640442020-09-02 15:53:38407 front_end_devtools_module_entrypoint_sources
Tim van der Lippebc42a632019-11-28 14:22:55408 outputs =
Tim van der Lippe49155912020-05-12 11:26:44409 generated_applications_js + generated_non_autostart_non_remote_modules +
Tim van der Lippebc42a632019-11-28 14:22:55410 generated_remote_modules + generated_test_modules +
Jan Schefflerf3277b22020-07-28 10:51:44411 generated_worker_bundles + generated_devtools_module_entrypoint_sources
Tim van der Lippebc42a632019-11-28 14:22:55412
413 args = devtools_applications + [
414 "--input_path",
415 rebase_path("front_end", root_build_dir),
416 "--output_path",
417 rebase_path(resources_out_dir, root_build_dir),
Tim van der Lippe8bdbc7a2020-03-09 10:42:09418 ] + build_release_devtools_args
Tim van der Lippebc42a632019-11-28 14:22:55419}