Using pre-existing constants instead of hard-coding
[chromium-blink-merge.git] / components / keyed_service.gypi
blob0945e36370e5c2ab001012b52abc20cc6c74ad98
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       'target_name': 'keyed_service_core',
9       'type': '<(component)',
10       'defines': [
11         'KEYED_SERVICE_IMPLEMENTATION',
12       ],
13       'include_dirs': [
14         '..',
15       ],
16       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
17       'msvs_disabled_warnings': [ 4267, ],
18       'dependencies': [
19         '../base/base.gyp:base',
20       ],
21       'sources': [
22         'keyed_service/core/dependency_graph.cc',
23         'keyed_service/core/dependency_graph.h',
24         'keyed_service/core/dependency_node.h',
25         'keyed_service/core/keyed_service.h',
26         'keyed_service/core/keyed_service_export.h',
27       ],
28     },
29   ],
30   'conditions': [
31     ['OS != "ios"', {
32       'targets': [
33         {
34           'target_name': 'keyed_service_content',
35           'type': '<(component)',
36           'defines': [
37             'KEYED_SERVICE_IMPLEMENTATION',
38           ],
39           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
40           'msvs_disabled_warnings': [ 4267, ],
41           'dependencies': [
42             'keyed_service_core',
43             '../base/base.gyp:base',
44             '../base/base.gyp:base_prefs',
45             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
46             '../content/content.gyp:content_common',
47             'user_prefs',
48           ],
49           'include_dirs': [
50             '..',
51           ],
52           'sources': [
53             'keyed_service/content/browser_context_dependency_manager.cc',
54             'keyed_service/content/browser_context_dependency_manager.h',
55             'keyed_service/content/browser_context_keyed_base_factory.h',
56             'keyed_service/content/browser_context_keyed_base_factory.cc',
57             'keyed_service/content/browser_context_keyed_service_factory.cc',
58             'keyed_service/content/browser_context_keyed_service_factory.h',
59             'keyed_service/content/refcounted_browser_context_keyed_service.cc',
60             'keyed_service/content/refcounted_browser_context_keyed_service.h',
61             'keyed_service/content/refcounted_browser_context_keyed_service_factory.cc',
62         ],
63       }],
64     }],
65   ],