BUILD.gn 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # Copyright 2014 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. component("user_manager") {
  6. sources = [
  7. "user_info.cc",
  8. "user_info.h",
  9. "user_info_impl.cc",
  10. "user_info_impl.h",
  11. "user_manager_export.h",
  12. "user_names.cc",
  13. "user_names.h",
  14. "user_type.h",
  15. ]
  16. public_deps = [
  17. "//base",
  18. "//components/account_id",
  19. "//ui/gfx",
  20. ]
  21. deps = [
  22. "//components/crash/core/common",
  23. "//google_apis",
  24. ]
  25. defines = [ "USER_MANAGER_IMPLEMENTATION" ]
  26. if (is_chromeos_ash) {
  27. sources += [
  28. "known_user.cc",
  29. "known_user.h",
  30. "remove_user_delegate.h",
  31. "scoped_user_manager.cc",
  32. "scoped_user_manager.h",
  33. "user.cc",
  34. "user.h",
  35. "user_directory_integrity_manager.cc",
  36. "user_directory_integrity_manager.h",
  37. "user_image/user_image.cc",
  38. "user_image/user_image.h",
  39. "user_manager.cc",
  40. "user_manager.h",
  41. "user_manager_base.cc",
  42. "user_manager_base.h",
  43. ]
  44. deps += [
  45. "//components/prefs",
  46. "//skia",
  47. "//url",
  48. ]
  49. }
  50. }
  51. if (is_chromeos_ash) {
  52. source_set("test_support") {
  53. testonly = true
  54. sources = [
  55. "fake_user_manager.cc",
  56. "fake_user_manager.h",
  57. ]
  58. public_deps = [
  59. ":user_manager",
  60. "//base",
  61. "//components/account_id",
  62. ]
  63. deps = [ "//ash/constants" ]
  64. }
  65. source_set("unit_tests") {
  66. testonly = true
  67. sources = [
  68. "known_user_unittest.cc",
  69. "user_unittest.cc",
  70. ]
  71. deps = [
  72. ":test_support",
  73. ":user_manager",
  74. "//base/test:test_support",
  75. "//components/account_id",
  76. "//components/prefs:test_support",
  77. "//testing/gmock",
  78. "//testing/gtest",
  79. ]
  80. }
  81. }