OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
| 5 import("//build/config/features.gni") |
| 6 |
5 component("ownership") { | 7 component("ownership") { |
6 sources = [ | 8 sources = [ |
7 "mock_owner_key_util.cc", | 9 "mock_owner_key_util.cc", |
8 "mock_owner_key_util.h", | 10 "mock_owner_key_util.h", |
9 "owner_key_util.cc", | 11 "owner_key_util.cc", |
10 "owner_key_util.h", | 12 "owner_key_util.h", |
11 "owner_key_util_impl.cc", | 13 "owner_key_util_impl.cc", |
12 "owner_key_util_impl.h", | 14 "owner_key_util_impl.h", |
13 "owner_settings_service.cc", | 15 "owner_settings_service.cc", |
14 "owner_settings_service.h", | 16 "owner_settings_service.h", |
15 ] | 17 ] |
16 | 18 |
17 defines = [ "OWNERSHIP_IMPLEMENTATION" ] | 19 defines = [ "OWNERSHIP_IMPLEMENTATION" ] |
18 | 20 |
19 deps = [ | 21 deps = [ |
20 "//base", | 22 "//base", |
21 "//components/keyed_service/core", | 23 "//components/keyed_service/core", |
22 "//components/policy", | |
23 "//components/policy/proto", | 24 "//components/policy/proto", |
24 "//components/policy:policy_component_common", | 25 "//components/policy:policy_component_common", |
25 "//crypto", | 26 "//crypto", |
26 ] | 27 ] |
| 28 |
| 29 if (enable_configuration_policy) { |
| 30 deps += [ "//components/policy" ] |
| 31 } |
27 } | 32 } |
28 | 33 |
29 source_set("unit_tests") { | 34 source_set("unit_tests") { |
30 testonly = true | 35 testonly = true |
31 sources = [ | 36 sources = [ |
32 "owner_key_util_impl_unittest.cc", | 37 "owner_key_util_impl_unittest.cc", |
33 ] | 38 ] |
34 | 39 |
35 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 40 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
36 | 41 |
37 deps = [ | 42 deps = [ |
38 ":ownership", | 43 ":ownership", |
39 "//testing/gtest", | 44 "//testing/gtest", |
40 ] | 45 ] |
41 } | 46 } |
OLD | NEW |