[email protected] | 6386cf5 | 2012-09-07 04:26:37 | [diff] [blame] | 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. |
| 4 | |
| 5 | { |
| 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', |
[email protected] | f2817cf | 2013-05-16 11:39:54 | [diff] [blame] | 16 | 'includes': [ |
| 17 | 'determine_use_official_keys.gypi', |
| 18 | ], |
[email protected] | 6386cf5 | 2012-09-07 04:26:37 | [diff] [blame] | 19 | 'dependencies': [ |
| 20 | '../base/base.gyp:base', |
| 21 | '../crypto/crypto.gyp:crypto', |
| 22 | '../net/net.gyp:net', |
[email protected] | e196bef3 | 2013-12-03 05:33:13 | [diff] [blame] | 23 | '../third_party/libxml/libxml.gyp:libxml', |
[email protected] | 6386cf5 | 2012-09-07 04:26:37 | [diff] [blame] | 24 | ], |
[email protected] | d647e28 | 2012-09-13 13:10:10 | [diff] [blame] | 25 | 'conditions': [ |
| 26 | ['google_api_key!=""', { |
| 27 | 'defines': ['GOOGLE_API_KEY="<(google_api_key)"'], |
| 28 | }], |
[email protected] | d647e28 | 2012-09-13 13:10:10 | [diff] [blame] | 29 | ['google_default_client_id!=""', { |
| 30 | 'defines': [ |
[email protected] | 6a7caec | 2013-07-08 19:57:19 | [diff] [blame] | 31 | 'GOOGLE_DEFAULT_CLIENT_ID="<(google_default_client_id)"', |
[email protected] | d647e28 | 2012-09-13 13:10:10 | [diff] [blame] | 32 | ] |
| 33 | }], |
| 34 | ['google_default_client_secret!=""', { |
| 35 | 'defines': [ |
[email protected] | 6a7caec | 2013-07-08 19:57:19 | [diff] [blame] | 36 | 'GOOGLE_DEFAULT_CLIENT_SECRET="<(google_default_client_secret)"', |
[email protected] | d647e28 | 2012-09-13 13:10:10 | [diff] [blame] | 37 | ] |
| 38 | }], |
[email protected] | 2ac9693b | 2014-01-03 01:43:05 | [diff] [blame] | 39 | [ 'OS == "mac" or OS == "ios" or OS == "win"', { |
| 40 | 'dependencies': [ |
| 41 | '../third_party/nss/nss.gyp:nspr', |
| 42 | '../third_party/nss/nss.gyp:nss', |
| 43 | ], |
| 44 | }], |
[email protected] | e9c3662f | 2013-06-07 08:32:30 | [diff] [blame] | 45 | [ 'OS == "android"', { |
| 46 | 'dependencies': [ |
| 47 | '../third_party/openssl/openssl.gyp:openssl', |
| 48 | ], |
| 49 | 'sources/': [ |
| 50 | ['exclude', 'cup/client_update_protocol_nss\.cc$'], |
| 51 | ], |
| 52 | }], |
| 53 | [ 'use_openssl==1', { |
| 54 | 'sources!': [ |
| 55 | 'cup/client_update_protocol_nss.cc', |
| 56 | ], |
| 57 | }, { |
| 58 | 'sources!': [ |
| 59 | 'cup/client_update_protocol_openssl.cc', |
| 60 | ], |
| 61 | },], |
[email protected] | d647e28 | 2012-09-13 13:10:10 | [diff] [blame] | 62 | ], |
[email protected] | 6386cf5 | 2012-09-07 04:26:37 | [diff] [blame] | 63 | 'sources': [ |
[email protected] | e9c3662f | 2013-06-07 08:32:30 | [diff] [blame] | 64 | 'cup/client_update_protocol.cc', |
| 65 | 'cup/client_update_protocol.h', |
| 66 | 'cup/client_update_protocol_nss.cc', |
| 67 | 'cup/client_update_protocol_openssl.cc', |
[email protected] | e196bef3 | 2013-12-03 05:33:13 | [diff] [blame] | 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_contacts_requests.cc', |
| 83 | 'drive/gdata_contacts_requests.h', |
| 84 | 'drive/gdata_errorcode.cc', |
| 85 | 'drive/gdata_errorcode.h', |
| 86 | 'drive/gdata_wapi_requests.cc', |
| 87 | 'drive/gdata_wapi_requests.h', |
| 88 | 'drive/gdata_wapi_parser.cc', |
| 89 | 'drive/gdata_wapi_parser.h', |
| 90 | 'drive/gdata_wapi_url_generator.cc', |
| 91 | 'drive/gdata_wapi_url_generator.h', |
| 92 | 'drive/request_sender.cc', |
| 93 | 'drive/request_sender.h', |
| 94 | 'drive/request_util.cc', |
| 95 | 'drive/request_util.h', |
| 96 | 'drive/task_util.cc', |
| 97 | 'drive/task_util.h', |
| 98 | 'drive/time_util.cc', |
| 99 | 'drive/time_util.h', |
[email protected] | 6386cf5 | 2012-09-07 04:26:37 | [diff] [blame] | 100 | 'gaia/gaia_auth_consumer.cc', |
| 101 | 'gaia/gaia_auth_consumer.h', |
| 102 | 'gaia/gaia_auth_fetcher.cc', |
| 103 | 'gaia/gaia_auth_fetcher.h', |
| 104 | 'gaia/gaia_auth_util.cc', |
| 105 | 'gaia/gaia_auth_util.h', |
[email protected] | 6386cf5 | 2012-09-07 04:26:37 | [diff] [blame] | 106 | 'gaia/gaia_constants.cc', |
| 107 | 'gaia/gaia_constants.h', |
| 108 | 'gaia/gaia_oauth_client.cc', |
| 109 | 'gaia/gaia_oauth_client.h', |
| 110 | 'gaia/gaia_switches.cc', |
| 111 | 'gaia/gaia_switches.h', |
| 112 | 'gaia/gaia_urls.cc', |
| 113 | 'gaia/gaia_urls.h', |
| 114 | 'gaia/google_service_auth_error.cc', |
| 115 | 'gaia/google_service_auth_error.h', |
[email protected] | 6221938 | 2014-01-22 19:34:00 | [diff] [blame] | 116 | 'gaia/merge_session_helper.cc', |
| 117 | 'gaia/merge_session_helper.h', |
[email protected] | 6386cf5 | 2012-09-07 04:26:37 | [diff] [blame] | 118 | 'gaia/oauth_request_signer.cc', |
| 119 | 'gaia/oauth_request_signer.h', |
| 120 | 'gaia/oauth2_access_token_consumer.h', |
[email protected] | 6386cf5 | 2012-09-07 04:26:37 | [diff] [blame] | 121 | 'gaia/oauth2_access_token_fetcher.h', |
[email protected] | 596f0a9d4 | 2014-03-05 06:59:37 | [diff] [blame] | 122 | 'gaia/oauth2_access_token_fetcher.cc', |
| 123 | 'gaia/oauth2_access_token_fetcher_impl.cc', |
| 124 | 'gaia/oauth2_access_token_fetcher_impl.h', |
[email protected] | 6386cf5 | 2012-09-07 04:26:37 | [diff] [blame] | 125 | 'gaia/oauth2_api_call_flow.cc', |
| 126 | 'gaia/oauth2_api_call_flow.h', |
[email protected] | 6386cf5 | 2012-09-07 04:26:37 | [diff] [blame] | 127 | 'gaia/oauth2_mint_token_flow.cc', |
| 128 | 'gaia/oauth2_mint_token_flow.h', |
[email protected] | 42f4121 | 2013-08-26 09:24:19 | [diff] [blame] | 129 | 'gaia/oauth2_token_service.cc', |
| 130 | 'gaia/oauth2_token_service.h', |
[email protected] | df6a024c8 | 2014-01-16 22:52:57 | [diff] [blame] | 131 | 'gaia/ubertoken_fetcher.cc', |
| 132 | 'gaia/ubertoken_fetcher.h', |
[email protected] | 6386cf5 | 2012-09-07 04:26:37 | [diff] [blame] | 133 | 'google_api_keys.cc', |
| 134 | 'google_api_keys.h', |
| 135 | ], |
[email protected] | 56ed280 | 2013-01-10 04:52:48 | [diff] [blame] | 136 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 137 | 'msvs_disabled_warnings': [4267, ], |
[email protected] | 6386cf5 | 2012-09-07 04:26:37 | [diff] [blame] | 138 | }, |
[email protected] | 7741618 | 2013-09-19 07:05:14 | [diff] [blame] | 139 | { |
| 140 | 'target_name': 'google_apis_unittests', |
| 141 | 'type': 'executable', |
| 142 | 'dependencies': [ |
| 143 | '../base/base.gyp:run_all_unittests', |
[email protected] | 2ac9693b | 2014-01-03 01:43:05 | [diff] [blame] | 144 | '../testing/gmock.gyp:gmock', |
[email protected] | 7741618 | 2013-09-19 07:05:14 | [diff] [blame] | 145 | '../testing/gtest.gyp:gtest', |
| 146 | 'google_apis', |
[email protected] | 2ac9693b | 2014-01-03 01:43:05 | [diff] [blame] | 147 | 'google_apis_test_support', |
| 148 | ], |
| 149 | 'includes': [ |
| 150 | 'determine_use_official_keys.gypi', |
[email protected] | 7741618 | 2013-09-19 07:05:14 | [diff] [blame] | 151 | ], |
| 152 | 'include_dirs': [ |
| 153 | '..', |
| 154 | ], |
| 155 | 'sources': [ |
| 156 | 'google_api_keys_unittest.cc', |
[email protected] | 2ac9693b | 2014-01-03 01:43:05 | [diff] [blame] | 157 | 'cup/client_update_protocol_unittest.cc', |
| 158 | 'drive/base_requests_unittest.cc', |
| 159 | 'drive/base_requests_server_unittest.cc', |
| 160 | 'drive/drive_api_requests_unittest.cc', |
| 161 | 'drive/drive_api_parser_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', |
| 169 | 'gaia/gaia_auth_fetcher_unittest.cc', |
| 170 | 'gaia/gaia_auth_util_unittest.cc', |
| 171 | 'gaia/gaia_oauth_client_unittest.cc', |
| 172 | 'gaia/google_service_auth_error_unittest.cc', |
[email protected] | 6221938 | 2014-01-22 19:34:00 | [diff] [blame] | 173 | 'gaia/merge_session_helper_unittest.cc', |
[email protected] | 2ac9693b | 2014-01-03 01:43:05 | [diff] [blame] | 174 | 'gaia/oauth_request_signer_unittest.cc', |
[email protected] | 596f0a9d4 | 2014-03-05 06:59:37 | [diff] [blame] | 175 | 'gaia/oauth2_access_token_fetcher_impl_unittest.cc', |
[email protected] | 2ac9693b | 2014-01-03 01:43:05 | [diff] [blame] | 176 | 'gaia/oauth2_api_call_flow_unittest.cc', |
| 177 | 'gaia/oauth2_mint_token_flow_unittest.cc', |
| 178 | 'gaia/oauth2_token_service_unittest.cc', |
[email protected] | df6a024c8 | 2014-01-16 22:52:57 | [diff] [blame] | 179 | 'gaia/ubertoken_fetcher_unittest.cc', |
[email protected] | 2ac9693b | 2014-01-03 01:43:05 | [diff] [blame] | 180 | ], |
| 181 | 'conditions': [ |
| 182 | ['OS=="android"', { |
| 183 | 'sources!': [ |
| 184 | 'drive/base_requests_server_unittest.cc', |
| 185 | 'drive/drive_api_parser_unittest.cc', |
| 186 | 'drive/drive_api_requests_unittest.cc', |
| 187 | 'drive/gdata_wapi_parser_unittest.cc', |
| 188 | 'drive/gdata_wapi_requests_unittest.cc', |
| 189 | ], |
| 190 | }], |
[email protected] | 7741618 | 2013-09-19 07:05:14 | [diff] [blame] | 191 | ], |
| 192 | }, |
[email protected] | 3014321 | 2013-09-19 11:21:12 | [diff] [blame] | 193 | { |
| 194 | 'target_name': 'google_apis_test_support', |
| 195 | 'type': 'static_library', |
| 196 | 'dependencies': [ |
| 197 | '../base/base.gyp:base', |
| 198 | '../base/base.gyp:test_support_base', |
| 199 | '../net/net.gyp:net', |
| 200 | '../net/net.gyp:net_test_support', |
| 201 | ], |
| 202 | 'export_dependent_settings': [ |
| 203 | '../base/base.gyp:base', |
| 204 | '../base/base.gyp:test_support_base', |
| 205 | '../net/net.gyp:net', |
| 206 | '../net/net.gyp:net_test_support', |
| 207 | ], |
| 208 | 'sources': [ |
[email protected] | 2ac9693b | 2014-01-03 01:43:05 | [diff] [blame] | 209 | 'drive/dummy_auth_service.cc', |
| 210 | 'drive/dummy_auth_service.h', |
| 211 | 'drive/test_util.cc', |
| 212 | 'drive/test_util.h', |
[email protected] | 3014321 | 2013-09-19 11:21:12 | [diff] [blame] | 213 | 'gaia/fake_gaia.cc', |
| 214 | 'gaia/fake_gaia.h', |
[email protected] | df6a024c8 | 2014-01-16 22:52:57 | [diff] [blame] | 215 | 'gaia/fake_oauth2_token_service.cc', |
| 216 | 'gaia/fake_oauth2_token_service.h', |
[email protected] | 2ac9693b | 2014-01-03 01:43:05 | [diff] [blame] | 217 | 'gaia/mock_url_fetcher_factory.h', |
| 218 | 'gaia/oauth2_token_service_test_util.cc', |
| 219 | 'gaia/oauth2_token_service_test_util.h', |
[email protected] | 3014321 | 2013-09-19 11:21:12 | [diff] [blame] | 220 | ], |
| 221 | }, |
[email protected] | 6386cf5 | 2012-09-07 04:26:37 | [diff] [blame] | 222 | ], |
| 223 | } |