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

Side by Side Diff: components/policy/core/common/BUILD.gn

Issue 365793002: Add lots of GN targets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months 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/policy/core/browser/BUILD.gn ('k') | components/policy/policy_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 import("//build/config/features.gni")
6
7 source_set("common") {
8 defines = [ "POLICY_COMPONENT_IMPLEMENTATION" ]
9
10 if (enable_configuration_policy) {
11 sources = [
12 "cloud/cloud_external_data_manager.cc",
13 "cloud/cloud_external_data_manager.h",
14 "cloud/cloud_policy_client.cc",
15 "cloud/cloud_policy_client.h",
16 "cloud/cloud_policy_client_registration_helper.cc",
17 "cloud/cloud_policy_client_registration_helper.h",
18 "cloud/cloud_policy_constants.cc",
19 "cloud/cloud_policy_constants.h",
20 "cloud/cloud_policy_core.cc",
21 "cloud/cloud_policy_core.h",
22 "cloud/cloud_policy_manager.cc",
23 "cloud/cloud_policy_manager.h",
24 "cloud/cloud_policy_refresh_scheduler.cc",
25 "cloud/cloud_policy_refresh_scheduler.h",
26 "cloud/cloud_policy_service.cc",
27 "cloud/cloud_policy_service.h",
28 "cloud/cloud_policy_store.cc",
29 "cloud/cloud_policy_store.h",
30 "cloud/cloud_policy_validator.cc",
31 "cloud/cloud_policy_validator.h",
32 "cloud/component_cloud_policy_service.cc",
33 "cloud/component_cloud_policy_service.h",
34 "cloud/component_cloud_policy_store.cc",
35 "cloud/component_cloud_policy_store.h",
36 "cloud/component_cloud_policy_updater.cc",
37 "cloud/component_cloud_policy_updater.h",
38 "cloud/device_management_service.cc",
39 "cloud/device_management_service.h",
40 "cloud/enterprise_metrics.cc",
41 "cloud/enterprise_metrics.h",
42 "cloud/external_policy_data_fetcher.cc",
43 "cloud/external_policy_data_fetcher.h",
44 "cloud/external_policy_data_updater.cc",
45 "cloud/external_policy_data_updater.h",
46 "cloud/policy_header_io_helper.cc",
47 "cloud/policy_header_io_helper.h",
48 "cloud/policy_header_service.cc",
49 "cloud/policy_header_service.h",
50 "cloud/rate_limiter.cc",
51 "cloud/rate_limiter.h",
52 "cloud/resource_cache.cc",
53 "cloud/resource_cache.h",
54 "cloud/system_policy_request_context.cc",
55 "cloud/system_policy_request_context.h",
56 "cloud/user_cloud_policy_manager.cc",
57 "cloud/user_cloud_policy_manager.h",
58 "cloud/user_cloud_policy_store.cc",
59 "cloud/user_cloud_policy_store.h",
60 "cloud/user_cloud_policy_store_base.cc",
61 "cloud/user_cloud_policy_store_base.h",
62 "cloud/user_info_fetcher.cc",
63 "cloud/user_info_fetcher.h",
64 "cloud/user_policy_request_context.cc",
65 "cloud/user_policy_request_context.h",
66 "async_policy_loader.cc",
67 "async_policy_loader.h",
68 "async_policy_provider.cc",
69 "async_policy_provider.h",
70 "config_dir_policy_loader.cc",
71 "config_dir_policy_loader.h",
72 "configuration_policy_provider.cc",
73 "configuration_policy_provider.h",
74 "external_data_fetcher.cc",
75 "external_data_fetcher.h",
76 "external_data_manager.h",
77 "forwarding_policy_provider.cc",
78 "forwarding_policy_provider.h",
79 "mac_util.cc",
80 "mac_util.h",
81 "policy_bundle.cc",
82 "policy_bundle.h",
83 "policy_details.h",
84 "policy_loader_ios.h",
85 "policy_loader_ios.mm",
86 "policy_loader_mac.cc",
87 "policy_loader_mac.h",
88 "policy_loader_win.cc",
89 "policy_loader_win.h",
90 "policy_load_status.cc",
91 "policy_load_status.h",
92 "policy_map.cc",
93 "policy_map.h",
94 "policy_namespace.cc",
95 "policy_namespace.h",
96 "policy_pref_names.cc",
97 "policy_pref_names.h",
98 "policy_provider_android.cc",
99 "policy_provider_android.h",
100 "policy_provider_android_delegate.h",
101 "policy_service.cc",
102 "policy_service.h",
103 "policy_service_impl.cc",
104 "policy_service_impl.h",
105 "policy_statistics_collector.cc",
106 "policy_statistics_collector.h",
107 "policy_switches.cc",
108 "policy_switches.h",
109 "policy_types.h",
110 "preferences_mac.cc",
111 "preferences_mac.h",
112 "preg_parser_win.cc",
113 "preg_parser_win.h",
114 "registry_dict_win.cc",
115 "registry_dict_win.h",
116 "schema.cc",
117 "schema.h",
118 "schema_internal.h",
119 "schema_map.cc",
120 "schema_map.h",
121 "schema_registry.cc",
122 "schema_registry.h",
123 "../../policy_export.h",
124 ]
125
126 deps = [
127 "//base:prefs",
128 "//base/third_party/dynamic_annotations",
129 "//components/json_schema",
130 "//components/policy",
131 "//components/policy/proto",
132 "//google_apis",
133 "//net",
134 "//third_party/re2",
135 "//url",
136 ]
137
138 if (is_android) {
139 sources += [ "cloud/component_cloud_policy_service_stub.cc" ]
140 sources -= [
141 "cloud/component_cloud_policy_service.cc",
142 "cloud/component_cloud_policy_store.cc",
143 "cloud/component_cloud_policy_store.h",
144 "cloud/component_cloud_policy_updater.cc",
145 "cloud/component_cloud_policy_updater.h",
146 "cloud/external_policy_data_fetcher.cc",
147 "cloud/external_policy_data_fetcher.h",
148 "cloud/external_policy_data_updater.cc",
149 "cloud/external_policy_data_updater.h",
150 "cloud/resource_cache.cc",
151 "cloud/resource_cache.h",
152 "config_dir_policy_loader.cc",
153 "config_dir_policy_loader.h",
154 "policy_load_status.cc",
155 "policy_load_status.h",
156 ]
157 }
158 if (is_chromeos) {
159 sources += [
160 "proxy_policy_provider.cc",
161 "proxy_policy_provider.h",
162 ]
163 sources -= [
164 "cloud/cloud_policy_client_registration_helper.cc",
165 "cloud/cloud_policy_client_registration_helper.h",
166 "cloud/user_cloud_policy_manager.cc",
167 "cloud/user_cloud_policy_manager.h",
168 "cloud/user_cloud_policy_store.cc",
169 "cloud/user_cloud_policy_store.h",
170 ]
171 }
172 if (!is_ios && !is_mac) {
173 sources -= [
174 "mac_util.cc",
175 "mac_util.h",
176 ]
177 }
178 } else {
179 # Some of the policy code is always enabled, so that other parts of Chrome
180 # can always interface with the PolicyService without having to #ifdef on
181 # ENABLE_CONFIGURATION_POLICY.
182 sources = [
183 "external_data_fetcher.h",
184 "external_data_fetcher.cc",
185 "external_data_manager.h",
186 "policy_map.cc",
187 "policy_map.h",
188 "policy_namespace.cc",
189 "policy_namespace.h",
190 "policy_pref_names.cc",
191 "policy_pref_names.h",
192 "policy_service.cc",
193 "policy_service.h",
194 "policy_service_stub.cc",
195 "policy_service_stub.h",
196 ]
197 deps = [
198 "//base",
199 ]
200 }
201 }
OLDNEW
« no previous file with comments | « components/policy/core/browser/BUILD.gn ('k') | components/policy/policy_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698