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 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'policy_component', | 8 'target_name': 'policy_component', |
9 'type': '<(component)', | 9 'type': '<(component)', |
10 'dependencies': [ | 10 'dependencies': [ |
11 '../base/base.gyp:base', | 11 '../base/base.gyp:base', |
12 'json_schema', | 12 'json_schema', |
13 'component_strings.gyp:component_strings', | 13 'component_strings.gyp:component_strings', |
14 ], | 14 ], |
15 'defines': [ | 15 'defines': [ |
16 'POLICY_COMPONENT_IMPLEMENTATION', | 16 'POLICY_COMPONENT_IMPLEMENTATION', |
17 ], | 17 ], |
18 'include_dirs': [ | 18 'include_dirs': [ |
19 '..', | 19 '..', |
20 ], | 20 ], |
21 'conditions': [ | 21 'conditions': [ |
22 ['configuration_policy==1', { | 22 ['configuration_policy==1', { |
23 'sources': [ | 23 'sources': [ |
| 24 'policy/core/common/async_policy_loader.cc', |
| 25 'policy/core/common/async_policy_loader.h', |
| 26 'policy/core/common/async_policy_provider.cc', |
| 27 'policy/core/common/async_policy_provider.h', |
24 'policy/core/common/configuration_policy_provider.cc', | 28 'policy/core/common/configuration_policy_provider.cc', |
25 'policy/core/common/configuration_policy_provider.h', | 29 'policy/core/common/configuration_policy_provider.h', |
26 'policy/core/common/external_data_fetcher.cc', | 30 'policy/core/common/external_data_fetcher.cc', |
27 'policy/core/common/external_data_fetcher.h', | 31 'policy/core/common/external_data_fetcher.h', |
28 'policy/core/common/external_data_manager.h', | 32 'policy/core/common/external_data_manager.h', |
29 'policy/core/common/policy_bundle.cc', | 33 'policy/core/common/policy_bundle.cc', |
30 'policy/core/common/policy_bundle.h', | 34 'policy/core/common/policy_bundle.h', |
31 'policy/core/common/policy_details.h', | 35 'policy/core/common/policy_details.h', |
32 'policy/core/common/policy_namespace.cc', | 36 'policy/core/common/policy_namespace.cc', |
33 'policy/core/common/policy_namespace.h', | 37 'policy/core/common/policy_namespace.h', |
34 'policy/core/common/policy_map.cc', | 38 'policy/core/common/policy_map.cc', |
35 'policy/core/common/policy_map.h', | 39 'policy/core/common/policy_map.h', |
36 'policy/core/common/policy_pref_names.cc', | 40 'policy/core/common/policy_pref_names.cc', |
37 'policy/core/common/policy_pref_names.h', | 41 'policy/core/common/policy_pref_names.h', |
38 'policy/core/common/policy_switches.cc', | 42 'policy/core/common/policy_switches.cc', |
39 'policy/core/common/policy_switches.h', | 43 'policy/core/common/policy_switches.h', |
40 'policy/core/common/policy_types.h', | 44 'policy/core/common/policy_types.h', |
41 'policy/core/common/registry_dict_win.cc', | 45 'policy/core/common/registry_dict_win.cc', |
42 'policy/core/common/registry_dict_win.h', | 46 'policy/core/common/registry_dict_win.h', |
43 'policy/core/common/schema.cc', | 47 'policy/core/common/schema.cc', |
44 'policy/core/common/schema.h', | 48 'policy/core/common/schema.h', |
45 'policy/core/common/schema_internal.h', | 49 'policy/core/common/schema_internal.h', |
46 'policy/core/common/schema_map.cc', | 50 'policy/core/common/schema_map.cc', |
47 'policy/core/common/schema_map.h', | 51 'policy/core/common/schema_map.h', |
48 'policy/core/common/schema_registry.cc', | 52 'policy/core/common/schema_registry.cc', |
49 'policy/core/common/schema_registry.h', | 53 'policy/core/common/schema_registry.h', |
50 'policy/policy_export.h', | 54 'policy/policy_export.h', |
51 ], | 55 ], |
| 56 'conditions': [ |
| 57 ['OS=="android"', { |
| 58 'sources!': [ |
| 59 'policy/core/common/async_policy_loader.cc', |
| 60 'policy/core/common/async_policy_loader.h', |
| 61 'policy/core/common/async_policy_provider.cc', |
| 62 'policy/core/common/async_policy_provider.h', |
| 63 ], |
| 64 }], |
| 65 ], |
52 }, { # configuration_policy==0 | 66 }, { # configuration_policy==0 |
53 # Some of the policy code is always enabled, so that other parts of | 67 # Some of the policy code is always enabled, so that other parts of |
54 # Chrome can always interface with the PolicyService without having | 68 # Chrome can always interface with the PolicyService without having |
55 # to #ifdef on ENABLE_CONFIGURATION_POLICY. | 69 # to #ifdef on ENABLE_CONFIGURATION_POLICY. |
56 'sources': [ | 70 'sources': [ |
57 'policy/core/common/external_data_fetcher.h', | 71 'policy/core/common/external_data_fetcher.h', |
58 'policy/core/common/external_data_fetcher.cc', | 72 'policy/core/common/external_data_fetcher.cc', |
59 'policy/core/common/external_data_manager.h', | 73 'policy/core/common/external_data_manager.h', |
60 'policy/core/common/policy_map.cc', | 74 'policy/core/common/policy_map.cc', |
61 'policy/core/common/policy_map.h', | 75 'policy/core/common/policy_map.h', |
(...skipping 27 matching lines...) Expand all Loading... |
89 'policy/core/common/configuration_policy_provider_test.cc', | 103 'policy/core/common/configuration_policy_provider_test.cc', |
90 'policy/core/common/configuration_policy_provider_test.h', | 104 'policy/core/common/configuration_policy_provider_test.h', |
91 'policy/core/common/mock_configuration_policy_provider.cc', | 105 'policy/core/common/mock_configuration_policy_provider.cc', |
92 'policy/core/common/mock_configuration_policy_provider.h', | 106 'policy/core/common/mock_configuration_policy_provider.h', |
93 ], | 107 ], |
94 }, | 108 }, |
95 ], | 109 ], |
96 }], | 110 }], |
97 ], | 111 ], |
98 } | 112 } |
OLD | NEW |