BUILD.gn 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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("//testing/test.gni")
  5. assert(is_chromeos_ash, "Non-Chrome-OS builds must not depend on //ash")
  6. component("settings") {
  7. defines = [ "IS_ASH_SETTINGS_IMPL" ]
  8. deps = [
  9. "//ash/constants",
  10. "//base",
  11. "//base:i18n",
  12. "//chromeos/login/login_state",
  13. "//third_party/icu",
  14. ]
  15. sources = [
  16. "cros_settings_names.cc",
  17. "cros_settings_names.h",
  18. "cros_settings_provider.cc",
  19. "cros_settings_provider.h",
  20. "system_settings_provider.cc",
  21. "system_settings_provider.h",
  22. "timezone_settings.cc",
  23. "timezone_settings.h",
  24. "timezone_settings_helper.cc",
  25. "timezone_settings_helper.h",
  26. ]
  27. }
  28. source_set("unit_tests") {
  29. testonly = true
  30. deps = [
  31. ":settings",
  32. "//base",
  33. "//base:i18n",
  34. "//base/test:test_support",
  35. "//testing/gmock",
  36. "//testing/gtest",
  37. "//third_party/icu",
  38. ]
  39. sources = [ "timezone_settings_unittest.cc" ]
  40. }