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