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/policy_bundle.cc', | 24 'policy/core/common/configuration_policy_provider.cc', |
25 'policy/core/common/policy_bundle.h', | 25 'policy/core/common/configuration_policy_provider.h', |
26 'policy/core/common/external_data_fetcher.cc', | 26 'policy/core/common/external_data_fetcher.cc', |
27 'policy/core/common/external_data_fetcher.h', | 27 'policy/core/common/external_data_fetcher.h', |
28 'policy/core/common/external_data_manager.h', | 28 'policy/core/common/external_data_manager.h', |
| 29 'policy/core/common/policy_bundle.cc', |
| 30 'policy/core/common/policy_bundle.h', |
29 'policy/core/common/policy_details.h', | 31 'policy/core/common/policy_details.h', |
30 'policy/core/common/policy_namespace.cc', | 32 'policy/core/common/policy_namespace.cc', |
31 'policy/core/common/policy_namespace.h', | 33 'policy/core/common/policy_namespace.h', |
32 'policy/core/common/policy_map.cc', | 34 'policy/core/common/policy_map.cc', |
33 'policy/core/common/policy_map.h', | 35 'policy/core/common/policy_map.h', |
34 'policy/core/common/policy_pref_names.cc', | 36 'policy/core/common/policy_pref_names.cc', |
35 'policy/core/common/policy_pref_names.h', | 37 'policy/core/common/policy_pref_names.h', |
36 'policy/core/common/policy_switches.cc', | 38 'policy/core/common/policy_switches.cc', |
37 'policy/core/common/policy_switches.h', | 39 'policy/core/common/policy_switches.h', |
38 'policy/core/common/policy_types.h', | 40 'policy/core/common/policy_types.h', |
(...skipping 18 matching lines...) Expand all Loading... |
57 'policy/core/common/external_data_manager.h', | 59 'policy/core/common/external_data_manager.h', |
58 'policy/core/common/policy_map.cc', | 60 'policy/core/common/policy_map.cc', |
59 'policy/core/common/policy_map.h', | 61 'policy/core/common/policy_map.h', |
60 'policy/core/common/policy_namespace.cc', | 62 'policy/core/common/policy_namespace.cc', |
61 'policy/core/common/policy_namespace.h', | 63 'policy/core/common/policy_namespace.h', |
62 ], | 64 ], |
63 }], | 65 }], |
64 ], | 66 ], |
65 }, | 67 }, |
66 ], | 68 ], |
| 69 'conditions': [ |
| 70 ['configuration_policy==1', { |
| 71 'targets': [ |
| 72 { |
| 73 'target_name': 'policy_test_support', |
| 74 'type': 'static_library', |
| 75 # This must be undefined so that POLICY_EXPORT works correctly in |
| 76 # the static_library build. |
| 77 'defines!': [ |
| 78 'POLICY_COMPONENT_IMPLEMENTATION', |
| 79 ], |
| 80 'dependencies': [ |
| 81 'policy_component', |
| 82 '../testing/gmock.gyp:gmock', |
| 83 '../testing/gtest.gyp:gtest', |
| 84 ], |
| 85 'include_dirs': [ |
| 86 '..', |
| 87 ], |
| 88 'sources': [ |
| 89 'policy/core/common/configuration_policy_provider_test.cc', |
| 90 'policy/core/common/configuration_policy_provider_test.h', |
| 91 'policy/core/common/mock_configuration_policy_provider.cc', |
| 92 'policy/core/common/mock_configuration_policy_provider.h', |
| 93 ], |
| 94 }, |
| 95 ], |
| 96 }], |
| 97 ], |
67 } | 98 } |
OLD | NEW |