Enforce lowercase switches when calling CommandLine::HasSwitch.
[chromium-blink-merge.git] / components / keyed_service.gypi
blob22ebf665dae2b2e14fd373ea3c321da51b8c9cf8
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/keyed_service_shutdown_notifier.cc',
36         'keyed_service/core/keyed_service_shutdown_notifier.h',
37         'keyed_service/core/refcounted_keyed_service.cc',
38         'keyed_service/core/refcounted_keyed_service.h',
39         'keyed_service/core/refcounted_keyed_service_factory.cc',
40         'keyed_service/core/refcounted_keyed_service_factory.h',
41         'keyed_service/core/service_access_type.h',
42       ],
43     },
44   ],
45   'conditions': [
46     ['OS != "ios"', {
47       'targets': [
48         {
49           # GN version: //components/keyed_service/content:content
50           'target_name': 'keyed_service_content',
51           'type': '<(component)',
52           'defines': [
53             'KEYED_SERVICE_IMPLEMENTATION',
54           ],
55           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
56           'msvs_disabled_warnings': [ 4267, ],
57           'dependencies': [
58             'keyed_service_core',
59             '../base/base.gyp:base',
60             '../base/base.gyp:base_prefs',
61             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
62             '../content/content.gyp:content_common',
63             'user_prefs',
64           ],
65           'include_dirs': [
66             '..',
67           ],
68           'sources': [
69             'keyed_service/content/browser_context_dependency_manager.cc',
70             'keyed_service/content/browser_context_dependency_manager.h',
71             'keyed_service/content/browser_context_keyed_base_factory.cc',
72             'keyed_service/content/browser_context_keyed_base_factory.h',
73             'keyed_service/content/browser_context_keyed_service_factory.cc',
74             'keyed_service/content/browser_context_keyed_service_factory.h',
75             'keyed_service/content/browser_context_keyed_service_shutdown_notifier_factory.cc',
76             'keyed_service/content/browser_context_keyed_service_shutdown_notifier_factory.h',
77             'keyed_service/content/refcounted_browser_context_keyed_service_factory.cc',
78             'keyed_service/content/refcounted_browser_context_keyed_service_factory.h',
79         ],
80       }],
81     }],
82     ['OS == "ios"', {
83       'targets': [
84         {
85           'target_name': 'keyed_service_ios',
86           'type': '<(component)',
87           'defines': [
88             'KEYED_SERVICE_IMPLEMENTATION',
89           ],
90           'dependencies': [
91             '../base/base.gyp:base',
92             '../base/base.gyp:base_prefs',
93             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
94             '../ios/web/ios_web.gyp:ios_web',
95             'keyed_service_core',
96           ],
97           'include_dirs': [
98             '..',
99           ],
100           'sources': [
101             'keyed_service/ios/browser_state_dependency_manager.cc',
102             'keyed_service/ios/browser_state_dependency_manager.h',
103             'keyed_service/ios/browser_state_helper.cc',
104             'keyed_service/ios/browser_state_helper.h',
105             'keyed_service/ios/browser_state_keyed_service_factory.cc',
106             'keyed_service/ios/browser_state_keyed_service_factory.h',
107             'keyed_service/ios/refcounted_browser_state_keyed_service_factory.cc',
108             'keyed_service/ios/refcounted_browser_state_keyed_service_factory.h',
109         ],
110       }],
111     }],
112   ],