BUILD.gn 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Copyright 2022 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/buildflag_header.gni")
  5. import("//build/config/ui.gni")
  6. source_set("views") {
  7. sources = [
  8. "help_bubble_delegate.h",
  9. "help_bubble_factory_views.cc",
  10. "help_bubble_factory_views.h",
  11. "help_bubble_view.cc",
  12. "help_bubble_view.h",
  13. "new_badge_label.cc",
  14. "new_badge_label.h",
  15. ]
  16. if (is_mac) {
  17. sources += [
  18. "help_bubble_factory_mac.h",
  19. "help_bubble_factory_mac.mm",
  20. ]
  21. }
  22. public_deps = [ "//components/user_education/common" ]
  23. deps = [
  24. "//base",
  25. "//components/strings",
  26. "//components/variations",
  27. "//components/vector_icons",
  28. "//skia",
  29. "//third_party/abseil-cpp:absl",
  30. "//ui/accessibility",
  31. "//ui/base",
  32. "//ui/color",
  33. "//ui/gfx",
  34. "//ui/views",
  35. ]
  36. }
  37. source_set("unit_tests") {
  38. testonly = true
  39. sources = [
  40. "help_bubble_view_unittest.cc",
  41. "new_badge_label_unittest.cc",
  42. ]
  43. deps = [
  44. ":views",
  45. "//base",
  46. "//base/test:test_support",
  47. "//components/feature_engagement/public",
  48. "//components/strings",
  49. "//components/user_education/common",
  50. "//components/user_education/test",
  51. "//components/variations",
  52. "//skia",
  53. "//testing/gmock",
  54. "//testing/gtest",
  55. "//third_party/abseil-cpp:absl",
  56. "//ui/accessibility",
  57. "//ui/base",
  58. "//ui/base:test_support",
  59. "//ui/color",
  60. "//ui/gfx",
  61. "//ui/views",
  62. "//ui/views:test_support",
  63. ]
  64. }