BUILD.gn 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # Copyright 2018 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_ash)
  6. static_library("multidevice") {
  7. sources = [
  8. "beacon_seed.cc",
  9. "beacon_seed.h",
  10. "expiring_remote_device_cache.cc",
  11. "expiring_remote_device_cache.h",
  12. "remote_device.cc",
  13. "remote_device.h",
  14. "remote_device_cache.cc",
  15. "remote_device_cache.h",
  16. "remote_device_ref.cc",
  17. "remote_device_ref.h",
  18. "secure_message_delegate.cc",
  19. "secure_message_delegate.h",
  20. "secure_message_delegate_impl.cc",
  21. "secure_message_delegate_impl.h",
  22. "software_feature.cc",
  23. "software_feature.h",
  24. "software_feature_state.cc",
  25. "software_feature_state.h",
  26. ]
  27. deps = [
  28. "//ash/components/multidevice/logging",
  29. "//ash/services/device_sync/proto:util",
  30. "//base",
  31. "//base:i18n",
  32. "//chromeos/ash/components/dbus",
  33. "//chromeos/ash/components/dbus/easy_unlock",
  34. "//components/prefs",
  35. ]
  36. public_deps = [
  37. "//ash/services/device_sync/proto",
  38. "//base",
  39. "//third_party/securemessage/proto",
  40. ]
  41. }
  42. static_library("stub_multidevice_util") {
  43. sources = [
  44. "stub_multidevice_util.cc",
  45. "stub_multidevice_util.h",
  46. ]
  47. deps = [
  48. ":multidevice",
  49. "//ash/constants",
  50. "//ash/services/device_sync/proto",
  51. "//base",
  52. ]
  53. }
  54. static_library("test_support") {
  55. testonly = true
  56. sources = [
  57. "fake_secure_message_delegate.cc",
  58. "fake_secure_message_delegate.h",
  59. "remote_device_test_util.cc",
  60. "remote_device_test_util.h",
  61. ]
  62. public_deps = [ ":multidevice" ]
  63. deps = [
  64. "//ash/services/device_sync/proto",
  65. "//base",
  66. ]
  67. }
  68. source_set("unit_tests") {
  69. testonly = true
  70. sources = [
  71. "expiring_remote_device_cache_unittest.cc",
  72. "fake_secure_message_delegate_unittest.cc",
  73. "remote_device_cache_unittest.cc",
  74. "remote_device_ref_unittest.cc",
  75. ]
  76. deps = [
  77. ":multidevice",
  78. ":test_support",
  79. "//ash/components/multidevice/logging:unit_tests",
  80. "//ash/components/multidevice/mojom:unit_tests",
  81. "//ash/services/device_sync/proto",
  82. "//base/test:test_support",
  83. "//testing/gtest",
  84. ]
  85. }