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 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
22 '../crypto/crypto.gyp:crypto',
24 '../third_party/libxml/libxml.gyp:libxml',
25 '../url/url.gyp:url_lib',
28 ['google_api_key!=""', {
29 'defines': ['GOOGLE_API_KEY="<(google_api_key)"'],
31 ['google_default_client_id!=""', {
33 'GOOGLE_DEFAULT_CLIENT_ID="<(google_default_client_id)"',
36 ['google_default_client_secret!=""', {
38 'GOOGLE_DEFAULT_CLIENT_SECRET="<(google_default_client_secret)"',
41 ['enable_extensions==1', {
43 # Note: sources list duplicated in GN build.
44 'drive/auth_service.cc',
45 'drive/auth_service.h',
46 'drive/auth_service_interface.h',
47 'drive/auth_service_observer.h',
48 'drive/base_requests.cc',
49 'drive/base_requests.h',
50 'drive/drive_api_parser.cc',
51 'drive/drive_api_parser.h',
52 'drive/drive_api_requests.cc',
53 'drive/drive_api_requests.h',
54 'drive/drive_api_url_generator.cc',
55 'drive/drive_api_url_generator.h',
56 'drive/drive_common_callbacks.h',
57 'drive/gdata_errorcode.cc',
58 'drive/gdata_errorcode.h',
59 'drive/gdata_wapi_requests.cc',
60 'drive/gdata_wapi_requests.h',
61 'drive/gdata_wapi_parser.cc',
62 'drive/gdata_wapi_parser.h',
63 'drive/gdata_wapi_url_generator.cc',
64 'drive/gdata_wapi_url_generator.h',
65 'drive/request_sender.cc',
66 'drive/request_sender.h',
67 'drive/request_util.cc',
68 'drive/request_util.h',
77 # Note: sources list duplicated in GN build.
78 'gaia/account_tracker.cc',
79 'gaia/account_tracker.h',
80 'gaia/gaia_auth_consumer.cc',
81 'gaia/gaia_auth_consumer.h',
82 'gaia/gaia_auth_fetcher.cc',
83 'gaia/gaia_auth_fetcher.h',
84 'gaia/gaia_auth_util.cc',
85 'gaia/gaia_auth_util.h',
86 'gaia/gaia_constants.cc',
87 'gaia/gaia_constants.h',
88 'gaia/gaia_oauth_client.cc',
89 'gaia/gaia_oauth_client.h',
90 'gaia/gaia_switches.cc',
91 'gaia/gaia_switches.h',
94 'gaia/google_service_auth_error.cc',
95 'gaia/google_service_auth_error.h',
96 'gaia/identity_provider.cc',
97 'gaia/identity_provider.h',
98 'gaia/merge_session_helper.cc',
99 'gaia/merge_session_helper.h',
100 'gaia/oauth_request_signer.cc',
101 'gaia/oauth_request_signer.h',
102 'gaia/oauth2_access_token_consumer.h',
103 'gaia/oauth2_access_token_fetcher.h',
104 'gaia/oauth2_access_token_fetcher.cc',
105 'gaia/oauth2_access_token_fetcher_impl.cc',
106 'gaia/oauth2_access_token_fetcher_impl.h',
107 'gaia/oauth2_api_call_flow.cc',
108 'gaia/oauth2_api_call_flow.h',
109 'gaia/oauth2_mint_token_flow.cc',
110 'gaia/oauth2_mint_token_flow.h',
111 'gaia/oauth2_token_service.cc',
112 'gaia/oauth2_token_service.h',
113 'gaia/oauth2_token_service_request.cc',
114 'gaia/oauth2_token_service_request.h',
115 'gaia/ubertoken_fetcher.cc',
116 'gaia/ubertoken_fetcher.h',
117 'google_api_keys.cc',
120 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
121 'msvs_disabled_warnings': [4267, ],
124 'target_name': 'google_apis_unittests',
125 'type': 'executable',
127 '../base/base.gyp:run_all_unittests',
128 '../testing/gmock.gyp:gmock',
129 '../testing/gtest.gyp:gtest',
131 'google_apis_test_support',
134 'determine_use_official_keys.gypi',
140 'google_api_keys_unittest.cc',
141 'gaia/account_tracker_unittest.cc',
142 'gaia/gaia_auth_fetcher_unittest.cc',
143 'gaia/gaia_auth_util_unittest.cc',
144 'gaia/gaia_oauth_client_unittest.cc',
145 'gaia/google_service_auth_error_unittest.cc',
146 'gaia/merge_session_helper_unittest.cc',
147 'gaia/oauth_request_signer_unittest.cc',
148 'gaia/oauth2_access_token_fetcher_impl_unittest.cc',
149 'gaia/oauth2_api_call_flow_unittest.cc',
150 'gaia/oauth2_mint_token_flow_unittest.cc',
151 'gaia/oauth2_token_service_request_unittest.cc',
152 'gaia/oauth2_token_service_unittest.cc',
153 'gaia/ubertoken_fetcher_unittest.cc',
156 ['enable_extensions==1', {
158 'drive/base_requests_server_unittest.cc',
159 'drive/base_requests_unittest.cc',
160 'drive/drive_api_parser_unittest.cc',
161 'drive/drive_api_requests_unittest.cc',
162 'drive/drive_api_url_generator_unittest.cc',
163 'drive/gdata_wapi_parser_unittest.cc',
164 'drive/gdata_wapi_requests_unittest.cc',
165 'drive/gdata_wapi_url_generator_unittest.cc',
166 'drive/request_sender_unittest.cc',
167 'drive/request_util_unittest.cc',
168 'drive/time_util_unittest.cc',
174 'target_name': 'google_apis_test_support',
175 'type': 'static_library',
177 '../base/base.gyp:base',
178 '../base/base.gyp:test_support_base',
179 '../net/net.gyp:net',
180 '../net/net.gyp:net_test_support',
182 'export_dependent_settings': [
183 '../base/base.gyp:base',
184 '../base/base.gyp:test_support_base',
185 '../net/net.gyp:net',
186 '../net/net.gyp:net_test_support',
191 'gaia/fake_identity_provider.cc',
192 'gaia/fake_identity_provider.h',
193 'gaia/fake_oauth2_token_service.cc',
194 'gaia/fake_oauth2_token_service.h',
195 'gaia/mock_url_fetcher_factory.h',
196 'gaia/oauth2_token_service_test_util.cc',
197 'gaia/oauth2_token_service_test_util.h',
200 ['enable_extensions==1', {
202 'drive/dummy_auth_service.cc',
203 'drive/dummy_auth_service.h',
204 'drive/test_util.cc',