| 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/crypto.gni") | |
| 6 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 7 | 6 |
| 8 component("ownership") { | 7 component("ownership") { |
| 9 sources = [ | 8 sources = [ |
| 10 "mock_owner_key_util.cc", | 9 "mock_owner_key_util.cc", |
| 11 "mock_owner_key_util.h", | 10 "mock_owner_key_util.h", |
| 12 "owner_key_util.cc", | 11 "owner_key_util.cc", |
| 13 "owner_key_util.h", | 12 "owner_key_util.h", |
| 14 "owner_key_util_impl.cc", | 13 "owner_key_util_impl.cc", |
| 15 "owner_key_util_impl.h", | 14 "owner_key_util_impl.h", |
| 16 "owner_settings_service.cc", | 15 "owner_settings_service.cc", |
| 17 "owner_settings_service.h", | 16 "owner_settings_service.h", |
| 18 ] | 17 ] |
| 19 | 18 |
| 20 defines = [ "OWNERSHIP_IMPLEMENTATION" ] | 19 defines = [ "OWNERSHIP_IMPLEMENTATION" ] |
| 21 | 20 |
| 22 deps = [ | 21 deps = [ |
| 23 "//base", | 22 "//base", |
| 24 "//components/keyed_service/core", | 23 "//components/keyed_service/core", |
| 25 "//components/policy/proto", | 24 "//components/policy/proto", |
| 26 "//components/policy:policy_component_common", | 25 "//components/policy:policy_component_common", |
| 27 "//crypto", | 26 "//crypto", |
| 28 ] | 27 ] |
| 29 | 28 |
| 30 if (enable_configuration_policy) { | 29 if (enable_configuration_policy) { |
| 31 deps += [ "//components/policy" ] | 30 deps += [ "//components/policy" ] |
| 32 } | 31 } |
| 33 | |
| 34 if (use_nss_certs) { | |
| 35 deps += [ "//crypto:platform" ] | |
| 36 } | |
| 37 } | 32 } |
| 38 | 33 |
| 39 source_set("unit_tests") { | 34 source_set("unit_tests") { |
| 40 testonly = true | 35 testonly = true |
| 41 sources = [ | 36 sources = [ |
| 42 "owner_key_util_impl_unittest.cc", | 37 "owner_key_util_impl_unittest.cc", |
| 43 ] | 38 ] |
| 44 | 39 |
| 45 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 40 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 46 | 41 |
| 47 deps = [ | 42 deps = [ |
| 48 ":ownership", | 43 ":ownership", |
| 49 "//testing/gtest", | 44 "//testing/gtest", |
| 50 ] | 45 ] |
| 51 } | 46 } |
| OLD | NEW |