Roll src/third_party/WebKit 48de1d8:ada7a3d (svn 202597:202598)
[chromium-blink-merge.git] / components / signin.gypi
blob800859efb0ae47b6b9cf9e931f59cd7e02b9892e
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/signin/core/common
9       'target_name': 'signin_core_common',
10       'type': 'static_library',
11       'include_dirs': [
12         '..',
13       ],
14       'sources': [
15         'signin/core/common/profile_management_switches.cc',
16         'signin/core/common/profile_management_switches.h',
17         'signin/core/common/signin_pref_names.cc',
18         'signin/core/common/signin_pref_names.h',
19         'signin/core/common/signin_switches.cc',
20         'signin/core/common/signin_switches.h',
21       ],
22     },
23     {
24       # GN version: //components/signin/core/browser
25       'target_name': 'signin_core_browser',
26       'type': 'static_library',
27       'dependencies': [
28         '../base/base.gyp:base',
29         '../base/base.gyp:base_i18n',
30         '../base/base.gyp:base_prefs',
31         '../crypto/crypto.gyp:crypto',
32         '../google_apis/google_apis.gyp:google_apis',
33         '../net/net.gyp:net',
34         '../sql/sql.gyp:sql',
35         '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidation_proto_cpp',
36         '../third_party/icu/icu.gyp:icui18n',
37         '../third_party/icu/icu.gyp:icuuc',
38         'content_settings_core_browser',
39         'content_settings_core_common',
40         'google_core_browser',
41         'invalidation_public',
42         'keyed_service_core',
43         'os_crypt',
44         'signin_core_common',
45         'webdata_common',
46       ],
47       'include_dirs': [
48         '..',
49       ],
50       'sources': [
51         # Note: file list duplicated in GN build.
52         'signin/core/browser/about_signin_internals.cc',
53         'signin/core/browser/about_signin_internals.h',
54         'signin/core/browser/account_fetcher_service.cc',
55         'signin/core/browser/account_fetcher_service.h',
56         'signin/core/browser/account_info.cc',
57         'signin/core/browser/account_info.h',
58         'signin/core/browser/account_info_fetcher.cc',
59         'signin/core/browser/account_info_fetcher.h',
60         'signin/core/browser/account_reconcilor.cc',
61         'signin/core/browser/account_reconcilor.h',
62         'signin/core/browser/account_tracker_service.cc',
63         'signin/core/browser/account_tracker_service.h',
64         'signin/core/browser/android/component_jni_registrar.cc',
65         'signin/core/browser/android/component_jni_registrar.h',
66         'signin/core/browser/child_account_info_fetcher.cc',
67         'signin/core/browser/child_account_info_fetcher.h',
68         'signin/core/browser/child_account_info_fetcher_android.cc',
69         'signin/core/browser/child_account_info_fetcher_android.h',
70         'signin/core/browser/child_account_info_fetcher_impl.cc',
71         'signin/core/browser/child_account_info_fetcher_impl.h',
72         'signin/core/browser/device_activity_fetcher.cc',
73         'signin/core/browser/device_activity_fetcher.h',
74         'signin/core/browser/gaia_cookie_manager_service.cc',
75         'signin/core/browser/gaia_cookie_manager_service.h',
76         'signin/core/browser/profile_identity_provider.cc',
77         'signin/core/browser/profile_identity_provider.h',
78         'signin/core/browser/profile_oauth2_token_service.cc',
79         'signin/core/browser/profile_oauth2_token_service.h',
80         'signin/core/browser/refresh_token_annotation_request.cc',
81         'signin/core/browser/refresh_token_annotation_request.h',
82         'signin/core/browser/signin_client.cc',
83         'signin/core/browser/signin_client.h',
84         'signin/core/browser/signin_cookie_changed_subscription.cc',
85         'signin/core/browser/signin_cookie_changed_subscription.h',
86         'signin/core/browser/signin_error_controller.cc',
87         'signin/core/browser/signin_error_controller.h',
88         'signin/core/browser/signin_header_helper.cc',
89         'signin/core/browser/signin_header_helper.h',
90         'signin/core/browser/signin_internals_util.cc',
91         'signin/core/browser/signin_internals_util.h',
92         'signin/core/browser/signin_manager.cc',
93         'signin/core/browser/signin_manager.h',
94         'signin/core/browser/signin_manager_base.cc',
95         'signin/core/browser/signin_manager_base.h',
96         'signin/core/browser/signin_manager_cookie_helper.cc',
97         'signin/core/browser/signin_manager_cookie_helper.h',
98         'signin/core/browser/signin_metrics.cc',
99         'signin/core/browser/signin_metrics.h',
100         'signin/core/browser/signin_tracker.cc',
101         'signin/core/browser/signin_tracker.h',
102         'signin/core/browser/webdata/token_service_table.cc',
103         'signin/core/browser/webdata/token_service_table.h',
104         'signin/core/browser/webdata/token_web_data.cc',
105         'signin/core/browser/webdata/token_web_data.h',
106       ],
107       'conditions': [
108         ['OS=="android"', {
109           'dependencies': [
110             'signin_core_browser_jni_headers',
111           ],
112           'sources!': [
113             'signin/core/browser/child_account_info_fetcher_impl.cc',
114             'signin/core/browser/child_account_info_fetcher_impl.h',
115           ],
116         }],
117         ['chromeos==1', {
118           'sources!': [
119             'signin/core/browser/signin_manager.cc',
120           ],
121         }],
122       ],
123       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
124       'msvs_disabled_warnings': [4267, ],
125     },
126     {
127       # GN version: //components/signin/core/browser:test_support
128       'target_name': 'signin_core_browser_test_support',
129       'type': 'static_library',
130       'dependencies': [
131         'signin_core_browser',
132         '../testing/gtest.gyp:gtest',
133       ],
134       'include_dirs': [
135         '..',
136       ],
137       'sources': [
138         # Note: file list duplicated in GN build.
139         'signin/core/browser/fake_account_fetcher_service.cc',
140         'signin/core/browser/fake_account_fetcher_service.h',
141         'signin/core/browser/fake_auth_status_provider.cc',
142         'signin/core/browser/fake_auth_status_provider.h',
143         'signin/core/browser/fake_profile_oauth2_token_service.cc',
144         'signin/core/browser/fake_profile_oauth2_token_service.h',
145         'signin/core/browser/fake_signin_manager.cc',
146         'signin/core/browser/fake_signin_manager.h',
147         'signin/core/browser/test_signin_client.cc',
148         'signin/core/browser/test_signin_client.h',
149       ],
150     },
151   ],
152   'conditions': [
153     ['OS == "android"', {
154       'targets': [
155         {
156           # GN version: //components/signin/core/browser/android:java
157           'target_name': 'signin_core_browser_java',
158           'type': 'none',
159           'dependencies': [
160             '../base/base.gyp:base',
161             '../sync/sync.gyp:sync_java',
162           ],
163           'variables': {
164             'java_in_dir': 'signin/core/browser/android/java',
165           },
166           'includes': [ '../build/java.gypi' ],
167         },
168         {
169           # GN version: //components/signin/core/browser/android:jni_headers
170           'target_name': 'signin_core_browser_jni_headers',
171           'type': 'none',
172           'sources': [
173             'signin/core/browser/android/java/src/org/chromium/components/signin/ChildAccountInfoFetcher.java',
174           ],
175           'variables': {
176             'jni_gen_package': 'components/signin',
177           },
178           'includes': [ '../build/jni_generator.gypi' ],
179         },
180       ],
181     }],
182     ['OS == "ios"', {
183       # GN version: //components/signin/core/browser:ios
184       'targets': [
185         {
186           'target_name': 'signin_ios_browser',
187           'type': 'static_library',
188           'dependencies': [
189             '../ios/web/ios_web.gyp:ios_web',
190             'signin_core_browser',
191           ],
192           'include_dirs': [
193             '..',
194           ],
195           'sources': [
196             # Note: file list duplicated in GN build.
197             'signin/ios/browser/account_consistency_service.h',
198             'signin/ios/browser/account_consistency_service.mm',
199             'signin/ios/browser/manage_accounts_delegate.h',
200             'signin/ios/browser/merge_session_observer_bridge.h',
201             'signin/ios/browser/merge_session_observer_bridge.mm',
202             'signin/ios/browser/oauth2_token_service_observer_bridge.h',
203             'signin/ios/browser/oauth2_token_service_observer_bridge.mm',
204             'signin/ios/browser/profile_oauth2_token_service_ios_delegate.h',
205             'signin/ios/browser/profile_oauth2_token_service_ios_delegate.mm',
206             'signin/ios/browser/profile_oauth2_token_service_ios_provider.h',
207           ],
208         },
209         {
210           'target_name': 'signin_ios_browser_test_support',
211           'type': 'static_library',
212           'dependencies': [
213             '../base/base.gyp:base',
214             '../google_apis/google_apis.gyp:google_apis_test_support',
215             'signin_ios_browser',
216           ],
217           'include_dirs': [
218             '..',
219           ],
220           'sources': [
221             # Note: file list duplicated in GN build.
222             'signin/ios/browser/fake_profile_oauth2_token_service_ios_delegate.h',
223             'signin/ios/browser/fake_profile_oauth2_token_service_ios_delegate.mm',
224             'signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.h',
225             'signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.mm',
226           ],
227         },
228       ],
229     }],
230   ],