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.
7 'chromium_code': 1, # Use higher warning level.
10 '../build/win_precompile.gypi',
14 'target_name': 'google_apis',
15 'type': 'static_library',
17 'determine_use_official_keys.gypi',
20 '../base/base.gyp:base',
21 '../crypto/crypto.gyp:crypto',
23 '../third_party/libxml/libxml.gyp:libxml',
26 ['google_api_key!=""', {
27 'defines': ['GOOGLE_API_KEY="<(google_api_key)"'],
29 ['google_default_client_id!=""', {
31 'GOOGLE_DEFAULT_CLIENT_ID="<(google_default_client_id)"',
34 ['google_default_client_secret!=""', {
36 'GOOGLE_DEFAULT_CLIENT_SECRET="<(google_default_client_secret)"',
39 ['OS == "mac" or OS == "ios" or OS == "win"', {
41 '../third_party/nss/nss.gyp:nspr',
42 '../third_party/nss/nss.gyp:nss',
47 '../third_party/openssl/openssl.gyp:openssl',
50 ['exclude', 'cup/client_update_protocol_nss\.cc$'],
55 'cup/client_update_protocol_nss.cc',
59 'cup/client_update_protocol_openssl.cc',
62 ['chromeos==1 or OS == "android"', {
64 'gaia/dummy_identity_provider.cc',
65 'gaia/dummy_identity_provider.h',
70 'cup/client_update_protocol.cc',
71 'cup/client_update_protocol.h',
72 'cup/client_update_protocol_nss.cc',
73 'cup/client_update_protocol_openssl.cc',
74 'drive/auth_service.cc',
75 'drive/auth_service.h',
76 'drive/auth_service_interface.h',
77 'drive/auth_service_observer.h',
78 'drive/base_requests.cc',
79 'drive/base_requests.h',
80 'drive/drive_api_parser.cc',
81 'drive/drive_api_parser.h',
82 'drive/drive_api_requests.cc',
83 'drive/drive_api_requests.h',
84 'drive/drive_api_url_generator.cc',
85 'drive/drive_api_url_generator.h',
86 'drive/drive_common_callbacks.h',
87 'drive/drive_entry_kinds.h',
88 'drive/gdata_errorcode.cc',
89 'drive/gdata_errorcode.h',
90 'drive/gdata_wapi_requests.cc',
91 'drive/gdata_wapi_requests.h',
92 'drive/gdata_wapi_parser.cc',
93 'drive/gdata_wapi_parser.h',
94 'drive/gdata_wapi_url_generator.cc',
95 'drive/gdata_wapi_url_generator.h',
96 'drive/request_sender.cc',
97 'drive/request_sender.h',
98 'drive/request_util.cc',
99 'drive/request_util.h',
100 'drive/task_util.cc',
102 'drive/time_util.cc',
104 'gaia/dummy_identity_provider.cc',
105 'gaia/dummy_identity_provider.h',
106 'gaia/gaia_auth_consumer.cc',
107 'gaia/gaia_auth_consumer.h',
108 'gaia/gaia_auth_fetcher.cc',
109 'gaia/gaia_auth_fetcher.h',
110 'gaia/gaia_auth_util.cc',
111 'gaia/gaia_auth_util.h',
112 'gaia/gaia_constants.cc',
113 'gaia/gaia_constants.h',
114 'gaia/gaia_oauth_client.cc',
115 'gaia/gaia_oauth_client.h',
116 'gaia/gaia_switches.cc',
117 'gaia/gaia_switches.h',
120 'gaia/google_service_auth_error.cc',
121 'gaia/google_service_auth_error.h',
122 'gaia/identity_provider.cc',
123 'gaia/identity_provider.h',
124 'gaia/merge_session_helper.cc',
125 'gaia/merge_session_helper.h',
126 'gaia/oauth_request_signer.cc',
127 'gaia/oauth_request_signer.h',
128 'gaia/oauth2_access_token_consumer.h',
129 'gaia/oauth2_access_token_fetcher.h',
130 'gaia/oauth2_access_token_fetcher.cc',
131 'gaia/oauth2_access_token_fetcher_impl.cc',
132 'gaia/oauth2_access_token_fetcher_impl.h',
133 'gaia/oauth2_api_call_flow.cc',
134 'gaia/oauth2_api_call_flow.h',
135 'gaia/oauth2_mint_token_flow.cc',
136 'gaia/oauth2_mint_token_flow.h',
137 'gaia/oauth2_token_service.cc',
138 'gaia/oauth2_token_service.h',
139 'gaia/oauth2_token_service_request.cc',
140 'gaia/oauth2_token_service_request.h',
141 'gaia/ubertoken_fetcher.cc',
142 'gaia/ubertoken_fetcher.h',
143 'google_api_keys.cc',
146 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
147 'msvs_disabled_warnings': [4267, ],
150 'target_name': 'google_apis_unittests',
151 'type': 'executable',
153 '../base/base.gyp:run_all_unittests',
154 '../testing/gmock.gyp:gmock',
155 '../testing/gtest.gyp:gtest',
157 'google_apis_test_support',
160 'determine_use_official_keys.gypi',
166 'google_api_keys_unittest.cc',
167 'cup/client_update_protocol_unittest.cc',
168 'drive/base_requests_unittest.cc',
169 'drive/base_requests_server_unittest.cc',
170 'drive/drive_api_requests_unittest.cc',
171 'drive/drive_api_parser_unittest.cc',
172 'drive/drive_api_url_generator_unittest.cc',
173 'drive/gdata_wapi_parser_unittest.cc',
174 'drive/gdata_wapi_requests_unittest.cc',
175 'drive/gdata_wapi_url_generator_unittest.cc',
176 'drive/request_sender_unittest.cc',
177 'drive/request_util_unittest.cc',
178 'drive/time_util_unittest.cc',
179 'gaia/gaia_auth_fetcher_unittest.cc',
180 'gaia/gaia_auth_util_unittest.cc',
181 'gaia/gaia_oauth_client_unittest.cc',
182 'gaia/google_service_auth_error_unittest.cc',
183 'gaia/merge_session_helper_unittest.cc',
184 'gaia/oauth_request_signer_unittest.cc',
185 'gaia/oauth2_access_token_fetcher_impl_unittest.cc',
186 'gaia/oauth2_api_call_flow_unittest.cc',
187 'gaia/oauth2_mint_token_flow_unittest.cc',
188 'gaia/oauth2_token_service_request_unittest.cc',
189 'gaia/oauth2_token_service_unittest.cc',
190 'gaia/ubertoken_fetcher_unittest.cc',
195 'drive/base_requests_server_unittest.cc',
196 'drive/drive_api_parser_unittest.cc',
197 'drive/drive_api_requests_unittest.cc',
198 'drive/gdata_wapi_parser_unittest.cc',
199 'drive/gdata_wapi_requests_unittest.cc',
205 'target_name': 'google_apis_test_support',
206 'type': 'static_library',
208 '../base/base.gyp:base',
209 '../base/base.gyp:test_support_base',
210 '../net/net.gyp:net',
211 '../net/net.gyp:net_test_support',
213 'export_dependent_settings': [
214 '../base/base.gyp:base',
215 '../base/base.gyp:test_support_base',
216 '../net/net.gyp:net',
217 '../net/net.gyp:net_test_support',
220 'drive/dummy_auth_service.cc',
221 'drive/dummy_auth_service.h',
222 'drive/test_util.cc',
226 'gaia/fake_identity_provider.cc',
227 'gaia/fake_identity_provider.h',
228 'gaia/fake_oauth2_token_service.cc',
229 'gaia/fake_oauth2_token_service.h',
230 'gaia/mock_url_fetcher_factory.h',
231 'gaia/oauth2_token_service_test_util.cc',
232 'gaia/oauth2_token_service_test_util.h',