BUILD.gn 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. import("//build/config/features.gni")
  6. import("//crypto/features.gni")
  7. if (is_chromeos_ash) {
  8. component("ownership") {
  9. sources = [
  10. "mock_owner_key_util.cc",
  11. "mock_owner_key_util.h",
  12. "owner_key_util.cc",
  13. "owner_key_util.h",
  14. "owner_key_util_impl.cc",
  15. "owner_key_util_impl.h",
  16. "owner_settings_service.cc",
  17. "owner_settings_service.h",
  18. ]
  19. defines = [ "OWNERSHIP_IMPLEMENTATION" ]
  20. public_deps = [ "//components/policy/proto" ]
  21. deps = [
  22. "//base",
  23. "//build:chromeos_buildflags",
  24. "//components/keyed_service/core",
  25. "//components/policy:generated",
  26. "//components/policy/core/common",
  27. "//components/policy/proto",
  28. "//crypto",
  29. ]
  30. if (use_nss_certs) {
  31. public_configs = [ "//build/config/linux/nss" ]
  32. }
  33. }
  34. source_set("unit_tests") {
  35. testonly = true
  36. sources = [ "owner_key_util_impl_unittest.cc" ]
  37. deps = [
  38. ":ownership",
  39. "//base",
  40. "//testing/gtest",
  41. ]
  42. }
  43. }