Simplify legal docs strings to not differentiate new vs. updated legal docs.
[chromium-blink-merge.git] / components / policy.gypi
blob0b48cedffd309cd6e1ba7543fbfdfe3952774c06
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
3 # found in the LICENSE file.
6   'targets': [
7     {
8       'target_name': 'policy_component',
9       'type': '<(component)',
10       'dependencies': [
11         '../base/base.gyp:base',
12         '../ui/ui.gyp:ui',
13         'json_schema',
14         'component_strings.gyp:component_strings',
15       ],
16       'defines': [
17         'POLICY_COMPONENT_IMPLEMENTATION',
18       ],
19       'include_dirs': [
20         '..',
21       ],
22       'conditions': [
23         ['configuration_policy==1', {
24           'sources': [
25             'policy/core/browser/policy_error_map.cc',
26             'policy/core/browser/policy_error_map.h',
27             'policy/core/common/async_policy_loader.cc',
28             'policy/core/common/async_policy_loader.h',
29             'policy/core/common/async_policy_provider.cc',
30             'policy/core/common/async_policy_provider.h',
31             'policy/core/common/configuration_policy_provider.cc',
32             'policy/core/common/configuration_policy_provider.h',
33             'policy/core/common/external_data_fetcher.cc',
34             'policy/core/common/external_data_fetcher.h',
35             'policy/core/common/external_data_manager.h',
36             'policy/core/common/forwarding_policy_provider.cc',
37             'policy/core/common/forwarding_policy_provider.h',
38             'policy/core/common/policy_bundle.cc',
39             'policy/core/common/policy_bundle.h',
40             'policy/core/common/policy_details.h',
41             'policy/core/common/policy_namespace.cc',
42             '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',
46             'policy/core/common/policy_pref_names.h',
47             'policy/core/common/policy_switches.cc',
48             'policy/core/common/policy_switches.h',
49             'policy/core/common/policy_types.h',
50             'policy/core/common/preferences_mac.cc',
51             'policy/core/common/preferences_mac.h',
52             'policy/core/common/registry_dict_win.cc',
53             'policy/core/common/registry_dict_win.h',
54             'policy/core/common/schema.cc',
55             'policy/core/common/schema.h',
56             'policy/core/common/schema_internal.h',
57             'policy/core/common/schema_map.cc',
58             'policy/core/common/schema_map.h',
59             'policy/core/common/schema_registry.cc',
60             'policy/core/common/schema_registry.h',
61             'policy/policy_export.h',
62           ],
63           'conditions': [
64             ['OS=="android"', {
65               'sources!': [
66                 'policy/core/common/async_policy_loader.cc',
67                 'policy/core/common/async_policy_loader.h',
68                 'policy/core/common/async_policy_provider.cc',
69                 'policy/core/common/async_policy_provider.h',
70               ],
71             }],
72           ],
73         }, {  # configuration_policy==0
74           # Some of the policy code is always enabled, so that other parts of
75           # Chrome can always interface with the PolicyService without having
76           # to #ifdef on ENABLE_CONFIGURATION_POLICY.
77           'sources': [
78             'policy/core/common/external_data_fetcher.h',
79             'policy/core/common/external_data_fetcher.cc',
80             'policy/core/common/external_data_manager.h',
81             'policy/core/common/policy_map.cc',
82             'policy/core/common/policy_map.h',
83             'policy/core/common/policy_namespace.cc',
84             'policy/core/common/policy_namespace.h',
85           ],
86         }],
87       ],
88     },
89   ],
90   'conditions': [
91     ['configuration_policy==1', {
92       'targets': [
93         {
94           'target_name': 'policy_component_test_support',
95           'type': 'static_library',
96           # This must be undefined so that POLICY_EXPORT works correctly in
97           # the static_library build.
98           'defines!': [
99             'POLICY_COMPONENT_IMPLEMENTATION',
100           ],
101           'dependencies': [
102             'policy_component',
103             '../testing/gmock.gyp:gmock',
104             '../testing/gtest.gyp:gtest',
105           ],
106           'include_dirs': [
107             '..',
108           ],
109           'sources': [
110             'policy/core/common/configuration_policy_provider_test.cc',
111             'policy/core/common/configuration_policy_provider_test.h',
112             'policy/core/common/mock_configuration_policy_provider.cc',
113             'policy/core/common/mock_configuration_policy_provider.h',
114             'policy/core/common/preferences_mock_mac.cc',
115             'policy/core/common/preferences_mock_mac.h',
116           ],
117         },
118       ],
119     }],
120   ],