Add readelf and nm dummy values to cros.
[chromium-blink-merge.git] / components / signin.gypi
blob3b5ed73962cc15b9a5d8ddc2acbbcd0b93a331a7
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_fetcher.cc',
57         'signin/core/browser/account_info_fetcher.h',
58         'signin/core/browser/account_reconcilor.cc',
59         'signin/core/browser/account_reconcilor.h',
60         'signin/core/browser/account_tracker_service.cc',
61         'signin/core/browser/account_tracker_service.h',
62         'signin/core/browser/android/component_jni_registrar.cc',
63         'signin/core/browser/android/component_jni_registrar.h',
64         'signin/core/browser/child_account_info_fetcher.cc',
65         'signin/core/browser/child_account_info_fetcher.h',
66         'signin/core/browser/child_account_info_fetcher_android.cc',
67         'signin/core/browser/child_account_info_fetcher_android.h',
68         'signin/core/browser/child_account_info_fetcher_impl.cc',
69         'signin/core/browser/child_account_info_fetcher_impl.h',
70         'signin/core/browser/device_activity_fetcher.cc',
71         'signin/core/browser/device_activity_fetcher.h',
72         'signin/core/browser/gaia_cookie_manager_service.cc',
73         'signin/core/browser/gaia_cookie_manager_service.h',
74         'signin/core/browser/profile_identity_provider.cc',
75         'signin/core/browser/profile_identity_provider.h',
76         'signin/core/browser/profile_oauth2_token_service.cc',
77         'signin/core/browser/profile_oauth2_token_service.h',
78         'signin/core/browser/refresh_token_annotation_request.cc',
79         'signin/core/browser/refresh_token_annotation_request.h',
80         'signin/core/browser/signin_client.cc',
81         'signin/core/browser/signin_client.h',
82         'signin/core/browser/signin_cookie_changed_subscription.cc',
83         'signin/core/browser/signin_cookie_changed_subscription.h',
84         'signin/core/browser/signin_error_controller.cc',
85         'signin/core/browser/signin_error_controller.h',
86         'signin/core/browser/signin_header_helper.cc',
87         'signin/core/browser/signin_header_helper.h',
88         'signin/core/browser/signin_internals_util.cc',
89         'signin/core/browser/signin_internals_util.h',
90         'signin/core/browser/signin_manager.cc',
91         'signin/core/browser/signin_manager.h',
92         'signin/core/browser/signin_manager_base.cc',
93         'signin/core/browser/signin_manager_base.h',
94         'signin/core/browser/signin_manager_cookie_helper.cc',
95         'signin/core/browser/signin_manager_cookie_helper.h',
96         'signin/core/browser/signin_metrics.cc',
97         'signin/core/browser/signin_metrics.h',
98         'signin/core/browser/signin_tracker.cc',
99         'signin/core/browser/signin_tracker.h',
100         'signin/core/browser/webdata/token_service_table.cc',
101         'signin/core/browser/webdata/token_service_table.h',
102         'signin/core/browser/webdata/token_web_data.cc',
103         'signin/core/browser/webdata/token_web_data.h',
104       ],
105       'conditions': [
106         ['OS=="android"', {
107           'dependencies': [
108             'signin_core_browser_jni_headers',
109           ],
110           'sources!': [
111             'signin/core/browser/child_account_info_fetcher_impl.cc',
112             'signin/core/browser/child_account_info_fetcher_impl.h',
113           ],
114         }],
115         ['chromeos==1', {
116           'sources!': [
117             'signin/core/browser/signin_manager.cc',
118           ],
119         }],
120       ],
121       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
122       'msvs_disabled_warnings': [4267, ],
123     },
124     {
125       # GN version: //components/signin/core/browser:test_support
126       'target_name': 'signin_core_browser_test_support',
127       'type': 'static_library',
128       'dependencies': [
129         'signin_core_browser',
130         '../testing/gtest.gyp:gtest',
131       ],
132       'include_dirs': [
133         '..',
134       ],
135       'sources': [
136         # Note: file list duplicated in GN build.
137         'signin/core/browser/fake_account_fetcher_service.cc',
138         'signin/core/browser/fake_account_fetcher_service.h',
139         'signin/core/browser/fake_auth_status_provider.cc',
140         'signin/core/browser/fake_auth_status_provider.h',
141         'signin/core/browser/fake_profile_oauth2_token_service.cc',
142         'signin/core/browser/fake_profile_oauth2_token_service.h',
143         'signin/core/browser/fake_signin_manager.cc',
144         'signin/core/browser/fake_signin_manager.h',
145         'signin/core/browser/test_signin_client.cc',
146         'signin/core/browser/test_signin_client.h',
147       ],
148     },
149   ],
150   'conditions': [
151     ['OS == "android"', {
152       'targets': [
153         {
154           # GN version: //components/signin/core/browser/android:java
155           'target_name': 'signin_core_browser_java',
156           'type': 'none',
157           'dependencies': [
158             '../base/base.gyp:base',
159             '../sync/sync.gyp:sync_java',
160           ],
161           'variables': {
162             'java_in_dir': 'signin/core/browser/android/java',
163           },
164           'includes': [ '../build/java.gypi' ],
165         },
166         {
167           # GN version: //components/signin/core/browser/android:jni_headers
168           'target_name': 'signin_core_browser_jni_headers',
169           'type': 'none',
170           'sources': [
171             'signin/core/browser/android/java/src/org/chromium/components/signin/ChildAccountInfoFetcher.java',
172           ],
173           'variables': {
174             'jni_gen_package': 'components/signin',
175           },
176           'includes': [ '../build/jni_generator.gypi' ],
177         },
178       ],
179     }],
180     ['OS == "ios"', {
181       # GN version: //components/signin/core/browser:ios
182       'targets': [
183         {
184           'target_name': 'signin_ios_browser',
185           'type': 'static_library',
186           'dependencies': [
187             'signin_core_browser',
188           ],
189           'include_dirs': [
190             '..',
191           ],
192           'sources': [
193             # Note: file list duplicated in GN build.
194             'signin/ios/browser/merge_session_observer_bridge.h',
195             'signin/ios/browser/merge_session_observer_bridge.mm',
196             'signin/ios/browser/oauth2_token_service_observer_bridge.h',
197             'signin/ios/browser/oauth2_token_service_observer_bridge.mm',
198             'signin/ios/browser/profile_oauth2_token_service_ios_delegate.h',
199             'signin/ios/browser/profile_oauth2_token_service_ios_delegate.mm',
200             'signin/ios/browser/profile_oauth2_token_service_ios_provider.h',
201           ],
202         },
203         {
204           'target_name': 'signin_ios_browser_test_support',
205           'type': 'static_library',
206           'dependencies': [
207             '../base/base.gyp:base',
208             '../google_apis/google_apis.gyp:google_apis_test_support',
209             'signin_ios_browser',
210           ],
211           'include_dirs': [
212             '..',
213           ],
214           'sources': [
215             # Note: file list duplicated in GN build.
216             'signin/ios/browser/fake_profile_oauth2_token_service_ios_delegate.h',
217             'signin/ios/browser/fake_profile_oauth2_token_service_ios_delegate.mm',
218             'signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.h',
219             'signin/ios/browser/fake_profile_oauth2_token_service_ios_provider.mm',
220           ],
221         },
222       ],
223     }],
224   ],