Upload upstream chromium 67.0.3396
[platform/framework/web/chromium-efl.git] / components / ownership / BUILD.gn
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
5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni")
7
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     ]
20
21     defines = [ "OWNERSHIP_IMPLEMENTATION" ]
22
23     deps = [
24       "//base",
25       "//components/keyed_service/core",
26       "//components/policy:generated",
27       "//components/policy/core/common",
28       "//components/policy/proto",
29       "//crypto",
30     ]
31
32     if (use_nss_certs) {
33       public_deps = [
34         "//crypto:platform",
35       ]
36     }
37   }
38
39   source_set("unit_tests") {
40     testonly = true
41     sources = [
42       "owner_key_util_impl_unittest.cc",
43     ]
44
45     configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
46
47     deps = [
48       ":ownership",
49       "//base",
50       "//testing/gtest",
51     ]
52   }
53 }