summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/ui/webui/BUILD.gn
blob: d8d8de838d504be2bfa22ad911d6e3773f1136fd (plain)
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
# Copyright 2022 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

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

source_set("configs") {
  sources = [
    "chrome_untrusted_web_ui_configs.cc",
    "chrome_untrusted_web_ui_configs.h",
    "chrome_untrusted_web_ui_configs_common.cc",
    "chrome_untrusted_web_ui_configs_common.h",
    "chrome_web_ui_configs.cc",
    "chrome_web_ui_configs.h",
  ]

  deps = [
    "//content/public/browser",
    "//printing/buildflags:buildflags",
    "//skia",
    "//third_party/abseil-cpp:absl",
  ]

  if (is_android) {
    sources += [
      "chrome_untrusted_web_ui_configs_android.cc",
      "chrome_untrusted_web_ui_configs_android.h",
    ]
  }

  if (is_mac || is_win || is_linux || is_chromeos || is_fuchsia) {
    sources += [
      "chrome_untrusted_web_ui_configs_desktop.cc",
      "chrome_untrusted_web_ui_configs_desktop.h",
    ]

    deps += [ "//chrome/browser/ui/webui/image_editor:image_editor_ui" ]
  }

  # Includes Ash Chrome and Lacros Chrome
  if (is_chromeos) {
    sources += [
      "chrome_untrusted_web_ui_configs_chromeos.cc",
      "chrome_untrusted_web_ui_configs_chromeos.h",
      "chrome_web_ui_configs_chromeos.cc",
      "chrome_web_ui_configs_chromeos.h",
    ]
    deps += [ "//build:chromeos_buildflags" ]
  }

  if (is_chromeos_ash) {
    deps += [
      "//ash/constants",
      "//ash/webui/eche_app_ui",
      "//ash/webui/file_manager:file_manager_untrusted_ui",
      "//ash/webui/help_app_ui",
      "//ash/webui/os_feedback_ui",
      "//ash/webui/shortcut_customization_ui",
      "//chrome/browser/ash",
    ]
    if (!is_official_build) {
      deps += [
        "//ash/webui/demo_mode_app_ui",
        "//ash/webui/facial_ml_app_ui",
        "//ash/webui/sample_system_web_app_ui",
      ]
    }
  }
}