BUILD.gn 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. # This directories are used from ash-chrome and lacros-chrome.
  6. static_library("common") {
  7. sources = [
  8. "intent_helper/activity_icon_loader.cc",
  9. "intent_helper/activity_icon_loader.h",
  10. "intent_helper/adaptive_icon_delegate.h",
  11. "intent_helper/arc_icon_cache_delegate.cc",
  12. "intent_helper/arc_icon_cache_delegate.h",
  13. "intent_helper/arc_intent_helper_mojo_delegate.cc",
  14. "intent_helper/arc_intent_helper_mojo_delegate.h",
  15. "intent_helper/link_handler_model.cc",
  16. "intent_helper/link_handler_model.h",
  17. ]
  18. # Enable VLOG(1).
  19. defines = [ "ENABLED_VLOG_LEVEL=1" ]
  20. deps = [
  21. ":arc_intent_helper_constants",
  22. "//base",
  23. "//build:chromeos_buildflags",
  24. "//components/google/core/common",
  25. "//ui/base",
  26. "//ui/gfx",
  27. "//url:url",
  28. ]
  29. if (is_chromeos_ash) {
  30. deps += [
  31. "//ash/components/arc",
  32. "//ash/components/arc:arc_base_utils",
  33. "//ash/components/arc:arc_metrics_constants",
  34. "//ash/components/arc/mojom",
  35. "//ash/components/arc/session",
  36. ]
  37. }
  38. if (is_chromeos_lacros) {
  39. deps += [
  40. "//chromeos/crosapi/mojom",
  41. "//chromeos/lacros",
  42. ]
  43. }
  44. }
  45. static_library("arc_intent_helper_constants") {
  46. sources = [ "intent_helper/arc_intent_helper_package.h" ]
  47. }
  48. static_library("arc_test_support") {
  49. testonly = true
  50. sources = [
  51. "test/fake_arc_icon_cache.cc",
  52. "test/fake_arc_icon_cache.h",
  53. "test/fake_arc_intent_helper_mojo.cc",
  54. "test/fake_arc_intent_helper_mojo.h",
  55. ]
  56. deps = [
  57. "//components/arc/common",
  58. "//ui/base",
  59. ]
  60. }
  61. source_set("unit_tests") {
  62. testonly = true
  63. sources = [
  64. "intent_helper/activity_icon_loader_unittest.cc",
  65. "intent_helper/link_handler_model_unittest.cc",
  66. ]
  67. deps = [
  68. ":common",
  69. "//base/test:test_support",
  70. "//testing/gtest",
  71. "//ui/gfx",
  72. "//url:url",
  73. ]
  74. }