Convert DLOG/DVLOG messages in chrome.dial to VLOG.
[chromium-blink-merge.git] / google_apis / google_apis.gyp
blobecc560979a418f393e5d12f4392e3834b50b1bb2
1 # Copyright (c) 2012 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   'variables': {
7     'chromium_code': 1,  # Use higher warning level.
8   },
9   'includes': [
10     '../build/win_precompile.gypi',
11   ],
12   'targets': [
13     {
14       'target_name': 'google_apis',
15       'type': 'static_library',
16       'includes': [
17         'determine_use_official_keys.gypi',
18       ],
19       'dependencies': [
20         '../base/base.gyp:base',
21         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
22         '../crypto/crypto.gyp:crypto',
23         '../net/net.gyp:net',
24         '../third_party/libxml/libxml.gyp:libxml',
25       ],
26       'conditions': [
27         ['google_api_key!=""', {
28           'defines': ['GOOGLE_API_KEY="<(google_api_key)"'],
29         }],
30         ['google_default_client_id!=""', {
31           'defines': [
32             'GOOGLE_DEFAULT_CLIENT_ID="<(google_default_client_id)"',
33           ]
34         }],
35         ['google_default_client_secret!=""', {
36           'defines': [
37             'GOOGLE_DEFAULT_CLIENT_SECRET="<(google_default_client_secret)"',
38           ]
39         }],
40         ['OS=="mac" or OS=="ios" or OS=="win"', {
41           'dependencies': [
42             '../third_party/nss/nss.gyp:nspr',
43             '../third_party/nss/nss.gyp:nss',
44           ],
45         }],
46         ['OS=="android"', {
47           'dependencies': [
48             '../third_party/openssl/openssl.gyp:openssl',
49           ],
50           'sources/': [
51             ['exclude', 'cup/client_update_protocol_nss\.cc$'],
52           ],
53         }],
54         ['enable_extensions==1', {
55           'sources': [
56             'drive/auth_service.cc',
57             'drive/auth_service.h',
58             'drive/auth_service_interface.h',
59             'drive/auth_service_observer.h',
60             'drive/base_requests.cc',
61             'drive/base_requests.h',
62             'drive/drive_api_parser.cc',
63             'drive/drive_api_parser.h',
64             'drive/drive_api_requests.cc',
65             'drive/drive_api_requests.h',
66             'drive/drive_api_url_generator.cc',
67             'drive/drive_api_url_generator.h',
68             'drive/drive_common_callbacks.h',
69             'drive/gdata_errorcode.cc',
70             'drive/gdata_errorcode.h',
71             'drive/gdata_wapi_requests.cc',
72             'drive/gdata_wapi_requests.h',
73             'drive/gdata_wapi_parser.cc',
74             'drive/gdata_wapi_parser.h',
75             'drive/gdata_wapi_url_generator.cc',
76             'drive/gdata_wapi_url_generator.h',
77             'drive/request_sender.cc',
78             'drive/request_sender.h',
79             'drive/request_util.cc',
80             'drive/request_util.h',
81             'drive/task_util.cc',
82             'drive/task_util.h',
83             'drive/time_util.cc',
84             'drive/time_util.h',
85           ],
86         }],
87         ['use_openssl==1', {
88           'sources!': [
89             'cup/client_update_protocol_nss.cc',
90           ],
91         }, {
92           'sources!': [
93             'cup/client_update_protocol_openssl.cc',
94           ],
95         }],
96       ],
97       'sources': [
98         'cup/client_update_protocol.cc',
99         'cup/client_update_protocol.h',
100         'cup/client_update_protocol_nss.cc',
101         'cup/client_update_protocol_openssl.cc',
102         'gaia/account_tracker.cc',
103         'gaia/account_tracker.h',
104         'gaia/gaia_auth_consumer.cc',
105         'gaia/gaia_auth_consumer.h',
106         'gaia/gaia_auth_fetcher.cc',
107         'gaia/gaia_auth_fetcher.h',
108         'gaia/gaia_auth_util.cc',
109         'gaia/gaia_auth_util.h',
110         'gaia/gaia_constants.cc',
111         'gaia/gaia_constants.h',
112         'gaia/gaia_oauth_client.cc',
113         'gaia/gaia_oauth_client.h',
114         'gaia/gaia_switches.cc',
115         'gaia/gaia_switches.h',
116         'gaia/gaia_urls.cc',
117         'gaia/gaia_urls.h',
118         'gaia/google_service_auth_error.cc',
119         'gaia/google_service_auth_error.h',
120         'gaia/identity_provider.cc',
121         'gaia/identity_provider.h',
122         'gaia/merge_session_helper.cc',
123         'gaia/merge_session_helper.h',
124         'gaia/oauth_request_signer.cc',
125         'gaia/oauth_request_signer.h',
126         'gaia/oauth2_access_token_consumer.h',
127         'gaia/oauth2_access_token_fetcher.h',
128         'gaia/oauth2_access_token_fetcher.cc',
129         'gaia/oauth2_access_token_fetcher_impl.cc',
130         'gaia/oauth2_access_token_fetcher_impl.h',
131         'gaia/oauth2_api_call_flow.cc',
132         'gaia/oauth2_api_call_flow.h',
133         'gaia/oauth2_mint_token_flow.cc',
134         'gaia/oauth2_mint_token_flow.h',
135         'gaia/oauth2_token_service.cc',
136         'gaia/oauth2_token_service.h',
137         'gaia/oauth2_token_service_request.cc',
138         'gaia/oauth2_token_service_request.h',
139         'gaia/ubertoken_fetcher.cc',
140         'gaia/ubertoken_fetcher.h',
141         'google_api_keys.cc',
142         'google_api_keys.h',
143       ],
144       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
145       'msvs_disabled_warnings': [4267, ],
146     },
147     {
148       'target_name': 'google_apis_unittests',
149       'type': 'executable',
150       'dependencies': [
151         '../base/base.gyp:run_all_unittests',
152         '../testing/gmock.gyp:gmock',
153         '../testing/gtest.gyp:gtest',
154         'google_apis',
155         'google_apis_test_support',
156       ],
157       'includes': [
158         'determine_use_official_keys.gypi',
159       ],
160       'include_dirs': [
161         '..',
162       ],
163       'sources': [
164         'google_api_keys_unittest.cc',
165         'cup/client_update_protocol_unittest.cc',
166         'gaia/account_tracker_unittest.cc',
167         'gaia/gaia_auth_fetcher_unittest.cc',
168         'gaia/gaia_auth_util_unittest.cc',
169         'gaia/gaia_oauth_client_unittest.cc',
170         'gaia/google_service_auth_error_unittest.cc',
171         'gaia/merge_session_helper_unittest.cc',
172         'gaia/oauth_request_signer_unittest.cc',
173         'gaia/oauth2_access_token_fetcher_impl_unittest.cc',
174         'gaia/oauth2_api_call_flow_unittest.cc',
175         'gaia/oauth2_mint_token_flow_unittest.cc',
176         'gaia/oauth2_token_service_request_unittest.cc',
177         'gaia/oauth2_token_service_unittest.cc',
178         'gaia/ubertoken_fetcher_unittest.cc',
179       ],
180       'conditions': [
181         ['enable_extensions==1', {
182           'sources': [
183             'drive/base_requests_server_unittest.cc',
184             'drive/base_requests_unittest.cc',
185             'drive/drive_api_parser_unittest.cc',
186             'drive/drive_api_requests_unittest.cc',
187             'drive/drive_api_url_generator_unittest.cc',
188             'drive/gdata_wapi_parser_unittest.cc',
189             'drive/gdata_wapi_requests_unittest.cc',
190             'drive/gdata_wapi_url_generator_unittest.cc',
191             'drive/request_sender_unittest.cc',
192             'drive/request_util_unittest.cc',
193             'drive/time_util_unittest.cc',
194           ],
195         }],
196       ],
197     },
198     {
199       'target_name': 'google_apis_test_support',
200       'type': 'static_library',
201       'dependencies': [
202         '../base/base.gyp:base',
203         '../base/base.gyp:test_support_base',
204         '../net/net.gyp:net',
205         '../net/net.gyp:net_test_support',
206       ],
207       'export_dependent_settings': [
208         '../base/base.gyp:base',
209         '../base/base.gyp:test_support_base',
210         '../net/net.gyp:net',
211         '../net/net.gyp:net_test_support',
212       ],
213       'sources': [
214         'gaia/fake_gaia.cc',
215         'gaia/fake_gaia.h',
216         'gaia/fake_identity_provider.cc',
217         'gaia/fake_identity_provider.h',
218         'gaia/fake_oauth2_token_service.cc',
219         'gaia/fake_oauth2_token_service.h',
220         'gaia/mock_url_fetcher_factory.h',
221         'gaia/oauth2_token_service_test_util.cc',
222         'gaia/oauth2_token_service_test_util.h',
223       ],
224       'conditions': [
225         ['enable_extensions==1', {
226           'sources': [
227             'drive/dummy_auth_service.cc',
228             'drive/dummy_auth_service.h',
229             'drive/test_util.cc',
230             'drive/test_util.h',
231           ],
232         }],
233       ],
234     },
235   ],