- add sources.
[platform/framework/web/crosswalk.git] / src / components / policy.gypi
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.
4
5 {
6   'targets': [
7     {
8       'target_name': 'policy_component',
9       'type': '<(component)',
10       'dependencies': [
11         '../base/base.gyp:base',
12         'json_schema',
13       ],
14       'defines': [
15         'POLICY_COMPONENT_IMPLEMENTATION',
16       ],
17       'include_dirs': [
18         '..',
19       ],
20       'conditions': [
21         ['configuration_policy==1', {
22           'sources': [
23             'policy/core/common/policy_namespace.cc',
24             'policy/core/common/policy_namespace.h',
25             'policy/core/common/policy_pref_names.cc',
26             'policy/core/common/policy_pref_names.h',
27             'policy/core/common/policy_switches.cc',
28             'policy/core/common/policy_switches.h',
29             'policy/core/common/schema.cc',
30             'policy/core/common/schema.h',
31             'policy/core/common/schema_internal.h',
32             'policy/policy_export.h',
33           ],
34         }, {  # configuration_policy==0
35           # Some of the policy code is always enabled, so that other parts of
36           # Chrome can always interface with the PolicyService without having
37           # to #ifdef on ENABLE_CONFIGURATION_POLICY.
38           'sources': [
39             'policy/core/common/policy_namespace.cc',
40             'policy/core/common/policy_namespace.h',
41           ],
42         }],
43       ],
44     },
45   ],
46 }