| OLD | NEW |
| 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 'includes': [ | 6 'includes': [ |
| 7 # Included to get 'mac_bundle_id' and other variables. | 7 # Included to get 'mac_bundle_id' and other variables. |
| 8 '../build/chrome_settings.gypi', | 8 '../build/chrome_settings.gypi', |
| 9 ], | 9 ], |
| 10 'variables': { | 10 'variables': { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 # This is the "full" protobuf, which defines one protobuf message per | 23 # This is the "full" protobuf, which defines one protobuf message per |
| 24 # policy. It is also the format currently used by the server. | 24 # policy. It is also the format currently used by the server. |
| 25 'chrome_settings_proto_path': | 25 'chrome_settings_proto_path': |
| 26 '<(policy_out_dir)/policy/chrome_settings.proto', | 26 '<(policy_out_dir)/policy/chrome_settings.proto', |
| 27 # This protobuf is equivalent to chrome_settings.proto but shares messages | 27 # This protobuf is equivalent to chrome_settings.proto but shares messages |
| 28 # for policies of the same type, so that less classes have to be generated | 28 # for policies of the same type, so that less classes have to be generated |
| 29 # and compiled. | 29 # and compiled. |
| 30 'cloud_policy_proto_path': | 30 'cloud_policy_proto_path': |
| 31 '<(policy_out_dir)/policy/cloud_policy.proto', | 31 '<(policy_out_dir)/policy/cloud_policy.proto', |
| 32 }, | 32 }, |
| 33 'targets': [ | 33 'conditions': [ |
| 34 { | 34 ['component=="static_library"', { |
| 35 'target_name': 'policy_component', | 35 'targets': [ |
| 36 'type': '<(component)', | 36 { |
| 37 'dependencies': [ | 37 'target_name': 'policy_component', |
| 38 '../base/base.gyp:base', | 38 'type': 'none', |
| 39 'dependencies': [ |
| 40 'policy_component_common', |
| 41 'policy_component_browser', |
| 42 ], |
| 43 }, |
| 44 { |
| 45 'target_name': 'policy_component_common', |
| 46 'type': 'static_library', |
| 47 'includes': [ |
| 48 'policy/policy_common.gypi', |
| 49 ], |
| 50 }, |
| 51 { |
| 52 'target_name': 'policy_component_browser', |
| 53 'type': 'static_library', |
| 54 'dependencies': [ |
| 55 'policy_component_common', |
| 56 ], |
| 57 'includes': [ |
| 58 'policy/policy_browser.gypi', |
| 59 ], |
| 60 }, |
| 39 ], | 61 ], |
| 40 'defines': [ | 62 }, { # component=="static_library" |
| 41 'POLICY_COMPONENT_IMPLEMENTATION', | 63 'targets': [ |
| 64 { |
| 65 'target_name': 'policy_component', |
| 66 'type': 'shared_library', |
| 67 'includes': [ |
| 68 'policy/policy_common.gypi', |
| 69 'policy/policy_browser.gypi', |
| 70 ], |
| 71 }, |
| 72 { |
| 73 'target_name': 'policy_component_common', |
| 74 'type': 'none', |
| 75 'dependencies': [ |
| 76 'policy_component', |
| 77 ], |
| 78 }, |
| 79 { |
| 80 'target_name': 'policy_component_browser', |
| 81 'type': 'none', |
| 82 'dependencies': [ |
| 83 'policy_component', |
| 84 ], |
| 85 }, |
| 42 ], | 86 ], |
| 43 'include_dirs': [ | 87 }], |
| 44 '..', | |
| 45 ], | |
| 46 'conditions': [ | |
| 47 ['configuration_policy==1', { | |
| 48 'dependencies': [ | |
| 49 '../base/base.gyp:base_prefs', | |
| 50 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations', | |
| 51 '../google_apis/google_apis.gyp:google_apis', | |
| 52 '../ui/ui.gyp:ui', | |
| 53 '../url/url.gyp:url_lib', | |
| 54 'component_strings.gyp:component_strings', | |
| 55 'cloud_policy_proto', | |
| 56 'json_schema', | |
| 57 'policy', | |
| 58 'url_matcher', | |
| 59 'user_prefs', | |
| 60 ], | |
| 61 'sources': [ | |
| 62 'policy/core/browser/cloud/message_util.cc', | |
| 63 'policy/core/browser/cloud/message_util.h', | |
| 64 'policy/core/browser/configuration_policy_handler.cc', | |
| 65 'policy/core/browser/configuration_policy_handler.h', | |
| 66 'policy/core/browser/configuration_policy_handler_list.cc', | |
| 67 'policy/core/browser/configuration_policy_handler_list.h', | |
| 68 'policy/core/browser/configuration_policy_pref_store.cc', | |
| 69 'policy/core/browser/configuration_policy_pref_store.h', | |
| 70 'policy/core/browser/policy_error_map.cc', | |
| 71 'policy/core/browser/policy_error_map.h', | |
| 72 'policy/core/common/cloud/cloud_external_data_manager.cc', | |
| 73 'policy/core/common/cloud/cloud_external_data_manager.h', | |
| 74 'policy/core/common/cloud/cloud_policy_client.cc', | |
| 75 'policy/core/common/cloud/cloud_policy_client.h', | |
| 76 'policy/core/common/cloud/cloud_policy_client_registration_helper.cc
', | |
| 77 'policy/core/common/cloud/cloud_policy_client_registration_helper.h'
, | |
| 78 'policy/core/common/cloud/cloud_policy_constants.cc', | |
| 79 'policy/core/common/cloud/cloud_policy_constants.h', | |
| 80 'policy/core/common/cloud/cloud_policy_core.cc', | |
| 81 'policy/core/common/cloud/cloud_policy_core.h', | |
| 82 'policy/core/common/cloud/cloud_policy_manager.cc', | |
| 83 'policy/core/common/cloud/cloud_policy_manager.h', | |
| 84 'policy/core/common/cloud/cloud_policy_refresh_scheduler.cc', | |
| 85 'policy/core/common/cloud/cloud_policy_refresh_scheduler.h', | |
| 86 'policy/core/common/cloud/cloud_policy_service.cc', | |
| 87 'policy/core/common/cloud/cloud_policy_service.h', | |
| 88 'policy/core/common/cloud/cloud_policy_store.cc', | |
| 89 'policy/core/common/cloud/cloud_policy_store.h', | |
| 90 'policy/core/common/cloud/cloud_policy_validator.cc', | |
| 91 'policy/core/common/cloud/cloud_policy_validator.h', | |
| 92 'policy/core/common/cloud/component_cloud_policy_service.cc', | |
| 93 'policy/core/common/cloud/component_cloud_policy_service.h', | |
| 94 'policy/core/common/cloud/component_cloud_policy_store.cc', | |
| 95 'policy/core/common/cloud/component_cloud_policy_store.h', | |
| 96 'policy/core/common/cloud/component_cloud_policy_updater.cc', | |
| 97 'policy/core/common/cloud/component_cloud_policy_updater.h', | |
| 98 'policy/core/common/cloud/device_management_service.cc', | |
| 99 'policy/core/common/cloud/device_management_service.h', | |
| 100 'policy/core/common/cloud/enterprise_metrics.cc', | |
| 101 'policy/core/common/cloud/enterprise_metrics.h', | |
| 102 'policy/core/common/cloud/external_policy_data_fetcher.cc', | |
| 103 'policy/core/common/cloud/external_policy_data_fetcher.h', | |
| 104 'policy/core/common/cloud/external_policy_data_updater.cc', | |
| 105 'policy/core/common/cloud/external_policy_data_updater.h', | |
| 106 'policy/core/common/cloud/policy_header_io_helper.cc', | |
| 107 'policy/core/common/cloud/policy_header_io_helper.h', | |
| 108 'policy/core/common/cloud/policy_header_service.cc', | |
| 109 'policy/core/common/cloud/policy_header_service.h', | |
| 110 'policy/core/common/cloud/rate_limiter.cc', | |
| 111 'policy/core/common/cloud/rate_limiter.h', | |
| 112 'policy/core/common/cloud/resource_cache.cc', | |
| 113 'policy/core/common/cloud/resource_cache.h', | |
| 114 'policy/core/common/cloud/system_policy_request_context.cc', | |
| 115 'policy/core/common/cloud/system_policy_request_context.h', | |
| 116 'policy/core/common/cloud/user_cloud_policy_manager.cc', | |
| 117 'policy/core/common/cloud/user_cloud_policy_manager.h', | |
| 118 'policy/core/common/cloud/user_cloud_policy_store.cc', | |
| 119 'policy/core/common/cloud/user_cloud_policy_store.h', | |
| 120 'policy/core/common/cloud/user_cloud_policy_store_base.cc', | |
| 121 'policy/core/common/cloud/user_cloud_policy_store_base.h', | |
| 122 'policy/core/common/cloud/user_info_fetcher.cc', | |
| 123 'policy/core/common/cloud/user_info_fetcher.h', | |
| 124 'policy/core/common/cloud/user_policy_request_context.cc', | |
| 125 'policy/core/common/cloud/user_policy_request_context.h', | |
| 126 'policy/core/common/async_policy_loader.cc', | |
| 127 'policy/core/common/async_policy_loader.h', | |
| 128 'policy/core/common/async_policy_provider.cc', | |
| 129 'policy/core/common/async_policy_provider.h', | |
| 130 'policy/core/common/config_dir_policy_loader.cc', | |
| 131 'policy/core/common/config_dir_policy_loader.h', | |
| 132 'policy/core/common/configuration_policy_provider.cc', | |
| 133 'policy/core/common/configuration_policy_provider.h', | |
| 134 'policy/core/common/external_data_fetcher.cc', | |
| 135 'policy/core/common/external_data_fetcher.h', | |
| 136 'policy/core/common/external_data_manager.h', | |
| 137 'policy/core/common/forwarding_policy_provider.cc', | |
| 138 'policy/core/common/forwarding_policy_provider.h', | |
| 139 'policy/core/common/policy_bundle.cc', | |
| 140 'policy/core/common/policy_bundle.h', | |
| 141 'policy/core/common/policy_details.h', | |
| 142 'policy/core/common/policy_loader_mac.cc', | |
| 143 'policy/core/common/policy_loader_mac.h', | |
| 144 'policy/core/common/policy_loader_win.cc', | |
| 145 'policy/core/common/policy_loader_win.h', | |
| 146 'policy/core/common/policy_load_status.cc', | |
| 147 'policy/core/common/policy_load_status.h', | |
| 148 'policy/core/common/policy_map.cc', | |
| 149 'policy/core/common/policy_map.h', | |
| 150 'policy/core/common/policy_namespace.cc', | |
| 151 'policy/core/common/policy_namespace.h', | |
| 152 'policy/core/common/policy_pref_names.cc', | |
| 153 'policy/core/common/policy_pref_names.h', | |
| 154 'policy/core/common/policy_service.cc', | |
| 155 'policy/core/common/policy_service.h', | |
| 156 'policy/core/common/policy_service_impl.cc', | |
| 157 'policy/core/common/policy_service_impl.h', | |
| 158 'policy/core/common/policy_statistics_collector.cc', | |
| 159 'policy/core/common/policy_statistics_collector.h', | |
| 160 'policy/core/common/policy_switches.cc', | |
| 161 'policy/core/common/policy_switches.h', | |
| 162 'policy/core/common/policy_types.h', | |
| 163 'policy/core/common/preferences_mac.cc', | |
| 164 'policy/core/common/preferences_mac.h', | |
| 165 'policy/core/common/preg_parser_win.cc', | |
| 166 'policy/core/common/preg_parser_win.h', | |
| 167 'policy/core/common/registry_dict_win.cc', | |
| 168 'policy/core/common/registry_dict_win.h', | |
| 169 'policy/core/common/schema.cc', | |
| 170 'policy/core/common/schema.h', | |
| 171 'policy/core/common/schema_internal.h', | |
| 172 'policy/core/common/schema_map.cc', | |
| 173 'policy/core/common/schema_map.h', | |
| 174 'policy/core/common/schema_registry.cc', | |
| 175 'policy/core/common/schema_registry.h', | |
| 176 'policy/core/common/url_blacklist_manager.cc', | |
| 177 'policy/core/common/url_blacklist_manager.h', | |
| 178 'policy/policy_export.h', | |
| 179 ], | |
| 180 'conditions': [ | |
| 181 ['OS=="android"', { | |
| 182 'sources': [ | |
| 183 'policy/core/common/cloud/component_cloud_policy_service_stub.cc
', | |
| 184 ], | |
| 185 'sources!': [ | |
| 186 'policy/core/common/async_policy_loader.cc', | |
| 187 'policy/core/common/async_policy_loader.h', | |
| 188 'policy/core/common/async_policy_provider.cc', | |
| 189 'policy/core/common/async_policy_provider.h', | |
| 190 'policy/core/common/cloud/component_cloud_policy_service.cc', | |
| 191 'policy/core/common/cloud/component_cloud_policy_store.cc', | |
| 192 'policy/core/common/cloud/component_cloud_policy_store.h', | |
| 193 'policy/core/common/cloud/component_cloud_policy_updater.cc', | |
| 194 'policy/core/common/cloud/component_cloud_policy_updater.h', | |
| 195 'policy/core/common/cloud/external_policy_data_fetcher.cc', | |
| 196 'policy/core/common/cloud/external_policy_data_fetcher.h', | |
| 197 'policy/core/common/cloud/external_policy_data_updater.cc', | |
| 198 'policy/core/common/cloud/external_policy_data_updater.h', | |
| 199 'policy/core/common/cloud/resource_cache.cc', | |
| 200 'policy/core/common/cloud/resource_cache.h', | |
| 201 'policy/core/common/config_dir_policy_loader.cc', | |
| 202 'policy/core/common/config_dir_policy_loader.h', | |
| 203 'policy/core/common/policy_load_status.cc', | |
| 204 'policy/core/common/policy_load_status.h', | |
| 205 ], | |
| 206 }], | |
| 207 ['chromeos==1', { | |
| 208 'sources!': [ | |
| 209 'policy/core/common/cloud/cloud_policy_client_registration_helpe
r.cc', | |
| 210 'policy/core/common/cloud/cloud_policy_client_registration_helpe
r.h', | |
| 211 'policy/core/common/cloud/user_cloud_policy_manager.cc', | |
| 212 'policy/core/common/cloud/user_cloud_policy_manager.h', | |
| 213 'policy/core/common/cloud/user_cloud_policy_store.cc', | |
| 214 'policy/core/common/cloud/user_cloud_policy_store.h', | |
| 215 ], | |
| 216 }], | |
| 217 ], | |
| 218 }, { # configuration_policy==0 | |
| 219 # Some of the policy code is always enabled, so that other parts of | |
| 220 # Chrome can always interface with the PolicyService without having | |
| 221 # to #ifdef on ENABLE_CONFIGURATION_POLICY. | |
| 222 'sources': [ | |
| 223 'policy/core/common/external_data_fetcher.h', | |
| 224 'policy/core/common/external_data_fetcher.cc', | |
| 225 'policy/core/common/external_data_manager.h', | |
| 226 'policy/core/common/policy_map.cc', | |
| 227 'policy/core/common/policy_map.h', | |
| 228 'policy/core/common/policy_namespace.cc', | |
| 229 'policy/core/common/policy_namespace.h', | |
| 230 'policy/core/common/policy_service.cc', | |
| 231 'policy/core/common/policy_service.h', | |
| 232 'policy/core/common/policy_service_stub.cc', | |
| 233 'policy/core/common/policy_service_stub.h', | |
| 234 'policy/core/common/url_blacklist_manager.cc', | |
| 235 'policy/core/common/url_blacklist_manager.h', | |
| 236 ], | |
| 237 }], | |
| 238 ], | |
| 239 }, | |
| 240 ], | |
| 241 'conditions': [ | |
| 242 ['configuration_policy==1', { | 88 ['configuration_policy==1', { |
| 243 'targets': [ | 89 'targets': [ |
| 244 { | 90 { |
| 245 'target_name': 'cloud_policy_code_generate', | 91 'target_name': 'cloud_policy_code_generate', |
| 246 'type': 'none', | 92 'type': 'none', |
| 247 'actions': [ | 93 'actions': [ |
| 248 { | 94 { |
| 249 'inputs': [ | 95 'inputs': [ |
| 250 'policy/resources/policy_templates.json', | 96 'policy/resources/policy_templates.json', |
| 251 '<(generate_policy_source_script_path)', | 97 '<(generate_policy_source_script_path)', |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 'Copy the Localizable.strings files to the manifest bundle', | 419 'Copy the Localizable.strings files to the manifest bundle', |
| 574 'process_outputs_as_mac_bundle_resources': 1, | 420 'process_outputs_as_mac_bundle_resources': 1, |
| 575 'msvs_cygwin_shell': 1, | 421 'msvs_cygwin_shell': 1, |
| 576 }, | 422 }, |
| 577 ], | 423 ], |
| 578 }, | 424 }, |
| 579 ], | 425 ], |
| 580 }], | 426 }], |
| 581 ], | 427 ], |
| 582 } | 428 } |
| OLD | NEW |