policy_browser.gypi revision cedac228d2dd51db4b79ea1e72c7f249408ee061
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    '../base/base.gyp:base_prefs',
9    '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
10    '../net/net.gyp:net',
11    '../ui/base/ui_base.gyp:ui_base',
12    '../url/url.gyp:url_lib',
13    'components_strings.gyp:components_strings',
14    'pref_registry',
15    'url_matcher',
16  ],
17  'defines': [
18    'POLICY_COMPONENT_IMPLEMENTATION',
19  ],
20  'include_dirs': [
21    '..',
22  ],
23  'sources': [
24    # Note that these sources are always included, even for builds that
25    # disable policy. Most source files should go in the conditional
26    # sources list below.
27    # url_blacklist_manager.h is used by managed mode.
28    'core/browser/url_blacklist_manager.cc',
29    'core/browser/url_blacklist_manager.h',
30  ],
31  'conditions': [
32    ['configuration_policy==1', {
33      'dependencies': [
34        'autofill_core_browser',
35        'autofill_core_common',
36        'cloud_policy_proto',
37        'policy',
38      ],
39      'sources': [
40        'core/browser/autofill_policy_handler.cc',
41        'core/browser/autofill_policy_handler.h',
42        'core/browser/browser_policy_connector.cc',
43        'core/browser/browser_policy_connector.h',
44        'core/browser/browser_policy_connector_ios.h',
45        'core/browser/browser_policy_connector_ios.mm',
46        'core/browser/cloud/message_util.cc',
47        'core/browser/cloud/message_util.h',
48        'core/browser/configuration_policy_handler.cc',
49        'core/browser/configuration_policy_handler.h',
50        'core/browser/configuration_policy_handler_list.cc',
51        'core/browser/configuration_policy_handler_list.h',
52        'core/browser/configuration_policy_pref_store.cc',
53        'core/browser/configuration_policy_pref_store.h',
54        'core/browser/policy_error_map.cc',
55        'core/browser/policy_error_map.h',
56        'core/browser/url_blacklist_policy_handler.cc',
57        'core/browser/url_blacklist_policy_handler.h',
58      ],
59    }],
60  ],
61}
62