1 # Copyright 2013 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.
8 'target_name': 'policy_component',
9 'type': '<(component)',
11 '../base/base.gyp:base',
14 'component_strings.gyp:component_strings',
17 'POLICY_COMPONENT_IMPLEMENTATION',
23 ['configuration_policy==1', {
25 'policy/core/browser/policy_error_map.cc',
26 'policy/core/browser/policy_error_map.h',
27 'policy/core/common/async_policy_loader.cc',
28 'policy/core/common/async_policy_loader.h',
29 'policy/core/common/async_policy_provider.cc',
30 'policy/core/common/async_policy_provider.h',
31 'policy/core/common/configuration_policy_provider.cc',
32 'policy/core/common/configuration_policy_provider.h',
33 'policy/core/common/external_data_fetcher.cc',
34 'policy/core/common/external_data_fetcher.h',
35 'policy/core/common/external_data_manager.h',
36 'policy/core/common/forwarding_policy_provider.cc',
37 'policy/core/common/forwarding_policy_provider.h',
38 'policy/core/common/policy_bundle.cc',
39 'policy/core/common/policy_bundle.h',
40 'policy/core/common/policy_details.h',
41 'policy/core/common/policy_namespace.cc',
42 'policy/core/common/policy_namespace.h',
43 'policy/core/common/policy_map.cc',
44 'policy/core/common/policy_map.h',
45 'policy/core/common/policy_pref_names.cc',
46 'policy/core/common/policy_pref_names.h',
47 'policy/core/common/policy_switches.cc',
48 'policy/core/common/policy_switches.h',
49 'policy/core/common/policy_types.h',
50 'policy/core/common/preferences_mac.cc',
51 'policy/core/common/preferences_mac.h',
52 'policy/core/common/registry_dict_win.cc',
53 'policy/core/common/registry_dict_win.h',
54 'policy/core/common/schema.cc',
55 'policy/core/common/schema.h',
56 'policy/core/common/schema_internal.h',
57 'policy/core/common/schema_map.cc',
58 'policy/core/common/schema_map.h',
59 'policy/core/common/schema_registry.cc',
60 'policy/core/common/schema_registry.h',
61 'policy/policy_export.h',
66 'policy/core/common/async_policy_loader.cc',
67 'policy/core/common/async_policy_loader.h',
68 'policy/core/common/async_policy_provider.cc',
69 'policy/core/common/async_policy_provider.h',
73 }, { # configuration_policy==0
74 # Some of the policy code is always enabled, so that other parts of
75 # Chrome can always interface with the PolicyService without having
76 # to #ifdef on ENABLE_CONFIGURATION_POLICY.
78 'policy/core/common/external_data_fetcher.h',
79 'policy/core/common/external_data_fetcher.cc',
80 'policy/core/common/external_data_manager.h',
81 'policy/core/common/policy_map.cc',
82 'policy/core/common/policy_map.h',
83 'policy/core/common/policy_namespace.cc',
84 'policy/core/common/policy_namespace.h',
91 ['configuration_policy==1', {
94 'target_name': 'policy_component_test_support',
95 'type': 'static_library',
96 # This must be undefined so that POLICY_EXPORT works correctly in
97 # the static_library build.
99 'POLICY_COMPONENT_IMPLEMENTATION',
103 '../testing/gmock.gyp:gmock',
104 '../testing/gtest.gyp:gtest',
110 'policy/core/common/configuration_policy_provider_test.cc',
111 'policy/core/common/configuration_policy_provider_test.h',
112 'policy/core/common/mock_configuration_policy_provider.cc',
113 'policy/core/common/mock_configuration_policy_provider.h',
114 'policy/core/common/preferences_mock_mac.cc',
115 'policy/core/common/preferences_mock_mac.h',