Separate BrowserCdmManager from BrowserMediaPlayerManager.
[chromium-blink-merge.git] / google_apis / google_apis.gyp
blob0d9902620205e7c60aa0907814b3f223dd606e92
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         '../crypto/crypto.gyp:crypto',
22         '../net/net.gyp:net',
23         '../third_party/libxml/libxml.gyp:libxml',
24       ],
25       'conditions': [
26         ['google_api_key!=""', {
27           'defines': ['GOOGLE_API_KEY="<(google_api_key)"'],
28         }],
29         ['google_default_client_id!=""', {
30           'defines': [
31             'GOOGLE_DEFAULT_CLIENT_ID="<(google_default_client_id)"',
32           ]
33         }],
34         ['google_default_client_secret!=""', {
35           'defines': [
36             'GOOGLE_DEFAULT_CLIENT_SECRET="<(google_default_client_secret)"',
37           ]
38         }],
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         }],
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         }],
62         ['chromeos==1 or OS == "android"', {
63           'sources!': [
64             'gaia/dummy_identity_provider.cc',
65             'gaia/dummy_identity_provider.h',
66           ]
67         }],
68       ],
69       'sources': [
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',
101         'drive/task_util.h',
102         'drive/time_util.cc',
103         'drive/time_util.h',
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',
118         'gaia/gaia_urls.cc',
119         'gaia/gaia_urls.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',
144         'google_api_keys.h',
145       ],
146       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
147       'msvs_disabled_warnings': [4267, ],
148     },
149     {
150       'target_name': 'google_apis_unittests',
151       'type': 'executable',
152       'dependencies': [
153         '../base/base.gyp:run_all_unittests',
154         '../testing/gmock.gyp:gmock',
155         '../testing/gtest.gyp:gtest',
156         'google_apis',
157         'google_apis_test_support',
158       ],
159       'includes': [
160         'determine_use_official_keys.gypi',
161       ],
162       'include_dirs': [
163         '..',
164       ],
165       'sources': [
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',
191       ],
192       'conditions': [
193         ['OS=="android"', {
194           'sources!': [
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',
200           ],
201         }],
202       ],
203     },
204     {
205       'target_name': 'google_apis_test_support',
206       'type': 'static_library',
207       'dependencies': [
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       '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',
218       ],
219       'sources': [
220         'drive/dummy_auth_service.cc',
221         'drive/dummy_auth_service.h',
222         'drive/test_util.cc',
223         'drive/test_util.h',
224         'gaia/fake_gaia.cc',
225         'gaia/fake_gaia.h',
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',
233       ],
234     },
235   ],