telemetry: Migrate pregenerated profiles before using them.
[chromium-blink-merge.git] / components / ownership / BUILD.gn
blobeb65f21cae091311c7c7425052348544b36588f8
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.
5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni")
8 if (is_chromeos) {
9   component("ownership") {
10     sources = [
11       "mock_owner_key_util.cc",
12       "mock_owner_key_util.h",
13       "owner_key_util.cc",
14       "owner_key_util.h",
15       "owner_key_util_impl.cc",
16       "owner_key_util_impl.h",
17       "owner_settings_service.cc",
18       "owner_settings_service.h",
19     ]
21     defines = [ "OWNERSHIP_IMPLEMENTATION" ]
23     deps = [
24       "//base",
25       "//components/keyed_service/core",
26       "//components/policy/proto",
27       "//components/policy:policy_component_common",
28       "//crypto",
29     ]
31     if (enable_configuration_policy) {
32       deps += [ "//components/policy" ]
33     }
35     if (use_nss_certs) {
36       public_deps = [
37         "//crypto:platform",
38       ]
39     }
40   }
42   source_set("unit_tests") {
43     testonly = true
44     sources = [
45       "owner_key_util_impl_unittest.cc",
46     ]
48     configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
50     deps = [
51       ":ownership",
52       "//testing/gtest",
53     ]
54   }