chromium/chrome/browser/ui/ash/system_web_apps/BUILD.gn

# Copyright 2022 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/config/chromeos/ui_mode.gni")

assert(is_chromeos_ash)

static_library("system_web_apps") {
  sources = [
    "color_helpers_ui_impl.cc",
    "system_web_app_delegate_ui_impl.cc",
    "system_web_app_icon_checker_impl.cc",
    "system_web_app_icon_checker_impl.h",
    "system_web_app_ui_utils.cc",
    "system_web_app_ui_utils.h",
  ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]

  public_deps = [ "//chrome/browser:browser_public_dependencies" ]

  deps = [
    "//ash/webui/system_apps/public:system_web_app_type",
    "//base",
    "//chrome/browser/apps/app_service:constants",
    "//chrome/browser/ash/file_manager",
    "//chrome/browser/ash/system_web_apps",
    "//chrome/browser/ash/system_web_apps/types",
    "//chrome/browser/profiles:profile",
    "//chrome/browser/scalable_iph:scalable_iph_factory",
    "//chrome/browser/ui/ash/multi_user",
    "//chrome/browser/web_applications",
    "//chrome/common",
    "//chromeos/ash/components/scalable_iph:scalable_iph",
    "//components/webapps/common",
    "//content/public/browser",
    "//ui/base",
    "//ui/display",
  ]

  # TODO(crbug.com/40251081): Remove these deps. Needed only to allow circular includes.
  deps += [
    "//chrome/browser/ash/app_list/search",
    "//chrome/browser/ash/extensions/autotest_private",
    "//chrome/browser/ash/extensions/file_manager",
    "//chrome/browser/ash/guest_os",
    "//chrome/browser/ash/login/demo_mode",
    "//chrome/browser/ash/policy/dlp",
    "//chrome/browser/ash/profiles",
    "//chrome/browser/ash/scanning",
    "//chrome/browser/ash/system_web_apps/apps",
    "//chrome/browser/ash/system_web_apps/apps/camera_app",
    "//chrome/browser/ash/system_web_apps/apps/media_app",
    "//chrome/browser/ash/url_handler",
    "//chrome/browser/chromeos/app_mode",
    "//chrome/browser/ui/views/borealis",
    "//chrome/browser/ui/webui/ash",
    "//chrome/browser/ui/webui/ash/settings/pages/files",
  ]

  # TODO(crbug.com/40251081): Remove circular includes.
  allow_circular_includes_from = [
    "//chrome/browser/ash/app_list/search",
    "//chrome/browser/ash/guest_os",
    "//chrome/browser/ash/extensions/autotest_private",
    "//chrome/browser/ash/extensions/file_manager",
    "//chrome/browser/ash/file_manager",
    "//chrome/browser/ash/login/demo_mode",
    "//chrome/browser/ash/scanning",
    "//chrome/browser/ash/policy/dlp",
    "//chrome/browser/ash/system_web_apps/apps",
    "//chrome/browser/ash/system_web_apps/apps/camera_app",
    "//chrome/browser/ash/system_web_apps/apps/media_app",
    "//chrome/browser/ash/url_handler",
    "//chrome/browser/chromeos/app_mode",
    "//chrome/browser/ui/views/borealis",
    "//chrome/browser/ui/webui/ash",
    "//chrome/browser/ui/webui/ash/settings/pages/files",
  ]
}