BUILD.gn 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. assert(is_chromeos_ash, "Non-Chrome-OS builds must not depend on //ash")
  6. component("policy") {
  7. output_name = "ash_policy" # Avoid conflict with //sandbox/policy
  8. defines = [ "IS_ASH_POLICY_IMPL" ]
  9. public_deps = [
  10. "//components/policy/proto",
  11. "//third_party/abseil-cpp:absl",
  12. ]
  13. deps = [
  14. "//base",
  15. "//base:i18n",
  16. "//third_party/icu",
  17. ]
  18. sources = [
  19. "weekly_time/time_utils.cc",
  20. "weekly_time/time_utils.h",
  21. "weekly_time/weekly_time.cc",
  22. "weekly_time/weekly_time.h",
  23. "weekly_time/weekly_time_interval.cc",
  24. "weekly_time/weekly_time_interval.h",
  25. ]
  26. }
  27. source_set("unit_tests") {
  28. testonly = true
  29. deps = [
  30. ":policy",
  31. "//base",
  32. "//base:i18n",
  33. "//base/test:test_support",
  34. "//components/policy/proto",
  35. "//testing/gtest",
  36. "//third_party/icu",
  37. ]
  38. sources = [
  39. "weekly_time/time_utils_unittest.cc",
  40. "weekly_time/weekly_time_interval_unittest.cc",
  41. "weekly_time/weekly_time_unittest.cc",
  42. ]
  43. }