summaryrefslogtreecommitdiffstats
path: root/components/ownership/BUILD.gn
blob: 1bca927b1e0e7539949095b4b7023b62fe908593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/features.gni")

component("ownership") {
  sources = [
    "mock_owner_key_util.cc",
    "mock_owner_key_util.h",
    "owner_key_util.cc",
    "owner_key_util.h",
    "owner_key_util_impl.cc",
    "owner_key_util_impl.h",
    "owner_settings_service.cc",
    "owner_settings_service.h",
  ]

  defines = [ "OWNERSHIP_IMPLEMENTATION" ]

  deps = [
    "//base",
    "//components/keyed_service/core",
    "//components/policy/proto",
    "//components/policy:policy_component_common",
    "//crypto",
  ]

  if (enable_configuration_policy) {
    deps += [ "//components/policy" ]
  }
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "owner_key_util_impl_unittest.cc",
  ]

  configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]

  deps = [
    ":ownership",
    "//testing/gtest",
  ]
}