Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Side by Side Diff: components/policy.gypi

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/components_tests.gyp ('k') | components/policy/core/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 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 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 { 5 {
6 'targets': [ 6 'targets': [
7 { 7 {
8 'target_name': 'policy_component', 8 'target_name': 'policy_component',
9 'type': '<(component)', 9 'type': '<(component)',
10 'dependencies': [ 10 'dependencies': [
11 '../base/base.gyp:base', 11 '../base/base.gyp:base',
12 '../ui/ui.gyp:ui',
13 'json_schema',
14 'component_strings.gyp:component_strings',
15 ], 12 ],
16 'defines': [ 13 'defines': [
17 'POLICY_COMPONENT_IMPLEMENTATION', 14 'POLICY_COMPONENT_IMPLEMENTATION',
18 ], 15 ],
19 'include_dirs': [ 16 'include_dirs': [
20 '..', 17 '..',
21 ], 18 ],
22 'conditions': [ 19 'conditions': [
23 ['configuration_policy==1', { 20 ['configuration_policy==1', {
21 'dependencies': [
22 '../base/base.gyp:base_prefs',
23 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations',
24 # TODO(joaodasilva): remove this dependency on the user policy proto buf.
25 '../chrome/app/policy/cloud_policy_codegen.gyp:policy',
26 '../google_apis/google_apis.gyp:google_apis',
27 '../ui/ui.gyp:ui',
28 '../url/url.gyp:url_lib',
29 'component_strings.gyp:component_strings',
30 'cloud_policy_proto',
31 'json_schema',
32 ],
24 'sources': [ 33 'sources': [
34 'policy/core/browser/cloud/message_util.cc',
35 'policy/core/browser/cloud/message_util.h',
36 'policy/core/browser/configuration_policy_handler.cc',
37 'policy/core/browser/configuration_policy_handler.h',
38 'policy/core/browser/configuration_policy_handler_list.cc',
39 'policy/core/browser/configuration_policy_handler_list.h',
40 'policy/core/browser/configuration_policy_pref_store.cc',
41 'policy/core/browser/configuration_policy_pref_store.h',
25 'policy/core/browser/policy_error_map.cc', 42 'policy/core/browser/policy_error_map.cc',
26 'policy/core/browser/policy_error_map.h', 43 'policy/core/browser/policy_error_map.h',
44 'policy/core/common/cloud/cloud_external_data_manager.cc',
45 'policy/core/common/cloud/cloud_external_data_manager.h',
46 'policy/core/common/cloud/cloud_policy_client.cc',
47 'policy/core/common/cloud/cloud_policy_client.h',
48 'policy/core/common/cloud/cloud_policy_client_registration_helper.cc ',
49 'policy/core/common/cloud/cloud_policy_client_registration_helper.h' ,
50 'policy/core/common/cloud/cloud_policy_constants.cc',
51 'policy/core/common/cloud/cloud_policy_constants.h',
52 'policy/core/common/cloud/cloud_policy_core.cc',
53 'policy/core/common/cloud/cloud_policy_core.h',
54 'policy/core/common/cloud/cloud_policy_manager.cc',
55 'policy/core/common/cloud/cloud_policy_manager.h',
56 'policy/core/common/cloud/cloud_policy_refresh_scheduler.cc',
57 'policy/core/common/cloud/cloud_policy_refresh_scheduler.h',
58 'policy/core/common/cloud/cloud_policy_service.cc',
59 'policy/core/common/cloud/cloud_policy_service.h',
60 'policy/core/common/cloud/cloud_policy_store.cc',
61 'policy/core/common/cloud/cloud_policy_store.h',
62 'policy/core/common/cloud/cloud_policy_validator.cc',
63 'policy/core/common/cloud/cloud_policy_validator.h',
64 'policy/core/common/cloud/component_cloud_policy_service.cc',
65 'policy/core/common/cloud/component_cloud_policy_service.h',
66 'policy/core/common/cloud/component_cloud_policy_store.cc',
67 'policy/core/common/cloud/component_cloud_policy_store.h',
68 'policy/core/common/cloud/component_cloud_policy_updater.cc',
69 'policy/core/common/cloud/component_cloud_policy_updater.h',
70 'policy/core/common/cloud/device_management_service.cc',
71 'policy/core/common/cloud/device_management_service.h',
72 'policy/core/common/cloud/enterprise_metrics.cc',
73 'policy/core/common/cloud/enterprise_metrics.h',
74 'policy/core/common/cloud/external_policy_data_fetcher.cc',
75 'policy/core/common/cloud/external_policy_data_fetcher.h',
76 'policy/core/common/cloud/external_policy_data_updater.cc',
77 'policy/core/common/cloud/external_policy_data_updater.h',
78 'policy/core/common/cloud/rate_limiter.cc',
79 'policy/core/common/cloud/rate_limiter.h',
80 'policy/core/common/cloud/resource_cache.cc',
81 'policy/core/common/cloud/resource_cache.h',
82 'policy/core/common/cloud/system_policy_request_context.cc',
83 'policy/core/common/cloud/system_policy_request_context.h',
84 'policy/core/common/cloud/user_info_fetcher.cc',
85 'policy/core/common/cloud/user_info_fetcher.h',
86 'policy/core/common/cloud/user_policy_request_context.cc',
87 'policy/core/common/cloud/user_policy_request_context.h',
27 'policy/core/common/async_policy_loader.cc', 88 'policy/core/common/async_policy_loader.cc',
28 'policy/core/common/async_policy_loader.h', 89 'policy/core/common/async_policy_loader.h',
29 'policy/core/common/async_policy_provider.cc', 90 'policy/core/common/async_policy_provider.cc',
30 'policy/core/common/async_policy_provider.h', 91 'policy/core/common/async_policy_provider.h',
92 'policy/core/common/config_dir_policy_loader.cc',
93 'policy/core/common/config_dir_policy_loader.h',
31 'policy/core/common/configuration_policy_provider.cc', 94 'policy/core/common/configuration_policy_provider.cc',
32 'policy/core/common/configuration_policy_provider.h', 95 'policy/core/common/configuration_policy_provider.h',
33 'policy/core/common/external_data_fetcher.cc', 96 'policy/core/common/external_data_fetcher.cc',
34 'policy/core/common/external_data_fetcher.h', 97 'policy/core/common/external_data_fetcher.h',
35 'policy/core/common/external_data_manager.h', 98 'policy/core/common/external_data_manager.h',
36 'policy/core/common/forwarding_policy_provider.cc', 99 'policy/core/common/forwarding_policy_provider.cc',
37 'policy/core/common/forwarding_policy_provider.h', 100 'policy/core/common/forwarding_policy_provider.h',
38 'policy/core/common/policy_bundle.cc', 101 'policy/core/common/policy_bundle.cc',
39 'policy/core/common/policy_bundle.h', 102 'policy/core/common/policy_bundle.h',
40 'policy/core/common/policy_details.h', 103 'policy/core/common/policy_details.h',
104 'policy/core/common/policy_loader_mac.cc',
105 'policy/core/common/policy_loader_mac.h',
106 'policy/core/common/policy_loader_win.cc',
107 'policy/core/common/policy_loader_win.h',
108 'policy/core/common/policy_load_status.cc',
109 'policy/core/common/policy_load_status.h',
110 'policy/core/common/policy_map.cc',
111 'policy/core/common/policy_map.h',
41 'policy/core/common/policy_namespace.cc', 112 'policy/core/common/policy_namespace.cc',
42 'policy/core/common/policy_namespace.h', 113 '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', 114 'policy/core/common/policy_pref_names.cc',
46 'policy/core/common/policy_pref_names.h', 115 'policy/core/common/policy_pref_names.h',
116 'policy/core/common/policy_service.cc',
117 'policy/core/common/policy_service.h',
118 'policy/core/common/policy_service_impl.cc',
119 'policy/core/common/policy_service_impl.h',
120 'policy/core/common/policy_statistics_collector.cc',
121 'policy/core/common/policy_statistics_collector.h',
47 'policy/core/common/policy_switches.cc', 122 'policy/core/common/policy_switches.cc',
48 'policy/core/common/policy_switches.h', 123 'policy/core/common/policy_switches.h',
49 'policy/core/common/policy_types.h', 124 'policy/core/common/policy_types.h',
50 'policy/core/common/preferences_mac.cc', 125 'policy/core/common/preferences_mac.cc',
51 'policy/core/common/preferences_mac.h', 126 'policy/core/common/preferences_mac.h',
127 'policy/core/common/preg_parser_win.cc',
128 'policy/core/common/preg_parser_win.h',
52 'policy/core/common/registry_dict_win.cc', 129 'policy/core/common/registry_dict_win.cc',
53 'policy/core/common/registry_dict_win.h', 130 'policy/core/common/registry_dict_win.h',
54 'policy/core/common/schema.cc', 131 'policy/core/common/schema.cc',
55 'policy/core/common/schema.h', 132 'policy/core/common/schema.h',
56 'policy/core/common/schema_internal.h', 133 'policy/core/common/schema_internal.h',
57 'policy/core/common/schema_map.cc', 134 'policy/core/common/schema_map.cc',
58 'policy/core/common/schema_map.h', 135 'policy/core/common/schema_map.h',
59 'policy/core/common/schema_registry.cc', 136 'policy/core/common/schema_registry.cc',
60 'policy/core/common/schema_registry.h', 137 'policy/core/common/schema_registry.h',
61 'policy/policy_export.h', 138 'policy/policy_export.h',
62 ], 139 ],
63 'conditions': [ 140 'conditions': [
64 ['OS=="android"', { 141 ['OS=="android"', {
142 'sources': [
143 'policy/core/common/cloud/component_cloud_policy_service_stub.cc ',
144 ],
65 'sources!': [ 145 'sources!': [
66 'policy/core/common/async_policy_loader.cc', 146 'policy/core/common/async_policy_loader.cc',
67 'policy/core/common/async_policy_loader.h', 147 'policy/core/common/async_policy_loader.h',
68 'policy/core/common/async_policy_provider.cc', 148 'policy/core/common/async_policy_provider.cc',
69 'policy/core/common/async_policy_provider.h', 149 'policy/core/common/async_policy_provider.h',
150 'policy/core/common/cloud/component_cloud_policy_service.cc',
151 'policy/core/common/cloud/component_cloud_policy_store.cc',
152 'policy/core/common/cloud/component_cloud_policy_store.h',
153 'policy/core/common/cloud/component_cloud_policy_updater.cc',
154 'policy/core/common/cloud/component_cloud_policy_updater.h',
155 'policy/core/common/cloud/external_policy_data_fetcher.cc',
156 'policy/core/common/cloud/external_policy_data_fetcher.h',
157 'policy/core/common/cloud/external_policy_data_updater.cc',
158 'policy/core/common/cloud/external_policy_data_updater.h',
159 'policy/core/common/cloud/resource_cache.cc',
160 'policy/core/common/cloud/resource_cache.h',
161 'policy/core/common/config_dir_policy_loader.cc',
162 'policy/core/common/config_dir_policy_loader.h',
163 'policy/core/common/policy_load_status.cc',
164 'policy/core/common/policy_load_status.h',
165 ],
166 }],
167 ['chromeos==1', {
168 'sources!': [
169 'policy/core/common/cloud/cloud_policy_client_registration_helpe r.cc',
170 'policy/core/common/cloud/cloud_policy_client_registration_helpe r.h',
70 ], 171 ],
71 }], 172 }],
72 ], 173 ],
73 }, { # configuration_policy==0 174 }, { # configuration_policy==0
74 # Some of the policy code is always enabled, so that other parts of 175 # Some of the policy code is always enabled, so that other parts of
75 # Chrome can always interface with the PolicyService without having 176 # Chrome can always interface with the PolicyService without having
76 # to #ifdef on ENABLE_CONFIGURATION_POLICY. 177 # to #ifdef on ENABLE_CONFIGURATION_POLICY.
77 'sources': [ 178 'sources': [
78 'policy/core/common/external_data_fetcher.h', 179 'policy/core/common/external_data_fetcher.h',
79 'policy/core/common/external_data_fetcher.cc', 180 'policy/core/common/external_data_fetcher.cc',
80 'policy/core/common/external_data_manager.h', 181 'policy/core/common/external_data_manager.h',
81 'policy/core/common/policy_map.cc', 182 'policy/core/common/policy_map.cc',
82 'policy/core/common/policy_map.h', 183 'policy/core/common/policy_map.h',
83 'policy/core/common/policy_namespace.cc', 184 'policy/core/common/policy_namespace.cc',
84 'policy/core/common/policy_namespace.h', 185 'policy/core/common/policy_namespace.h',
186 'policy/core/common/policy_service.cc',
187 'policy/core/common/policy_service.h',
188 'policy/core/common/policy_service_stub.cc',
189 'policy/core/common/policy_service_stub.h',
85 ], 190 ],
86 }], 191 }],
87 ], 192 ],
88 }, 193 },
194 {
195 # Protobuf compiler / generator for cloud policy protocol buffers.
196 # TODO(joaodasilva): move these protobufs outside of chrome/,
197 # and update their output paths too.
198 'target_name': 'cloud_policy_proto',
199 'type': 'static_library',
200 'sources': [
201 '../chrome/browser/policy/proto/cloud/chrome_extension_policy.proto',
202 '../chrome/browser/policy/proto/cloud/device_management_backend.proto',
203 '../chrome/browser/policy/proto/cloud/device_management_local.proto',
204 ],
205 'variables': {
206 'proto_in_dir': '../chrome/browser/policy/proto/cloud',
207 'proto_out_dir': 'chrome/browser/policy/proto/cloud',
208 },
209 'includes': [ '../build/protoc.gypi' ]
210 },
89 ], 211 ],
90 'conditions': [ 212 'conditions': [
91 ['configuration_policy==1', { 213 ['configuration_policy==1', {
92 'targets': [ 214 'targets': [
93 { 215 {
94 'target_name': 'policy_component_test_support', 216 'target_name': 'policy_component_test_support',
95 'type': 'static_library', 217 'type': 'static_library',
96 # This must be undefined so that POLICY_EXPORT works correctly in 218 # This must be undefined so that POLICY_EXPORT works correctly in
97 # the static_library build. 219 # the static_library build.
98 'defines!': [ 220 'defines!': [
99 'POLICY_COMPONENT_IMPLEMENTATION', 221 'POLICY_COMPONENT_IMPLEMENTATION',
100 ], 222 ],
101 'dependencies': [ 223 'dependencies': [
224 # TODO(joaodasilva): remove this dependency.
225 '../chrome/app/policy/cloud_policy_codegen.gyp:policy_test_support',
226 'cloud_policy_proto',
102 'policy_component', 227 'policy_component',
103 '../testing/gmock.gyp:gmock', 228 '../testing/gmock.gyp:gmock',
104 '../testing/gtest.gyp:gtest', 229 '../testing/gtest.gyp:gtest',
105 ], 230 ],
106 'include_dirs': [ 231 'include_dirs': [
107 '..', 232 '..',
108 ], 233 ],
109 'sources': [ 234 'sources': [
235 'policy/core/common/cloud/mock_cloud_external_data_manager.cc',
236 'policy/core/common/cloud/mock_cloud_external_data_manager.h',
237 'policy/core/common/cloud/mock_cloud_policy_client.cc',
238 'policy/core/common/cloud/mock_cloud_policy_client.h',
239 'policy/core/common/cloud/mock_cloud_policy_store.cc',
240 'policy/core/common/cloud/mock_cloud_policy_store.h',
241 'policy/core/common/cloud/mock_device_management_service.cc',
242 'policy/core/common/cloud/mock_device_management_service.h',
243 'policy/core/common/cloud/policy_builder.cc',
244 'policy/core/common/cloud/policy_builder.h',
110 'policy/core/common/configuration_policy_provider_test.cc', 245 'policy/core/common/configuration_policy_provider_test.cc',
111 'policy/core/common/configuration_policy_provider_test.h', 246 'policy/core/common/configuration_policy_provider_test.h',
112 'policy/core/common/mock_configuration_policy_provider.cc', 247 'policy/core/common/mock_configuration_policy_provider.cc',
113 'policy/core/common/mock_configuration_policy_provider.h', 248 'policy/core/common/mock_configuration_policy_provider.h',
249 'policy/core/common/mock_policy_service.cc',
250 'policy/core/common/mock_policy_service.h',
251 'policy/core/common/policy_test_utils.cc',
252 'policy/core/common/policy_test_utils.h',
114 'policy/core/common/preferences_mock_mac.cc', 253 'policy/core/common/preferences_mock_mac.cc',
115 'policy/core/common/preferences_mock_mac.h', 254 'policy/core/common/preferences_mock_mac.h',
116 ], 255 ],
117 }, 256 },
118 ], 257 ],
119 }], 258 }],
120 ], 259 ],
121 } 260 }
OLDNEW
« no previous file with comments | « components/components_tests.gyp ('k') | components/policy/core/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698