Adds VolumeManagerWrapper.
[chromium-blink-merge.git] / google_apis / google_apis.gyp
blob762c36958473a1e2b46cb8826854e458fd4f157e
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       ],
24       'conditions': [
25         ['google_api_key!=""', {
26           'defines': ['GOOGLE_API_KEY="<(google_api_key)"'],
27         }],
28         ['google_default_client_id!=""', {
29           'defines': [
30             'GOOGLE_DEFAULT_CLIENT_ID="<(google_default_client_id)"',
31           ]
32         }],
33         ['google_default_client_secret!=""', {
34           'defines': [
35             'GOOGLE_DEFAULT_CLIENT_SECRET="<(google_default_client_secret)"',
36           ]
37         }],
38         [ 'OS == "android"', {
39             'dependencies': [
40               '../third_party/openssl/openssl.gyp:openssl',
41             ],
42             'sources/': [
43               ['exclude', 'cup/client_update_protocol_nss\.cc$'],
44             ],
45         }],
46         [ 'use_openssl==1', {
47             'sources!': [
48               'cup/client_update_protocol_nss.cc',
49             ],
50           }, {
51             'sources!': [
52               'cup/client_update_protocol_openssl.cc',
53             ],
54         },],
55       ],
56       'sources': [
57         'cup/client_update_protocol.cc',
58         'cup/client_update_protocol.h',
59         'cup/client_update_protocol_nss.cc',
60         'cup/client_update_protocol_openssl.cc',
61         'gaia/gaia_auth_consumer.cc',
62         'gaia/gaia_auth_consumer.h',
63         'gaia/gaia_auth_fetcher.cc',
64         'gaia/gaia_auth_fetcher.h',
65         'gaia/gaia_auth_util.cc',
66         'gaia/gaia_auth_util.h',
67         'gaia/gaia_constants.cc',
68         'gaia/gaia_constants.h',
69         'gaia/gaia_oauth_client.cc',
70         'gaia/gaia_oauth_client.h',
71         'gaia/gaia_switches.cc',
72         'gaia/gaia_switches.h',
73         'gaia/gaia_urls.cc',
74         'gaia/gaia_urls.h',
75         'gaia/google_service_auth_error.cc',
76         'gaia/google_service_auth_error.h',
77         'gaia/oauth_request_signer.cc',
78         'gaia/oauth_request_signer.h',
79         'gaia/oauth2_access_token_consumer.h',
80         'gaia/oauth2_access_token_fetcher.cc',
81         'gaia/oauth2_access_token_fetcher.h',
82         'gaia/oauth2_api_call_flow.cc',
83         'gaia/oauth2_api_call_flow.h',
84         'gaia/oauth2_mint_token_flow.cc',
85         'gaia/oauth2_mint_token_flow.h',
86         'gaia/oauth2_token_service.cc',
87         'gaia/oauth2_token_service.h',
88         'google_api_keys.cc',
89         'google_api_keys.h',
90       ],
91       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
92       'msvs_disabled_warnings': [4267, ],
93     },
94     {
95       'target_name': 'google_apis_unittests',
96       'type': 'executable',
97       'dependencies': [
98         '../base/base.gyp:run_all_unittests',
99         '../testing/gtest.gyp:gtest',
100         'google_apis',
101       ],
102       'include_dirs': [
103         '..',
104       ],
105       'sources': [
106         'google_api_keys_unittest.cc',
107       ],
108     },
109     {
110       'target_name': 'google_apis_test_support',
111       'type': 'static_library',
112       'dependencies': [
113         '../base/base.gyp:base',
114         '../base/base.gyp:test_support_base',
115         '../net/net.gyp:net',
116         '../net/net.gyp:net_test_support',
117       ],
118       'export_dependent_settings': [
119         '../base/base.gyp:base',
120         '../base/base.gyp:test_support_base',
121         '../net/net.gyp:net',
122         '../net/net.gyp:net_test_support',
123       ],
124       'sources': [
125         'gaia/fake_gaia.cc',
126         'gaia/fake_gaia.h',
127       ],
128     },
129   ],