Use the host instead of the title for streamlined hosted apps.
[chromium-blink-merge.git] / components / signin.gypi
blob5f9993ef9a850741dd6a1e1b34e7e8934c6130f4
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/signin_pref_names.cc',
16         'signin/core/common/signin_pref_names.h',
17         'signin/core/common/signin_switches.cc',
18         'signin/core/common/signin_switches.h',
19         'signin/core/common/profile_management_switches.cc',
20         'signin/core/common/profile_management_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         '../crypto/crypto.gyp:crypto',
30         '../google_apis/google_apis.gyp:google_apis',
31         '../net/net.gyp:net',
32         '../sql/sql.gyp:sql',
33         '../third_party/icu/icu.gyp:icui18n',
34         '../third_party/icu/icu.gyp:icuuc',
35         'keyed_service_core',
36         'os_crypt',
37         'signin_core_common',
38         'webdata_common',
39       ],
40       'include_dirs': [
41         '..',
42       ],
43       'sources': [
44         # Note: file list duplicated in GN build.
45         'signin/core/browser/about_signin_internals.cc',
46         'signin/core/browser/about_signin_internals.h',
47         'signin/core/browser/account_reconcilor.cc',
48         'signin/core/browser/account_reconcilor.h',
49         'signin/core/browser/account_service_flag_fetcher.cc',
50         'signin/core/browser/account_service_flag_fetcher.h',
51         'signin/core/browser/account_tracker_service.cc',
52         'signin/core/browser/account_tracker_service.h',
53         'signin/core/browser/mutable_profile_oauth2_token_service.cc',
54         'signin/core/browser/mutable_profile_oauth2_token_service.h',
55         'signin/core/browser/profile_oauth2_token_service.cc',
56         'signin/core/browser/profile_oauth2_token_service.h',
57         'signin/core/browser/signin_account_id_helper.cc',
58         'signin/core/browser/signin_account_id_helper.h',
59         'signin/core/browser/signin_client.h',
60         'signin/core/browser/signin_error_controller.cc',
61         'signin/core/browser/signin_error_controller.h',
62         'signin/core/browser/signin_internals_util.cc',
63         'signin/core/browser/signin_internals_util.h',
64         'signin/core/browser/signin_manager_base.cc',
65         'signin/core/browser/signin_manager_base.h',
66         'signin/core/browser/signin_manager.cc',
67         'signin/core/browser/signin_manager.h',
68         'signin/core/browser/signin_manager_cookie_helper.cc',
69         'signin/core/browser/signin_manager_cookie_helper.h',
70         'signin/core/browser/signin_metrics.cc',
71         'signin/core/browser/signin_metrics.h',
72         'signin/core/browser/signin_oauth_helper.cc',
73         'signin/core/browser/signin_oauth_helper.h',
74         'signin/core/browser/signin_tracker.cc',
75         'signin/core/browser/signin_tracker.h',
76         'signin/core/browser/webdata/token_service_table.cc',
77         'signin/core/browser/webdata/token_service_table.h',
78         'signin/core/browser/webdata/token_web_data.cc',
79         'signin/core/browser/webdata/token_web_data.h',
80       ],
81       'conditions': [
82         ['OS=="android" or OS=="ios"', {
83           'sources!': [
84             # Not used on Android nor iOS.
85             'signin/core/browser/mutable_profile_oauth2_token_service.cc',
86             'signin/core/browser/mutable_profile_oauth2_token_service.h',
87           ],
88         }],
89         ['chromeos==1', {
90           'sources!': [
91             'signin/core/browser/signin_manager.cc',
92           ],
93         }],
94       ],
95       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
96       'msvs_disabled_warnings': [4267, ],
97     },
98     {
99       # GN version: //components/signin/core/browser:test_support
100       'target_name': 'signin_core_browser_test_support',
101       'type': 'static_library',
102       'dependencies': [
103         'signin_core_browser',
104         '../testing/gtest.gyp:gtest',
105       ],
106       'include_dirs': [
107         '..',
108       ],
109       'sources': [
110         # Note: file list duplicated in GN build.
111         'signin/core/browser/fake_auth_status_provider.cc',
112         'signin/core/browser/fake_auth_status_provider.h',
113         'signin/core/browser/test_signin_client.cc',
114         'signin/core/browser/test_signin_client.h',
115       ],
116     },
117   ],
118   'conditions': [
119     ['OS == "ios"', {
120       'targets': [
121         {
122           # GN version: //components/signin/core/browser:ios
123           'target_name': 'signin_ios_browser',
124           'type': 'static_library',
125           'dependencies': [
126             'signin_core_browser',
127             '../ios/provider/ios_components.gyp:ios_components',
128           ],
129           'include_dirs': [
130             '..',
131           ],
132           'sources': [
133             # Note: file list duplicated in GN build.
134             'signin/ios/browser/profile_oauth2_token_service_ios.h',
135             'signin/ios/browser/profile_oauth2_token_service_ios.mm',
136           ],
137         },
138       ],
139     }],
140   ],