De-dup PrefixSet code in SafeBrowsingDatabaseManager.
[chromium-blink-merge.git] / components / keyed_service.gypi
blobfaabf607c02a37f41cbd3a8049bcadcd24748fe3
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.
6   'targets': [
7     {
8       # GN version: //components/keyed_service/core:core
9       'target_name': 'keyed_service_core',
10       'type': '<(component)',
11       'defines': [
12         'KEYED_SERVICE_IMPLEMENTATION',
13       ],
14       'include_dirs': [
15         '..',
16       ],
17       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
18       'msvs_disabled_warnings': [ 4267, ],
19       'dependencies': [
20         '../base/base.gyp:base',
21       ],
22       'sources': [
23         'keyed_service/core/dependency_graph.cc',
24         'keyed_service/core/dependency_graph.h',
25         'keyed_service/core/dependency_manager.cc',
26         'keyed_service/core/dependency_manager.h',
27         'keyed_service/core/dependency_node.h',
28         'keyed_service/core/keyed_service.cc',
29         'keyed_service/core/keyed_service.h',
30         'keyed_service/core/keyed_service_base_factory.cc',
31         'keyed_service/core/keyed_service_base_factory.h',
32         'keyed_service/core/keyed_service_export.h',
33         'keyed_service/core/keyed_service_factory.cc',
34         'keyed_service/core/keyed_service_factory.h',
35         'keyed_service/core/refcounted_keyed_service.cc',
36         'keyed_service/core/refcounted_keyed_service.h',
37         'keyed_service/core/refcounted_keyed_service_factory.cc',
38         'keyed_service/core/refcounted_keyed_service_factory.h',
39       ],
40     },
41   ],
42   'conditions': [
43     ['OS != "ios"', {
44       'targets': [
45         {
46           # GN version: //components/keyed_service/content:content
47           'target_name': 'keyed_service_content',
48           'type': '<(component)',
49           'defines': [
50             'KEYED_SERVICE_IMPLEMENTATION',
51           ],
52           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
53           'msvs_disabled_warnings': [ 4267, ],
54           'dependencies': [
55             'keyed_service_core',
56             '../base/base.gyp:base',
57             '../base/base.gyp:base_prefs',
58             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
59             '../content/content.gyp:content_common',
60             'user_prefs',
61           ],
62           'include_dirs': [
63             '..',
64           ],
65           'sources': [
66             'keyed_service/content/browser_context_dependency_manager.cc',
67             'keyed_service/content/browser_context_dependency_manager.h',
68             'keyed_service/content/browser_context_keyed_base_factory.h',
69             'keyed_service/content/browser_context_keyed_base_factory.cc',
70             'keyed_service/content/browser_context_keyed_service_factory.cc',
71             'keyed_service/content/browser_context_keyed_service_factory.h',
72             'keyed_service/content/refcounted_browser_context_keyed_service_factory.cc',
73             'keyed_service/content/refcounted_browser_context_keyed_service_factory.h',
74         ],
75       }],
76     }],
77     ['OS == "ios"', {
78       'targets': [
79         {
80           'target_name': 'keyed_service_ios',
81           'type': '<(component)',
82           'defines': [
83             'KEYED_SERVICE_IMPLEMENTATION',
84           ],
85           'dependencies': [
86             '../base/base.gyp:base',
87             '../base/base.gyp:base_prefs',
88             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
89             '../ios/web/ios_web.gyp:ios_web',
90             'keyed_service_core',
91           ],
92           'include_dirs': [
93             '..',
94           ],
95           'sources': [
96             'keyed_service/ios/browser_state_dependency_manager.cc',
97             'keyed_service/ios/browser_state_dependency_manager.h',
98             'keyed_service/ios/browser_state_helper.cc',
99             'keyed_service/ios/browser_state_helper.h',
100             'keyed_service/ios/browser_state_keyed_service_factory.cc',
101             'keyed_service/ios/browser_state_keyed_service_factory.h',
102             'keyed_service/ios/refcounted_browser_state_keyed_service_factory.cc',
103             'keyed_service/ios/refcounted_browser_state_keyed_service_factory.h',
104         ],
105       }],
106     }],
107   ],