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