Update V8 to version 4.6.62.
[chromium-blink-merge.git] / components / policy / policy_common.gypi
blobd2468baca2175685a20f8c5e32618fd5bd4c58f9
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
3 # found in the LICENSE file.
6   # GN version: //components/policy/core/common
7   'dependencies': [
8     '../base/base.gyp:base',
9   ],
10   'defines': [
11     'POLICY_COMPONENT_IMPLEMENTATION',
12   ],
13   'include_dirs': [
14     '..',
15   ],
16   'conditions': [
17     ['configuration_policy==1', {
18       'dependencies': [
19         '../base/base.gyp:base_prefs',
20         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
21         '../google_apis/google_apis.gyp:google_apis',
22         '../net/net.gyp:net',
23         '../third_party/re2/re2.gyp:re2',
24         '../url/url.gyp:url_lib',
25         'cloud_policy_proto',
26         'json_schema',
27         'policy',
28       ],
29       'sources': [
30         'core/common/async_policy_loader.cc',
31         'core/common/async_policy_loader.h',
32         'core/common/async_policy_provider.cc',
33         'core/common/async_policy_provider.h',
34         'core/common/cloud/cloud_external_data_manager.cc',
35         'core/common/cloud/cloud_external_data_manager.h',
36         'core/common/cloud/cloud_policy_client.cc',
37         'core/common/cloud/cloud_policy_client.h',
38         'core/common/cloud/cloud_policy_client_registration_helper.cc',
39         'core/common/cloud/cloud_policy_client_registration_helper.h',
40         'core/common/cloud/cloud_policy_constants.cc',
41         'core/common/cloud/cloud_policy_constants.h',
42         'core/common/cloud/cloud_policy_core.cc',
43         'core/common/cloud/cloud_policy_core.h',
44         'core/common/cloud/cloud_policy_manager.cc',
45         'core/common/cloud/cloud_policy_manager.h',
46         'core/common/cloud/cloud_policy_refresh_scheduler.cc',
47         'core/common/cloud/cloud_policy_refresh_scheduler.h',
48         'core/common/cloud/cloud_policy_service.cc',
49         'core/common/cloud/cloud_policy_service.h',
50         'core/common/cloud/cloud_policy_store.cc',
51         'core/common/cloud/cloud_policy_store.h',
52         'core/common/cloud/cloud_policy_validator.cc',
53         'core/common/cloud/cloud_policy_validator.h',
54         'core/common/cloud/component_cloud_policy_service.cc',
55         'core/common/cloud/component_cloud_policy_service.h',
56         'core/common/cloud/component_cloud_policy_store.cc',
57         'core/common/cloud/component_cloud_policy_store.h',
58         'core/common/cloud/component_cloud_policy_updater.cc',
59         'core/common/cloud/component_cloud_policy_updater.h',
60         'core/common/cloud/device_management_service.cc',
61         'core/common/cloud/device_management_service.h',
62         'core/common/cloud/enterprise_metrics.cc',
63         'core/common/cloud/enterprise_metrics.h',
64         'core/common/cloud/external_policy_data_fetcher.cc',
65         'core/common/cloud/external_policy_data_fetcher.h',
66         'core/common/cloud/external_policy_data_updater.cc',
67         'core/common/cloud/external_policy_data_updater.h',
68         'core/common/cloud/policy_header_io_helper.cc',
69         'core/common/cloud/policy_header_io_helper.h',
70         'core/common/cloud/policy_header_service.cc',
71         'core/common/cloud/policy_header_service.h',
72         'core/common/cloud/resource_cache.cc',
73         'core/common/cloud/resource_cache.h',
74         'core/common/cloud/system_policy_request_context.cc',
75         'core/common/cloud/system_policy_request_context.h',
76         'core/common/cloud/user_cloud_policy_manager.cc',
77         'core/common/cloud/user_cloud_policy_manager.h',
78         'core/common/cloud/user_cloud_policy_store.cc',
79         'core/common/cloud/user_cloud_policy_store.h',
80         'core/common/cloud/user_cloud_policy_store_base.cc',
81         'core/common/cloud/user_cloud_policy_store_base.h',
82         'core/common/cloud/user_info_fetcher.cc',
83         'core/common/cloud/user_info_fetcher.h',
84         'core/common/config_dir_policy_loader.cc',
85         'core/common/config_dir_policy_loader.h',
86         'core/common/configuration_policy_provider.cc',
87         'core/common/configuration_policy_provider.h',
88         'core/common/external_data_fetcher.cc',
89         'core/common/external_data_fetcher.h',
90         'core/common/external_data_manager.h',
91         'core/common/mac_util.cc',
92         'core/common/mac_util.h',
93         'core/common/policy_bundle.cc',
94         'core/common/policy_bundle.h',
95         'core/common/policy_details.h',
96         'core/common/policy_load_status.cc',
97         'core/common/policy_load_status.h',
98         'core/common/policy_loader_ios.h',
99         'core/common/policy_loader_ios.mm',
100         'core/common/policy_loader_mac.h',
101         'core/common/policy_loader_mac.mm',
102         'core/common/policy_loader_win.cc',
103         'core/common/policy_loader_win.h',
104         'core/common/policy_map.cc',
105         'core/common/policy_map.h',
106         'core/common/policy_namespace.cc',
107         'core/common/policy_namespace.h',
108         'core/common/policy_pref_names.cc',
109         'core/common/policy_pref_names.h',
110         'core/common/policy_service.cc',
111         'core/common/policy_service.h',
112         'core/common/policy_service_impl.cc',
113         'core/common/policy_service_impl.h',
114         'core/common/policy_statistics_collector.cc',
115         'core/common/policy_statistics_collector.h',
116         'core/common/policy_switches.cc',
117         'core/common/policy_switches.h',
118         'core/common/policy_types.h',
119         'core/common/preferences_mac.cc',
120         'core/common/preferences_mac.h',
121         'core/common/preg_parser_win.cc',
122         'core/common/preg_parser_win.h',
123         'core/common/registry_dict_win.cc',
124         'core/common/registry_dict_win.h',
125         'core/common/remote_commands/remote_command_job.cc',
126         'core/common/remote_commands/remote_command_job.h',
127         'core/common/remote_commands/remote_commands_factory.cc',
128         'core/common/remote_commands/remote_commands_factory.h',
129         'core/common/remote_commands/remote_commands_queue.cc',
130         'core/common/remote_commands/remote_commands_queue.h',
131         'core/common/remote_commands/remote_commands_service.cc',
132         'core/common/remote_commands/remote_commands_service.h',
133         'core/common/schema.cc',
134         'core/common/schema.h',
135         'core/common/schema_internal.h',
136         'core/common/schema_map.cc',
137         'core/common/schema_map.h',
138         'core/common/schema_registry.cc',
139         'core/common/schema_registry.h',
140         'core/common/schema_registry_tracking_policy_provider.cc',
141         'core/common/schema_registry_tracking_policy_provider.h',
142         'policy_export.h',
143       ],
144       'conditions': [
145         ['OS=="android"', {
146           'sources!': [
147             'core/common/async_policy_loader.cc',
148             'core/common/async_policy_loader.h',
149             'core/common/async_policy_provider.cc',
150             'core/common/async_policy_provider.h',
151           ],
152         }],
153         ['OS=="android" or OS=="ios"', {
154           'sources': [
155             'core/common/cloud/component_cloud_policy_service_stub.cc',
156           ],
157           'sources!': [
158             'core/common/cloud/component_cloud_policy_service.cc',
159             'core/common/cloud/component_cloud_policy_store.cc',
160             'core/common/cloud/component_cloud_policy_store.h',
161             'core/common/cloud/component_cloud_policy_updater.cc',
162             'core/common/cloud/component_cloud_policy_updater.h',
163             'core/common/cloud/external_policy_data_fetcher.cc',
164             'core/common/cloud/external_policy_data_fetcher.h',
165             'core/common/cloud/external_policy_data_updater.cc',
166             'core/common/cloud/external_policy_data_updater.h',
167             'core/common/cloud/resource_cache.cc',
168             'core/common/cloud/resource_cache.h',
169             'core/common/config_dir_policy_loader.cc',
170             'core/common/config_dir_policy_loader.h',
171             'core/common/policy_load_status.cc',
172             'core/common/policy_load_status.h',
173           ],
174         }],
175         ['chromeos==1', {
176           'sources': [
177             'core/common/proxy_policy_provider.cc',
178             'core/common/proxy_policy_provider.h',
179           ],
180           'sources!': [
181             'core/common/cloud/cloud_policy_client_registration_helper.cc',
182             'core/common/cloud/cloud_policy_client_registration_helper.h',
183             'core/common/cloud/user_cloud_policy_manager.cc',
184             'core/common/cloud/user_cloud_policy_manager.h',
185             'core/common/cloud/user_cloud_policy_store.cc',
186             'core/common/cloud/user_cloud_policy_store.h',
187           ],
188         }],
189         ['OS!="ios" and OS!="mac"', {
190           'sources!': [
191             'core/common/mac_util.cc',
192             'core/common/mac_util.h',
193           ],
194         }],
195       ],
196     }, {  # configuration_policy==0
197       # Some of the policy code is always enabled, so that other parts of
198       # Chrome can always interface with the PolicyService without having
199       # to #ifdef on ENABLE_CONFIGURATION_POLICY.
200       'sources': [
201         'core/common/external_data_fetcher.cc',
202         'core/common/external_data_fetcher.h',
203         'core/common/external_data_manager.h',
204         'core/common/policy_map.cc',
205         'core/common/policy_map.h',
206         'core/common/policy_namespace.cc',
207         'core/common/policy_namespace.h',
208         'core/common/policy_pref_names.cc',
209         'core/common/policy_pref_names.h',
210         'core/common/policy_service.cc',
211         'core/common/policy_service.h',
212         'core/common/policy_service_stub.cc',
213         'core/common/policy_service_stub.h',
214       ],
215     }],
216   ],