Fix theoretical int truncation
[chromium-blink-merge.git] / components / signin.gypi
blob5473b579c258ef370757d0b75d6aa50560d4bfc4
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': 'signin_core_common',
9       'type': 'static_library',
10       'include_dirs': [
11         '..',
12       ],
13       'sources': [
14         'signin/core/common/signin_pref_names.cc',
15         'signin/core/common/signin_pref_names.h',
16         'signin/core/common/signin_switches.cc',
17         'signin/core/common/signin_switches.h',
18       ],
19     },
20     {
21       'target_name': 'signin_core_browser',
22       'type': 'static_library',
23       'dependencies': [
24         '../base/base.gyp:base',
25         '../crypto/crypto.gyp:crypto',
26         '../google_apis/google_apis.gyp:google_apis',
27         '../net/net.gyp:net',
28         '../sql/sql.gyp:sql',
29         '../third_party/icu/icu.gyp:icui18n',
30         '../third_party/icu/icu.gyp:icuuc',
31         'keyed_service_core',
32         'os_crypt',
33         'signin_core_common',
34         'webdata_common',
35       ],
36       'include_dirs': [
37         '..',
38       ],
39       'sources': [
40         'signin/core/browser/about_signin_internals.cc',
41         'signin/core/browser/about_signin_internals.h',
42         'signin/core/browser/account_reconcilor.cc',
43         'signin/core/browser/account_reconcilor.h',
44         'signin/core/browser/mutable_profile_oauth2_token_service.cc',
45         'signin/core/browser/mutable_profile_oauth2_token_service.h',
46         'signin/core/browser/profile_oauth2_token_service.cc',
47         'signin/core/browser/profile_oauth2_token_service.h',
48         'signin/core/browser/signin_account_id_helper.cc',
49         'signin/core/browser/signin_account_id_helper.h',
50         'signin/core/browser/signin_client.h',
51         'signin/core/browser/signin_error_controller.cc',
52         'signin/core/browser/signin_error_controller.h',
53         'signin/core/browser/signin_internals_util.cc',
54         'signin/core/browser/signin_internals_util.h',
55         'signin/core/browser/signin_manager_base.cc',
56         'signin/core/browser/signin_manager_base.h',
57         'signin/core/browser/signin_manager.cc',
58         'signin/core/browser/signin_manager.h',
59         'signin/core/browser/signin_manager_cookie_helper.cc',
60         'signin/core/browser/signin_manager_cookie_helper.h',
61         'signin/core/browser/signin_oauth_helper.cc',
62         'signin/core/browser/signin_oauth_helper.h',
63         'signin/core/browser/signin_tracker.cc',
64         'signin/core/browser/signin_tracker.h',
65         'signin/core/browser/webdata/token_service_table.cc',
66         'signin/core/browser/webdata/token_service_table.h',
67         'signin/core/browser/webdata/token_web_data.cc',
68         'signin/core/browser/webdata/token_web_data.h',
69       ],
70       'conditions': [
71         ['OS=="android"', {
72           'sources!': [
73             # Not used on Android.
74             'signin/core/browser/mutable_profile_oauth2_token_service.cc',
75             'signin/core/browser/mutable_profile_oauth2_token_service.h',
76           ],
77         }],
78         ['chromeos==1', {
79           'sources!': [
80             'signin/core/browser/signin_manager.cc',
81           ],
82         }],
83       ],
84       
85       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
86       'msvs_disabled_warnings': [4267, ],
87     },
88     {
89       'target_name': 'signin_core_browser_test_support',
90       'type': 'static_library',
91       'dependencies': [
92         'signin_core_browser',
93         '../testing/gtest.gyp:gtest',
94       ],
95       'include_dirs': [
96         '..',
97       ],
98       'sources': [
99         'signin/core/browser/fake_auth_status_provider.cc',
100         'signin/core/browser/fake_auth_status_provider.h',
101         'signin/core/browser/test_signin_client.cc',
102         'signin/core/browser/test_signin_client.h',
103       ],
104     },
105   ],
106   'conditions': [
107     ['OS == "ios"', {
108       'targets': [
109         {
110           'target_name': 'signin_ios_browser',
111           'type': 'static_library',
112           'dependencies': [
113             'signin_core_browser',
114             '../ios/provider/ios_components.gyp:ios_components',
115           ],
116           'include_dirs': [
117             '..',
118           ],
119           'sources': [
120             'signin/ios/browser/profile_oauth2_token_service_ios.h',
121             'signin/ios/browser/profile_oauth2_token_service_ios.mm',
122           ],
123         },
124       ],
125     }],
126   ],