blob: 672ae19410b25d1ac8a5767e013947fb13a8a229 [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",
15 "front_end/accessibility_test_runner/AccessibilityPaneTestRunner.js",
16 "front_end/accessibility_test_runner/module.json",
17 "front_end/application_test_runner/AppcacheTestRunner.js",
18 "front_end/application_test_runner/CacheStorageTestRunner.js",
19 "front_end/application_test_runner/IndexedDBTestRunner.js",
20 "front_end/application_test_runner/module.json",
21 "front_end/application_test_runner/ResourcesTestRunner.js",
22 "front_end/application_test_runner/ResourceTreeTestRunner.js",
23 "front_end/application_test_runner/ServiceWorkersTestRunner.js",
Connor Clark2bc3be22020-02-14 22:34:1924 "front_end/lighthouse_test_runner/LighthouseTestRunner.js",
25 "front_end/lighthouse_test_runner/module.json",
Tim van der Lippebc42a632019-11-28 14:22:5526 "front_end/axe_core_test_runner/AxeCoreTestRunner.js",
27 "front_end/axe_core_test_runner/module.json",
28 "front_end/bindings_test_runner/AutomappingTestRunner.js",
29 "front_end/bindings_test_runner/BindingsTestRunner.js",
30 "front_end/bindings_test_runner/IsolatedFilesystemTestRunner.js",
31 "front_end/bindings_test_runner/module.json",
32 "front_end/bindings_test_runner/OverridesTestRunner.js",
33 "front_end/bindings_test_runner/PersistenceTestRunner.js",
34 "front_end/console_test_runner/ConsoleTestRunner.js",
35 "front_end/console_test_runner/module.json",
36 "front_end/coverage_test_runner/CoverageTestRunner.js",
37 "front_end/coverage_test_runner/module.json",
38 "front_end/cpu_profiler_test_runner/module.json",
39 "front_end/cpu_profiler_test_runner/ProfilerTestRunner.js",
40 "front_end/data_grid_test_runner/DataGridTestRunner.js",
41 "front_end/data_grid_test_runner/module.json",
42 "front_end/device_mode_test_runner/DeviceModeTestRunner.js",
43 "front_end/device_mode_test_runner/module.json",
44 "front_end/elements_test_runner/EditDOMTestRunner.js",
45 "front_end/elements_test_runner/ElementsPanelShadowSelectionOnRefreshTestRunner.js",
46 "front_end/elements_test_runner/ElementsTestRunner.js",
47 "front_end/elements_test_runner/module.json",
48 "front_end/elements_test_runner/SetOuterHTMLTestRunner.js",
49 "front_end/elements_test_runner/StylesUpdateLinksTestRunner.js",
50 "front_end/extensions_test_runner/ExtensionsNetworkTestRunner.js",
51 "front_end/extensions_test_runner/ExtensionsTestRunner.js",
52 "front_end/extensions_test_runner/module.json",
53 "front_end/heap_profiler_test_runner/HeapProfilerTestRunner.js",
54 "front_end/heap_profiler_test_runner/module.json",
55 "front_end/integration_test_runner.html",
56 "front_end/integration_test_runner.js",
57 "front_end/integration_test_runner.json",
58 "front_end/layers_test_runner/LayersTestRunner.js",
59 "front_end/layers_test_runner/module.json",
60 "front_end/network_test_runner/module.json",
61 "front_end/network_test_runner/NetworkTestRunner.js",
62 "front_end/performance_test_runner/module.json",
63 "front_end/performance_test_runner/TimelineDataTestRunner.js",
64 "front_end/performance_test_runner/TimelineTestRunner.js",
65 "front_end/sdk_test_runner/module.json",
66 "front_end/sdk_test_runner/PageMockTestRunner.js",
67 "front_end/security_test_runner/module.json",
68 "front_end/security_test_runner/SecurityTestRunner.js",
69 "front_end/sources_test_runner/AutocompleteTestRunner.js",
70 "front_end/sources_test_runner/DebuggerTestRunner.js",
71 "front_end/sources_test_runner/EditorTestRunner.js",
72 "front_end/sources_test_runner/LiveEditTestRunner.js",
73 "front_end/sources_test_runner/module.json",
74 "front_end/sources_test_runner/SearchTestRunner.js",
75 "front_end/sources_test_runner/SourcesTestRunner.js",
76 "front_end/test_runner/module.json",
Tim van der Lippebc42a632019-11-28 14:22:5577]
78
79devtools_embedder_scripts = [
80 "front_end/devtools_compatibility.js",
81 "front_end/Tests.js",
82]
83
84devtools_emulated_devices_images = [
85 "front_end/emulated_devices/google-nexus-5-horizontal-default-1x.png",
86 "front_end/emulated_devices/google-nexus-5-horizontal-default-2x.png",
87 "front_end/emulated_devices/google-nexus-5-horizontal-keyboard-1x.png",
88 "front_end/emulated_devices/google-nexus-5-horizontal-keyboard-2x.png",
89 "front_end/emulated_devices/google-nexus-5-horizontal-navigation-1x.png",
90 "front_end/emulated_devices/google-nexus-5-horizontal-navigation-2x.png",
91 "front_end/emulated_devices/google-nexus-5-vertical-default-1x.png",
92 "front_end/emulated_devices/google-nexus-5-vertical-default-2x.png",
93 "front_end/emulated_devices/google-nexus-5-vertical-keyboard-1x.png",
94 "front_end/emulated_devices/google-nexus-5-vertical-keyboard-2x.png",
95 "front_end/emulated_devices/google-nexus-5-vertical-navigation-1x.png",
96 "front_end/emulated_devices/google-nexus-5-vertical-navigation-2x.png",
97 "front_end/emulated_devices/google-nexus-5x-horizontal-default-1x.png",
98 "front_end/emulated_devices/google-nexus-5x-horizontal-default-2x.png",
99 "front_end/emulated_devices/google-nexus-5x-horizontal-keyboard-1x.png",
100 "front_end/emulated_devices/google-nexus-5x-horizontal-keyboard-2x.png",
101 "front_end/emulated_devices/google-nexus-5x-horizontal-navigation-1x.png",
102 "front_end/emulated_devices/google-nexus-5x-horizontal-navigation-2x.png",
103 "front_end/emulated_devices/google-nexus-5x-vertical-default-1x.png",
104 "front_end/emulated_devices/google-nexus-5x-vertical-default-2x.png",
105 "front_end/emulated_devices/google-nexus-5x-vertical-keyboard-1x.png",
106 "front_end/emulated_devices/google-nexus-5x-vertical-keyboard-2x.png",
107 "front_end/emulated_devices/google-nexus-5x-vertical-navigation-1x.png",
108 "front_end/emulated_devices/google-nexus-5x-vertical-navigation-2x.png",
109 "front_end/emulated_devices/iPad-landscape.svg",
110 "front_end/emulated_devices/iPad-portrait.svg",
111 "front_end/emulated_devices/iPhone5-landscape.svg",
112 "front_end/emulated_devices/iPhone5-portrait.svg",
113 "front_end/emulated_devices/iPhone6-landscape.svg",
114 "front_end/emulated_devices/iPhone6-portrait.svg",
115 "front_end/emulated_devices/iPhone6Plus-landscape.svg",
116 "front_end/emulated_devices/iPhone6Plus-portrait.svg",
Connor Clark5f86e052020-01-24 21:38:50117 "front_end/emulated_devices/MotoG4-landscape.svg",
118 "front_end/emulated_devices/MotoG4-portrait.svg",
Tim van der Lippebc42a632019-11-28 14:22:55119 "front_end/emulated_devices/Nexus5X-landscape.svg",
120 "front_end/emulated_devices/Nexus5X-portrait.svg",
121 "front_end/emulated_devices/Nexus6P-landscape.svg",
122 "front_end/emulated_devices/Nexus6P-portrait.svg",
123]
124
Tim van der Lippebc42a632019-11-28 14:22:55125application_templates = [
126 "front_end/devtools_app.html",
127 "front_end/inspector.html",
128 "front_end/integration_test_runner.html",
129 "front_end/js_app.html",
130 "front_end/ndb_app.html",
131 "front_end/node_app.html",
132 "front_end/toolbox.html",
133 "front_end/worker_app.html",
134]
135
Tim van der Lippe49155912020-05-12 11:26:44136generated_applications_html = [
Tim van der Lippebc42a632019-11-28 14:22:55137 "$resources_out_dir/devtools_app.html",
Tim van der Lippebc42a632019-11-28 14:22:55138 "$resources_out_dir/inspector.html",
Tim van der Lippe49155912020-05-12 11:26:44139 "$resources_out_dir/integration_test_runner.html",
Tim van der Lippebc42a632019-11-28 14:22:55140 "$resources_out_dir/js_app.html",
Tim van der Lippe49155912020-05-12 11:26:44141 "$resources_out_dir/ndb_app.html",
Tim van der Lippebc42a632019-11-28 14:22:55142 "$resources_out_dir/node_app.html",
Tim van der Lippe49155912020-05-12 11:26:44143 "$resources_out_dir/toolbox.html",
144 "$resources_out_dir/worker_app.html",
145]
146
147generated_applications_js = [
148 "$resources_out_dir/lighthouse_worker.js",
149 "$resources_out_dir/devtools_app.js",
150 "$resources_out_dir/inspector.js",
151 "$resources_out_dir/js_app.js",
Tim van der Lippebc42a632019-11-28 14:22:55152 "$resources_out_dir/node_app.js",
153 "$resources_out_dir/shell.js",
Tim van der Lippebc42a632019-11-28 14:22:55154 "$resources_out_dir/toolbox.js",
Tim van der Lippebc42a632019-11-28 14:22:55155 "$resources_out_dir/worker_app.js",
156]
157
158generated_non_autostart_non_remote_modules = [
Tim van der Lippe387b03e2019-12-17 16:09:22159 "$resources_out_dir/accessibility/accessibility_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55160 "$resources_out_dir/animation/animation_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55161 "$resources_out_dir/browser_debugger/browser_debugger_module.js",
162 "$resources_out_dir/changes/changes_module.js",
Mathias Bynens4a0d1932020-07-28 06:31:37163 "$resources_out_dir/client_variations/client_variations_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55164 "$resources_out_dir/cm_modes/cm_modes_module.js",
Mathias Bynens2d8a20d2019-12-20 08:04:09165 "$resources_out_dir/cm/cm_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55166 "$resources_out_dir/color_picker/color_picker_module.js",
167 "$resources_out_dir/console/console_module.js",
168 "$resources_out_dir/cookie_table/cookie_table_module.js",
169 "$resources_out_dir/coverage/coverage_module.js",
Mathias Bynens2d8a20d2019-12-20 08:04:09170 "$resources_out_dir/css_overview/css_overview_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55171 "$resources_out_dir/data_grid/data_grid_module.js",
172 "$resources_out_dir/devices/devices_module.js",
173 "$resources_out_dir/diff/diff_module.js",
174 "$resources_out_dir/elements/elements_module.js",
175 "$resources_out_dir/event_listeners/event_listeners_module.js",
176 "$resources_out_dir/formatter/formatter_module.js",
177 "$resources_out_dir/har_importer/har_importer_module.js",
178 "$resources_out_dir/heap_snapshot_model/heap_snapshot_model_module.js",
179 "$resources_out_dir/help/help_module.js",
180 "$resources_out_dir/inline_editor/inline_editor_module.js",
Mathias Bynens2d8a20d2019-12-20 08:04:09181 "$resources_out_dir/input/input_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55182 "$resources_out_dir/javascript_metadata/javascript_metadata_module.js",
183 "$resources_out_dir/js_profiler/js_profiler_module.js",
184 "$resources_out_dir/layer_viewer/layer_viewer_module.js",
185 "$resources_out_dir/layers/layers_module.js",
Mathias Bynens4a0d1932020-07-28 06:31:37186 "$resources_out_dir/lighthouse/lighthouse_module.js",
Simon Zünda9f48fb2020-07-08 11:18:29187 "$resources_out_dir/marked/marked_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55188 "$resources_out_dir/media/media_module.js",
189 "$resources_out_dir/network/network_module.js",
190 "$resources_out_dir/node_debugger/node_debugger_module.js",
191 "$resources_out_dir/object_ui/object_ui_module.js",
192 "$resources_out_dir/perf_ui/perf_ui_module.js",
193 "$resources_out_dir/performance_monitor/performance_monitor_module.js",
194 "$resources_out_dir/profiler/profiler_module.js",
Jan Scheffler01005812020-02-05 12:41:00195 "$resources_out_dir/issues/issues_module.js",
Sigurd Schneider91907802020-07-08 08:53:59196 "$resources_out_dir/developer_resources/developer_resources_module.js",
Mathias Bynens2d8a20d2019-12-20 08:04:09197 "$resources_out_dir/protocol_monitor/protocol_monitor_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55198 "$resources_out_dir/quick_open/quick_open_module.js",
199 "$resources_out_dir/resources/resources_module.js",
200 "$resources_out_dir/search/search_module.js",
201 "$resources_out_dir/security/security_module.js",
202 "$resources_out_dir/settings/settings_module.js",
203 "$resources_out_dir/snippets/snippets_module.js",
204 "$resources_out_dir/source_frame/source_frame_module.js",
205 "$resources_out_dir/sources/sources_module.js",
206 "$resources_out_dir/text_editor/text_editor_module.js",
207 "$resources_out_dir/timeline_model/timeline_model_module.js",
208 "$resources_out_dir/timeline/timeline_module.js",
209 "$resources_out_dir/web_audio/web_audio_module.js",
Fawaz Mohammad81995832020-06-09 18:28:23210 "$resources_out_dir/webauthn/webauthn_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55211 "$resources_out_dir/workspace_diff/workspace_diff_module.js",
212]
213
214generated_remote_modules = [
Connor Clark2bc3be22020-02-14 22:34:19215 "$resources_out_dir/lighthouse_worker/lighthouse_worker_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55216 "$resources_out_dir/dagre_layout/dagre_layout_module.js",
217 "$resources_out_dir/emulated_devices/emulated_devices_module.js",
218]
219
220generated_test_modules = [
221 "$resources_out_dir/accessibility_test_runner/accessibility_test_runner_module.js",
222 "$resources_out_dir/application_test_runner/application_test_runner_module.js",
Connor Clark2bc3be22020-02-14 22:34:19223 "$resources_out_dir/lighthouse_test_runner/lighthouse_test_runner_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55224 "$resources_out_dir/axe_core_test_runner/axe_core_test_runner_module.js",
225 "$resources_out_dir/bindings_test_runner/bindings_test_runner_module.js",
226 "$resources_out_dir/console_test_runner/console_test_runner_module.js",
227 "$resources_out_dir/coverage_test_runner/coverage_test_runner_module.js",
228 "$resources_out_dir/cpu_profiler_test_runner/cpu_profiler_test_runner_module.js",
229 "$resources_out_dir/data_grid_test_runner/data_grid_test_runner_module.js",
230 "$resources_out_dir/device_mode_test_runner/device_mode_test_runner_module.js",
231 "$resources_out_dir/elements_test_runner/elements_test_runner_module.js",
232 "$resources_out_dir/extensions_test_runner/extensions_test_runner_module.js",
233 "$resources_out_dir/heap_profiler_test_runner/heap_profiler_test_runner_module.js",
234 "$resources_out_dir/heap_snapshot_worker/heap_snapshot_worker_module.js",
Tim van der Lippebc42a632019-11-28 14:22:55235 "$resources_out_dir/integration_test_runner.js",
236 "$resources_out_dir/layers_test_runner/layers_test_runner_module.js",
237 "$resources_out_dir/network_test_runner/network_test_runner_module.js",
238 "$resources_out_dir/performance_test_runner/performance_test_runner_module.js",
239 "$resources_out_dir/sdk_test_runner/sdk_test_runner_module.js",
240 "$resources_out_dir/security_test_runner/security_test_runner_module.js",
241 "$resources_out_dir/sources_test_runner/sources_test_runner_module.js",
242]
243
Tim van der Lippef9f55f12020-01-22 12:24:39244all_worker_entrypoints = [
Tim van der Lippef9f55f12020-01-22 12:24:39245 "front_end/heap_snapshot_worker_entrypoint.js",
246 "front_end/wasmparser_worker_entrypoint.js",
247]
248
Tim van der Lippebc42a632019-11-28 14:22:55249generated_worker_bundles = [
Tim van der Lippe0c21af52020-01-08 11:55:22250 "$resources_out_dir/heap_snapshot_worker_entrypoint.js",
251 "$resources_out_dir/wasmparser_worker_entrypoint.js",
Tim van der Lippebc42a632019-11-28 14:22:55252]
253
254devtools_applications = [
Connor Clark2bc3be22020-02-14 22:34:19255 "lighthouse_worker",
Tim van der Lippebc42a632019-11-28 14:22:55256 "devtools_app",
Tim van der Lippe0c21af52020-01-08 11:55:22257 "heap_snapshot_worker_entrypoint",
Tim van der Lippebc42a632019-11-28 14:22:55258 "inspector",
259 "integration_test_runner",
260 "js_app",
261 "ndb_app",
262 "node_app",
263 "shell",
264 "toolbox",
Tim van der Lippe0c21af52020-01-08 11:55:22265 "wasmparser_worker_entrypoint",
Tim van der Lippebc42a632019-11-28 14:22:55266 "worker_app",
267]
268
269#-------------------------------------------------------------------------------
270
Tim van der Lippe501473c2020-05-19 15:01:52271devtools_frontend_resources_deps = [
272 ":build_release_devtools",
Tim van der Lippe501473c2020-05-19 15:01:52273 ":copy_emulated_devices_images",
Tim van der Lippe501473c2020-05-19 15:01:52274 ":devtools_extension_api",
275 "front_end",
Tim van der Lippe7ebe48c2020-07-13 12:27:15276 "test",
Tim van der Lippe39fc2542020-02-28 09:38:02277]
Tim van der Lippe3bf1c192020-01-22 11:45:13278
Tim van der Lippe7ebe48c2020-07-13 12:27:15279group("devtools_all_files") {
280 testonly = true
Jan Schefflerf3277b22020-07-28 10:51:44281 data = all_devtools_files + generated_devtools_module_entrypoint_sources
Tim van der Lippe7ebe48c2020-07-13 12:27:15282 data += [
283 # This enables us to test bots with whitespace changes.
284 "scripts/whitespaces.txt",
285 ]
286 data_deps = devtools_frontend_resources_deps
Tim van der Lippe1a0338a2020-02-21 14:44:49287}
288
Tim van der Lippebc42a632019-11-28 14:22:55289group("devtools_frontend_resources") {
290 public_deps = devtools_frontend_resources_deps
291}
292
Alex Rudenkof0d02a12020-05-28 12:59:04293group("generate_devtools_inspector_overlay_resources") {
Alex Rudenko7bf4d032020-05-13 15:45:02294 public_deps = [ "front_end/inspector_overlay:build_inspector_overlay" ]
295}
296
Tim van der Lippebc42a632019-11-28 14:22:55297copy("copy_emulated_devices_images") {
298 sources = devtools_emulated_devices_images
Paul Lewise73301b2020-01-22 14:35:26299 outputs = [ "$resources_out_dir/emulated_devices/{{source_file_part}}" ]
Tim van der Lippebc42a632019-11-28 14:22:55300}
301
Tim van der Lippebc42a632019-11-28 14:22:55302action("generate_devtools_grd") {
303 script = "scripts/build/generate_devtools_grd.py"
304
Paul Lewise73301b2020-01-22 14:35:26305 deps = [ ":devtools_frontend_resources" ]
Blink Reformat4c46d092018-04-07 15:32:37306
Tim van der Lippebc42a632019-11-28 14:22:55307 grd_files =
Tim van der Lippe11640442020-09-02 15:53:38308 generated_devtools_module_entrypoint_sources +
Tim van der Lippe49155912020-05-12 11:26:44309 generated_applications_html + generated_applications_js +
310 generated_non_autostart_non_remote_modules + devtools_embedder_scripts +
Jan Schefflerf3277b22020-07-28 10:51:44311 generated_worker_bundles + generated_typescript_entrypoint_sources +
vidorteg1fd76f82020-08-26 18:09:20312 generated_typescript_modules + generated_devtools_locale_files +
Tim van der Lippebc42a632019-11-28 14:22:55313 [
314 "$resources_out_dir/devtools_extension_api.js",
315 "$resources_out_dir/sdk/wasm_source_map/pkg/wasm_source_map_bg.wasm",
Paul Lewis91182682020-07-23 16:53:52316 "$resources_out_dir/formatter_worker_entrypoint.js",
317 "$resources_out_dir/third_party/acorn/package/dist/acorn.mjs",
Tim van der Lippebc42a632019-11-28 14:22:55318 ]
319
Tim van der Lippe41a98a82020-07-15 12:58:24320 inputs = grd_files + front_end_image_files
Paul Lewis6c0b15e2020-07-30 10:09:43321
322 # Confirm that the files in the inputs match expectations.
323 # There is some path wrangling necessary here because some paths come with
324 # //out/{Target} at the start, others with front_end
325 _normalized_inputs = []
326 foreach(input, inputs) {
327 _normalized_inputs +=
328 [ string_replace(input, resources_out_dir, "front_end") ]
329 }
330
331 # Always assume the release files are included.
332 _expected_files = []
333 _expected_files += grd_files_release_sources
334 if (is_debug) {
335 _expected_files += grd_files_debug_sources
336 }
337
338 # Remove the inputs from the expectations, any leftovers means that not all inputs were provided.
339 _missing_files_expected = filter_exclude(_expected_files, _normalized_inputs)
340 assert(
341 _missing_files_expected == [],
342 "Files were expected that weren't found in the GRD inputs: $_missing_files_expected")
343
344 # Remove the expectations from the inputs, any leftovers means that too many files were provided.
345 _missing_files_normalized =
346 filter_exclude(_normalized_inputs, _expected_files)
347 assert(
348 _missing_files_normalized == [],
349 "Files were provided that weren't expected in the GRD inputs: $_missing_files_normalized")
350
Rob Paveza49473552020-01-08 21:38:58351 response_file_contents = rebase_path(grd_files, root_build_dir)
Tim van der Lippebc42a632019-11-28 14:22:55352 outfile = "$root_gen_dir/devtools/devtools_resources.grd"
Paul Lewise73301b2020-01-22 14:35:26353 outputs = [ outfile ]
Blink Reformat4c46d092018-04-07 15:32:37354
Tim van der Lippebc42a632019-11-28 14:22:55355 relative_path_dirs = [
356 resources_out_dir,
357 "front_end",
Blink Reformat4c46d092018-04-07 15:32:37358 ]
359
Tim van der Lippee2fbfea2020-01-09 13:53:50360 args = [
Rob Paveza41120592020-01-13 17:17:02361 "--file_list",
Tim van der Lippee2fbfea2020-01-09 13:53:50362 "{{response_file_name}}",
363 "--relative_path_dirs",
364 ] + rebase_path(relative_path_dirs, root_build_dir) +
Tim van der Lippebc42a632019-11-28 14:22:55365 [
366 "--images",
367 rebase_path("front_end/Images", root_build_dir),
368 "--output",
369 rebase_path(outfile, root_build_dir),
370 ]
371}
372
373action("devtools_extension_api") {
374 script = "scripts/build/generate_devtools_extension_api.py"
375
376 devtools_extension_api_files = [ "front_end/extensions/ExtensionAPI.js" ]
377 inputs = devtools_extension_api_files
Paul Lewise73301b2020-01-22 14:35:26378 outputs = [ "$resources_out_dir/devtools_extension_api.js" ]
Blink Reformat4c46d092018-04-07 15:32:37379
Tim van der Lippebc42a632019-11-28 14:22:55380 args = rebase_path(outputs, root_build_dir) +
381 rebase_path(devtools_extension_api_files, root_build_dir)
382}
383
Tim van der Lippe8bdbc7a2020-03-09 10:42:09384build_release_devtools_args = []
385
386if (!is_debug) {
387 build_release_devtools_args += [ "--rollup" ]
388}
389
Tim van der Lippebc42a632019-11-28 14:22:55390action("build_release_devtools") {
391 script = "scripts/build/build_release_applications.py"
Blink Reformat4c46d092018-04-07 15:32:37392
Tim van der Lippebc42a632019-11-28 14:22:55393 helper_scripts = [
394 "scripts/build/modular_build.py",
395 "scripts/build/rjsmin.py",
Tim van der Lippe10095002020-06-15 16:15:33396 "front_end/rollup.config.js",
Tim van der Lippebc42a632019-11-28 14:22:55397 ]
398
Tim van der Lippe8ea04b02020-05-26 09:57:58399 deps = [ "front_end" ]
400
Tim van der Lippe8ec07dd2020-01-23 18:29:34401 inputs = helper_scripts + all_devtools_files + devtools_test_files +
Tim van der Lippeb3b90762020-03-04 15:21:52402 application_templates + all_worker_entrypoints +
Tim van der Lippe11640442020-09-02 15:53:38403 front_end_devtools_module_entrypoint_sources
Tim van der Lippebc42a632019-11-28 14:22:55404 outputs =
Tim van der Lippe49155912020-05-12 11:26:44405 generated_applications_js + generated_non_autostart_non_remote_modules +
Tim van der Lippebc42a632019-11-28 14:22:55406 generated_remote_modules + generated_test_modules +
Jan Schefflerf3277b22020-07-28 10:51:44407 generated_worker_bundles + generated_devtools_module_entrypoint_sources
Tim van der Lippebc42a632019-11-28 14:22:55408
409 args = devtools_applications + [
410 "--input_path",
411 rebase_path("front_end", root_build_dir),
412 "--output_path",
413 rebase_path(resources_out_dir, root_build_dir),
Tim van der Lippe8bdbc7a2020-03-09 10:42:09414 ] + build_release_devtools_args
Tim van der Lippebc42a632019-11-28 14:22:55415}