BUILD.gn 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 2021 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. import("//build/config/chromeos/ui_mode.gni")
  5. assert(is_chromeos,
  6. "Non-Chrome-OS or Lacros builds must not depend on //chromeos")
  7. # C++ headers and sources that can be used by both ash and lacros builds.
  8. source_set("wm") {
  9. defines = [ "IS_CHROMEOS_UI_WM_IMPL" ]
  10. sources = [
  11. "desks/chromeos_desks_histogram_enums.h",
  12. "desks/desks_helper.h",
  13. "features.cc",
  14. "features.h",
  15. "fullscreen/keep_fullscreen_for_url_checker.cc",
  16. "fullscreen/keep_fullscreen_for_url_checker.h",
  17. "fullscreen/pref_names.cc",
  18. "fullscreen/pref_names.h",
  19. ]
  20. deps = [
  21. "//base",
  22. "//build:chromeos_buildflags",
  23. "//chromeos/ui/base",
  24. "//components/prefs",
  25. "//components/url_matcher",
  26. "//ui/aura",
  27. "//ui/base",
  28. "//url",
  29. ]
  30. if (is_chromeos_ash) {
  31. sources += [ "desks/ash/desks_helper.cc" ]
  32. }
  33. if (is_chromeos_lacros) {
  34. sources += [ "desks/lacros/desks_helper.cc" ]
  35. deps += [
  36. "//chromeos/startup:startup",
  37. "//ui/platform_window:platform_window",
  38. "//ui/views:views",
  39. ]
  40. }
  41. }