OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, # Use higher warning level. | 7 'chromium_code': 1, # Use higher warning level. |
8 }, | 8 }, |
9 'includes': [ | 9 'includes': [ |
10 '../build/win_precompile.gypi', | 10 '../build/win_precompile.gypi', |
(...skipping 18 matching lines...) Expand all Loading... |
29 ['google_default_client_id!=""', { | 29 ['google_default_client_id!=""', { |
30 'defines': [ | 30 'defines': [ |
31 'GOOGLE_DEFAULT_CLIENT_ID="<(google_default_client_id)"', | 31 'GOOGLE_DEFAULT_CLIENT_ID="<(google_default_client_id)"', |
32 ] | 32 ] |
33 }], | 33 }], |
34 ['google_default_client_secret!=""', { | 34 ['google_default_client_secret!=""', { |
35 'defines': [ | 35 'defines': [ |
36 'GOOGLE_DEFAULT_CLIENT_SECRET="<(google_default_client_secret)"', | 36 'GOOGLE_DEFAULT_CLIENT_SECRET="<(google_default_client_secret)"', |
37 ] | 37 ] |
38 }], | 38 }], |
39 ['OS == "mac" or OS == "ios" or OS == "win"', { | 39 ['OS=="mac" or OS=="ios" or OS=="win"', { |
40 'dependencies': [ | 40 'dependencies': [ |
41 '../third_party/nss/nss.gyp:nspr', | 41 '../third_party/nss/nss.gyp:nspr', |
42 '../third_party/nss/nss.gyp:nss', | 42 '../third_party/nss/nss.gyp:nss', |
43 ], | 43 ], |
44 }], | 44 }], |
45 ['OS == "android"', { | 45 ['OS=="android"', { |
46 'dependencies': [ | 46 'dependencies': [ |
47 '../third_party/openssl/openssl.gyp:openssl', | 47 '../third_party/openssl/openssl.gyp:openssl', |
48 ], | 48 ], |
49 'sources/': [ | 49 'sources/': [ |
50 ['exclude', 'cup/client_update_protocol_nss\.cc$'], | 50 ['exclude', 'cup/client_update_protocol_nss\.cc$'], |
51 ], | 51 ], |
52 }], | 52 }], |
| 53 ['enable_extensions==1', { |
| 54 'sources': [ |
| 55 'drive/auth_service.cc', |
| 56 'drive/auth_service.h', |
| 57 'drive/auth_service_interface.h', |
| 58 'drive/auth_service_observer.h', |
| 59 'drive/base_requests.cc', |
| 60 'drive/base_requests.h', |
| 61 'drive/drive_api_parser.cc', |
| 62 'drive/drive_api_parser.h', |
| 63 'drive/drive_api_requests.cc', |
| 64 'drive/drive_api_requests.h', |
| 65 'drive/drive_api_url_generator.cc', |
| 66 'drive/drive_api_url_generator.h', |
| 67 'drive/drive_common_callbacks.h', |
| 68 'drive/drive_entry_kinds.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 }], |
53 ['use_openssl==1', { | 87 ['use_openssl==1', { |
54 'sources!': [ | 88 'sources!': [ |
55 'cup/client_update_protocol_nss.cc', | 89 'cup/client_update_protocol_nss.cc', |
56 ], | 90 ], |
57 }, { | 91 }, { |
58 'sources!': [ | 92 'sources!': [ |
59 'cup/client_update_protocol_openssl.cc', | 93 'cup/client_update_protocol_openssl.cc', |
60 ], | 94 ], |
61 }], | 95 }], |
62 ], | 96 ], |
63 'sources': [ | 97 'sources': [ |
64 'cup/client_update_protocol.cc', | 98 'cup/client_update_protocol.cc', |
65 'cup/client_update_protocol.h', | 99 'cup/client_update_protocol.h', |
66 'cup/client_update_protocol_nss.cc', | 100 'cup/client_update_protocol_nss.cc', |
67 'cup/client_update_protocol_openssl.cc', | 101 'cup/client_update_protocol_openssl.cc', |
68 'drive/auth_service.cc', | |
69 'drive/auth_service.h', | |
70 'drive/auth_service_interface.h', | |
71 'drive/auth_service_observer.h', | |
72 'drive/base_requests.cc', | |
73 'drive/base_requests.h', | |
74 'drive/drive_api_parser.cc', | |
75 'drive/drive_api_parser.h', | |
76 'drive/drive_api_requests.cc', | |
77 'drive/drive_api_requests.h', | |
78 'drive/drive_api_url_generator.cc', | |
79 'drive/drive_api_url_generator.h', | |
80 'drive/drive_common_callbacks.h', | |
81 'drive/drive_entry_kinds.h', | |
82 'drive/gdata_errorcode.cc', | |
83 'drive/gdata_errorcode.h', | |
84 'drive/gdata_wapi_requests.cc', | |
85 'drive/gdata_wapi_requests.h', | |
86 'drive/gdata_wapi_parser.cc', | |
87 'drive/gdata_wapi_parser.h', | |
88 'drive/gdata_wapi_url_generator.cc', | |
89 'drive/gdata_wapi_url_generator.h', | |
90 'drive/request_sender.cc', | |
91 'drive/request_sender.h', | |
92 'drive/request_util.cc', | |
93 'drive/request_util.h', | |
94 'drive/task_util.cc', | |
95 'drive/task_util.h', | |
96 'drive/time_util.cc', | |
97 'drive/time_util.h', | |
98 'gaia/account_tracker.cc', | 102 'gaia/account_tracker.cc', |
99 'gaia/account_tracker.h', | 103 'gaia/account_tracker.h', |
100 'gaia/gaia_auth_consumer.cc', | 104 'gaia/gaia_auth_consumer.cc', |
101 'gaia/gaia_auth_consumer.h', | 105 'gaia/gaia_auth_consumer.h', |
102 'gaia/gaia_auth_fetcher.cc', | 106 'gaia/gaia_auth_fetcher.cc', |
103 'gaia/gaia_auth_fetcher.h', | 107 'gaia/gaia_auth_fetcher.h', |
104 'gaia/gaia_auth_util.cc', | 108 'gaia/gaia_auth_util.cc', |
105 'gaia/gaia_auth_util.h', | 109 'gaia/gaia_auth_util.h', |
106 'gaia/gaia_constants.cc', | 110 'gaia/gaia_constants.cc', |
107 'gaia/gaia_constants.h', | 111 'gaia/gaia_constants.h', |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 ], | 156 ], |
153 'includes': [ | 157 'includes': [ |
154 'determine_use_official_keys.gypi', | 158 'determine_use_official_keys.gypi', |
155 ], | 159 ], |
156 'include_dirs': [ | 160 'include_dirs': [ |
157 '..', | 161 '..', |
158 ], | 162 ], |
159 'sources': [ | 163 'sources': [ |
160 'google_api_keys_unittest.cc', | 164 'google_api_keys_unittest.cc', |
161 'cup/client_update_protocol_unittest.cc', | 165 'cup/client_update_protocol_unittest.cc', |
162 'drive/base_requests_unittest.cc', | |
163 'drive/base_requests_server_unittest.cc', | |
164 'drive/drive_api_requests_unittest.cc', | |
165 'drive/drive_api_parser_unittest.cc', | |
166 'drive/drive_api_url_generator_unittest.cc', | |
167 'drive/gdata_wapi_parser_unittest.cc', | |
168 'drive/gdata_wapi_requests_unittest.cc', | |
169 'drive/gdata_wapi_url_generator_unittest.cc', | |
170 'drive/request_sender_unittest.cc', | |
171 'drive/request_util_unittest.cc', | |
172 'drive/time_util_unittest.cc', | |
173 'gaia/account_tracker_unittest.cc', | 166 'gaia/account_tracker_unittest.cc', |
174 'gaia/gaia_auth_fetcher_unittest.cc', | 167 'gaia/gaia_auth_fetcher_unittest.cc', |
175 'gaia/gaia_auth_util_unittest.cc', | 168 'gaia/gaia_auth_util_unittest.cc', |
176 'gaia/gaia_oauth_client_unittest.cc', | 169 'gaia/gaia_oauth_client_unittest.cc', |
177 'gaia/google_service_auth_error_unittest.cc', | 170 'gaia/google_service_auth_error_unittest.cc', |
178 'gaia/merge_session_helper_unittest.cc', | 171 'gaia/merge_session_helper_unittest.cc', |
179 'gaia/oauth_request_signer_unittest.cc', | 172 'gaia/oauth_request_signer_unittest.cc', |
180 'gaia/oauth2_access_token_fetcher_impl_unittest.cc', | 173 'gaia/oauth2_access_token_fetcher_impl_unittest.cc', |
181 'gaia/oauth2_api_call_flow_unittest.cc', | 174 'gaia/oauth2_api_call_flow_unittest.cc', |
182 'gaia/oauth2_mint_token_flow_unittest.cc', | 175 'gaia/oauth2_mint_token_flow_unittest.cc', |
183 'gaia/oauth2_token_service_request_unittest.cc', | 176 'gaia/oauth2_token_service_request_unittest.cc', |
184 'gaia/oauth2_token_service_unittest.cc', | 177 'gaia/oauth2_token_service_unittest.cc', |
185 'gaia/ubertoken_fetcher_unittest.cc', | 178 'gaia/ubertoken_fetcher_unittest.cc', |
186 ], | 179 ], |
187 'conditions': [ | 180 'conditions': [ |
188 ['OS=="android"', { | 181 ['enable_extensions==1', { |
189 'sources!': [ | 182 'sources': [ |
190 'drive/base_requests_server_unittest.cc', | 183 'drive/base_requests_server_unittest.cc', |
| 184 'drive/base_requests_unittest.cc', |
191 'drive/drive_api_parser_unittest.cc', | 185 'drive/drive_api_parser_unittest.cc', |
192 'drive/drive_api_requests_unittest.cc', | 186 'drive/drive_api_requests_unittest.cc', |
| 187 'drive/drive_api_url_generator_unittest.cc', |
193 'drive/gdata_wapi_parser_unittest.cc', | 188 'drive/gdata_wapi_parser_unittest.cc', |
194 'drive/gdata_wapi_requests_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', |
195 ], | 194 ], |
196 }], | 195 }], |
197 ], | 196 ], |
198 }, | 197 }, |
199 { | 198 { |
200 'target_name': 'google_apis_test_support', | 199 'target_name': 'google_apis_test_support', |
201 'type': 'static_library', | 200 'type': 'static_library', |
202 'dependencies': [ | 201 'dependencies': [ |
203 '../base/base.gyp:base', | 202 '../base/base.gyp:base', |
204 '../base/base.gyp:test_support_base', | 203 '../base/base.gyp:test_support_base', |
205 '../net/net.gyp:net', | 204 '../net/net.gyp:net', |
206 '../net/net.gyp:net_test_support', | 205 '../net/net.gyp:net_test_support', |
207 ], | 206 ], |
208 'export_dependent_settings': [ | 207 'export_dependent_settings': [ |
209 '../base/base.gyp:base', | 208 '../base/base.gyp:base', |
210 '../base/base.gyp:test_support_base', | 209 '../base/base.gyp:test_support_base', |
211 '../net/net.gyp:net', | 210 '../net/net.gyp:net', |
212 '../net/net.gyp:net_test_support', | 211 '../net/net.gyp:net_test_support', |
213 ], | 212 ], |
214 'sources': [ | 213 'sources': [ |
215 'drive/dummy_auth_service.cc', | |
216 'drive/dummy_auth_service.h', | |
217 'drive/test_util.cc', | |
218 'drive/test_util.h', | |
219 'gaia/fake_gaia.cc', | 214 'gaia/fake_gaia.cc', |
220 'gaia/fake_gaia.h', | 215 'gaia/fake_gaia.h', |
221 'gaia/fake_identity_provider.cc', | 216 'gaia/fake_identity_provider.cc', |
222 'gaia/fake_identity_provider.h', | 217 'gaia/fake_identity_provider.h', |
223 'gaia/fake_oauth2_token_service.cc', | 218 'gaia/fake_oauth2_token_service.cc', |
224 'gaia/fake_oauth2_token_service.h', | 219 'gaia/fake_oauth2_token_service.h', |
225 'gaia/mock_url_fetcher_factory.h', | 220 'gaia/mock_url_fetcher_factory.h', |
226 'gaia/oauth2_token_service_test_util.cc', | 221 'gaia/oauth2_token_service_test_util.cc', |
227 'gaia/oauth2_token_service_test_util.h', | 222 'gaia/oauth2_token_service_test_util.h', |
228 ], | 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 ], |
229 }, | 234 }, |
230 ], | 235 ], |
231 } | 236 } |
OLD | NEW |