File: BUILD.gn

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (355 lines) | stat: -rw-r--r-- 12,572 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/chromeos/crosier_tests.gni")
import("//build/config/chromeos/ui_mode.gni")

assert(is_chromeos)

static_library("apps") {
  sources = [
    "boca_web_app_config.cc",
    "boca_web_app_config.h",
    "boca_web_app_info.cc",
    "boca_web_app_info.h",
    "chrome_demo_mode_app_delegate.cc",
    "chrome_demo_mode_app_delegate.h",
    "chrome_file_manager_ui_delegate.cc",
    "chrome_file_manager_ui_delegate.h",
    "connectivity_diagnostics_system_web_app_info.cc",
    "connectivity_diagnostics_system_web_app_info.h",
    "crosh_system_web_app_info.cc",
    "crosh_system_web_app_info.h",
    "crosh_ui.cc",
    "crosh_ui.h",
    "demo_mode_web_app_info.cc",
    "demo_mode_web_app_info.h",
    "diagnostics_system_web_app_info.cc",
    "diagnostics_system_web_app_info.h",
    "eche_app_info.cc",
    "eche_app_info.h",
    "file_manager_web_app_info.cc",
    "file_manager_web_app_info.h",
    "files_internals_debug_json_provider.h",
    "files_internals_ui_delegate.cc",
    "files_internals_ui_delegate.h",
    "firmware_update_system_web_app_info.cc",
    "firmware_update_system_web_app_info.h",
    "graduation_app_delegate.cc",
    "graduation_app_delegate.h",
    "mall_system_web_app_info.cc",
    "mall_system_web_app_info.h",
    "os_feedback_system_web_app_info.cc",
    "os_feedback_system_web_app_info.h",
    "os_flags_system_web_app_info.cc",
    "os_flags_system_web_app_info.h",
    "os_settings_web_app_info.cc",
    "os_settings_web_app_info.h",
    "print_management_web_app_info.cc",
    "print_management_web_app_info.h",
    "print_preview_cros_system_web_app_info.cc",
    "print_preview_cros_system_web_app_info.h",
    "projector_system_web_app_info.cc",
    "projector_system_web_app_info.h",
    "sanitize_system_web_app_info.cc",
    "sanitize_system_web_app_info.h",
    "scanning_system_web_app_info.cc",
    "scanning_system_web_app_info.h",
    "shimless_rma_system_web_app_info.cc",
    "shimless_rma_system_web_app_info.h",
    "shortcut_customization_system_web_app_info.cc",
    "shortcut_customization_system_web_app_info.h",
    "system_web_app_install_utils.cc",
    "system_web_app_install_utils.h",
    "terminal_source.cc",
    "terminal_source.h",
    "terminal_system_web_app_info.cc",
    "terminal_system_web_app_info.h",
    "terminal_ui.cc",
    "terminal_ui.h",
  ]

  public_deps = [
    "//ash/public/cpp",
    "//ash/webui/connectivity_diagnostics",
    "//ash/webui/demo_mode_app_ui",
    "//ash/webui/file_manager:file_manager_ui",
    "//ash/webui/files_internals",
    "//ash/webui/shimless_rma",
    "//ash/webui/shortcut_customization_ui:url_constants",
    "//base",
    "//chrome/browser:browser_public_dependencies",
    "//chrome/browser/policy:policy_util",
    "//chrome/browser/profiles:profile",
    "//chrome/browser/web_applications",
    "//chrome/common",
    "//chromeos/ash/components/drivefs/mojom",
    "//chromeos/ash/experiences/system_web_apps/types",
    "//content/public/browser",
    "//ui/base",
    "//ui/gfx/geometry",
    "//ui/webui",
  ]

  deps = [
    "//ash",
    "//ash/constants",
    "//ash/public/cpp/resources:ash_public_unscaled_resources_grit",
    "//ash/strings",
    "//ash/webui/boca_ui",
    "//ash/webui/boca_ui:constants",
    "//ash/webui/boca_ui/resources",
    "//ash/webui/connectivity_diagnostics/resources",
    "//ash/webui/demo_mode_app_ui/resources:resources",
    "//ash/webui/diagnostics_ui:url_constants",
    "//ash/webui/diagnostics_ui/resources",
    "//ash/webui/eche_app_ui",
    "//ash/webui/file_manager:constants",
    "//ash/webui/file_manager/resources:file_manager_swa_resources",
    "//ash/webui/firmware_update_ui:url_constants",
    "//ash/webui/firmware_update_ui/resources",
    "//ash/webui/graduation",
    "//ash/webui/graduation/resources",
    "//ash/webui/mall:url_constants",
    "//ash/webui/mall/resources",
    "//ash/webui/os_feedback_ui:url_constants",
    "//ash/webui/os_feedback_ui/resources",
    "//ash/webui/print_management:url_constants",
    "//ash/webui/print_management/resources",
    "//ash/webui/print_preview_cros:url_constants",
    "//ash/webui/print_preview_cros/resources",
    "//ash/webui/projector_app/public/cpp",
    "//ash/webui/resources:eche_bundle_resources",
    "//ash/webui/resources:projector_app_untrusted_resources",
    "//ash/webui/sanitize_ui",
    "//ash/webui/sanitize_ui:url_constants",
    "//ash/webui/sanitize_ui/resources",
    "//ash/webui/scanning:url_constants",
    "//ash/webui/scanning/resources",
    "//ash/webui/scanning/resources:resources_grit",
    "//ash/webui/shimless_rma/resources",
    "//ash/webui/shortcut_customization_ui/resources",
    "//ash/webui/system_apps/public:system_web_app_type",
    "//chrome/app:generated_resources",
    "//chrome/app:generated_resources_grit",
    "//chrome/app/theme:chrome_unscaled_resources",
    "//chrome/browser:browser_process",
    "//chrome/browser/apps:user_type_filter",
    "//chrome/browser/apps/app_service:constants",
    "//chrome/browser/ash/browser_delegate",
    "//chrome/browser/ash/crostini",
    "//chrome/browser/ash/drive",
    "//chrome/browser/ash/file_manager",
    "//chrome/browser/ash/guest_os/public",
    "//chrome/browser/ash/login/demo_mode",
    "//chrome/browser/ash/policy/dlp",
    "//chrome/browser/chromeos/upload_office_to_cloud",
    "//chrome/browser/feedback:feedback_enum",
    "//chrome/browser/resources/ash/settings:resources",
    "//chrome/browser/ui/tabs:tab_strip",
    "//chrome/browser/ui/webui/ash/diagnostics_dialog",
    "//chrome/browser/web_applications/mojom:mojom_web_apps_enum",
    "//chrome/common:channel_info",
    "//chrome/common:constants",
    "//chromeos/ash/components/boca",
    "//chromeos/ash/components/browser_context_helper",
    "//chromeos/ash/components/demo_mode",
    "//chromeos/ash/components/install_attributes",
    "//chromeos/ash/components/scalable_iph",
    "//chromeos/constants",
    "//chromeos/strings:strings_grit",
    "//components/content_settings/core/common",
    "//components/drive",
    "//components/keyed_service/content",
    "//components/prefs",
    "//components/services/app_service/public/cpp:app_types",
    "//components/supervised_user/core/browser",
    "//components/version_info:channel",
    "//components/webapps/common",
    "//content/public/common",
    "//extensions/browser/api/file_handlers",
    "//extensions/common",
    "//net",
    "//services/network/public/mojom:url_loader_base",
    "//skia",
    "//storage/browser",
    "//third_party/blink/public/mojom:mojom_platform",
    "//third_party/zlib/google:compression_utils",
    "//ui/chromeos/styles:cros_styles_views_generator",
    "//ui/chromeos/styles:cros_tokens_color_mappings_generator",
    "//ui/color",
    "//ui/color:color_headers",
    "//ui/display",
    "//ui/file_manager:resources",
    "//url",
  ]

  if (!is_official_build) {
    sources += [
      "sample_system_web_app_info.cc",
      "sample_system_web_app_info.h",
    ]

    deps += [
      "//ash/webui/sample_system_web_app_ui",
      "//ash/webui/sample_system_web_app_ui/resources/trusted:resources",
    ]
  }
}

source_set("browser_tests") {
  testonly = true

  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]

  sources = [
    "boca_app_integration_browsertest.cc",
    "demo_mode_app_integration_browsertest.cc",
    "diagnostics_app_integration_browsertest.cc",
    "eche_app_integration_browsertest.cc",
    "firmware_update_app_integration_browsertest.cc",
    "graduation_app_integration_browsertest.cc",
    "mall_app_integration_browsertest.cc",
    "os_feedback_app_integration_browsertest.cc",
    "print_management_app_integration_browsertest.cc",
    "print_preview_cros_app_integration_browsertest.cc",
    "sanitize_app_integration_browsertest.cc",
    "scanning_app_integration_browsertest.cc",
    "settings_app_integration_browsertest.cc",
    "shimless_rma_integration_browsertest.cc",
    "shortcut_customization_app_integration_browsertest.cc",
  ]

  deps = [
    ":apps",
    "//ash",
    "//ash/constants",
    "//ash/webui/boca_ui",
    "//ash/webui/boca_ui:constants",
    "//ash/webui/demo_mode_app_ui",
    "//ash/webui/diagnostics_ui:url_constants",
    "//ash/webui/eche_app_ui",
    "//ash/webui/firmware_update_ui:url_constants",
    "//ash/webui/graduation:url_constants",
    "//ash/webui/mall:url_constants",
    "//ash/webui/os_feedback_ui:url_constants",
    "//ash/webui/print_management:url_constants",
    "//ash/webui/print_preview_cros:url_constants",
    "//ash/webui/sanitize_ui:url_constants",
    "//ash/webui/scanning:url_constants",
    "//ash/webui/shimless_rma",
    "//ash/webui/shortcut_customization_ui:url_constants",
    "//ash/webui/system_apps/public:system_web_app_type",
    "//ash/webui/web_applications/test:test_support",
    "//base",
    "//base/test:test_support",
    "//chrome/app:command_ids",
    "//chrome/app:generated_resources_grit",
    "//chrome/browser",
    "//chrome/browser/apps/app_service",
    "//chrome/browser/apps/app_service:constants",
    "//chrome/browser/ash/boca",
    "//chrome/browser/ash/login/test:test_support",
    "//chrome/browser/ash/policy/core",
    "//chrome/browser/ash/system_web_apps",
    "//chrome/browser/ash/system_web_apps/test_support:test_support_ui",
    "//chrome/browser/policy:system_features_disable_list",
    "//chrome/browser/profiles:profile",
    "//chrome/browser/ui",
    "//chrome/browser/ui/ash/system_web_apps",
    "//chrome/browser/ui/web_applications",
    "//chrome/browser/ui/webui/ash/diagnostics_dialog",
    "//chrome/browser/ui/webui/ash/system_web_dialog",
    "//chrome/browser/web_applications",
    "//chrome/browser/web_applications:web_applications_test_support",
    "//chrome/common:constants",
    "//chrome/test:test_support",
    "//chrome/test:test_support_ui",
    "//chromeos/ash/components/boca",
    "//chromeos/ash/components/boca/proto",
    "//chromeos/ash/components/boca/session_api",
    "//chromeos/constants",
    "//components/policy/core/common:common_constants",
    "//components/prefs",
    "//components/strings:components_strings_grit",
    "//components/webapps/browser:constants",
    "//content/public/browser",
    "//content/test:test_support",
    "//net:test_support",
    "//testing/gmock",
    "//testing/gtest",
    "//ui/base",
    "//ui/base:features",
    "//ui/base:types",
    "//ui/display",
    "//ui/display:display_manager_test_api",
    "//ui/events:test_support",
    "//ui/gfx/geometry",
    "//ui/views",
    "//url",

    # Tests from subdirectories:
    "//chrome/browser/ash/system_web_apps/apps/camera_app:browser_tests",
    "//chrome/browser/ash/system_web_apps/apps/help_app:browser_tests",
    "//chrome/browser/ash/system_web_apps/apps/media_app:browser_tests",
    "//chrome/browser/ash/system_web_apps/apps/personalization_app:browser_tests",
    "//chrome/browser/ash/system_web_apps/apps/projector_app:browser_tests",
    "//chrome/browser/ash/system_web_apps/apps/vc_background_ui:browser_tests",
  ]

  if (!is_official_build) {
    sources += [ "sample_system_web_app_integration_browsertest.cc" ]
    deps += [ "//ash/webui/sample_system_web_app_ui" ]
  }
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "boca_web_app_info_unittest.cc",
    "os_settings_web_app_info_unittest.cc",
  ]

  deps = [
    ":apps",
    "//ash/constants",
    "//ash/webui/boca_ui",
    "//ash/webui/boca_ui:constants",
    "//base/test:test_support",
    "//chrome/browser/ui",
    "//chrome/browser/ui/tabs:tab_strip",
    "//chromeos/ash/components/browser_context_helper:test_support",
    "//testing/gtest",

    # Tests from subdirectories:
    "//chrome/browser/ash/system_web_apps/apps/help_app:unit_tests",
    "//chrome/browser/ash/system_web_apps/apps/personalization_app:unit_tests",
  ]
}

if (is_chromeos_device) {
  crosier_tests("integration_tests") {
    sources = [ "terminal_integration_test.cc" ]

    sources_metadata = [ "terminal_integration_test.yaml" ]

    deps = [
      "//ash",
      "//ash/constants",
      "//base",
      "//chrome/browser",
      "//chrome/browser/ui",
      "//chrome/browser/ui/ash/shelf",
      "//chrome/browser/web_applications",
      "//chrome/test:ash_integration_test_support",
      "//testing/gmock",
      "//testing/gtest",
      "//ui/aura",
      "//ui/base:test_support",
      "//ui/compositor",
      "//ui/display",
    ]
  }
}