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 '../crypto/crypto.gyp:crypto',
25 ['google_api_key!=""', {
26 'defines': ['GOOGLE_API_KEY="<(google_api_key)"'],
28 # Once the default definitions for the various keys in
29 # google_apis/google_api_keys.cc are all made empty, the next
30 # two conditionals can set just GOOGLE_DEFAULT_CLIENT_ID/SECRET.
31 # Until then, we have different semantics on the gyp variables
32 # google_default_client_id/secret and setting the environment
33 # variables of the (upper-case) same name (the latter are used
34 # as the default for unset client IDs/secrets, whereas the
35 # former overrides all client IDs/secrets).
36 # TODO(joi): Fix the above semantic mismatch once possible.
37 ['google_default_client_id!=""', {
39 'GOOGLE_CLIENT_ID_MAIN="<(google_default_client_id)"',
40 'GOOGLE_CLIENT_ID_CLOUD_PRINT="<(google_default_client_id)"',
41 'GOOGLE_CLIENT_ID_REMOTING="<(google_default_client_id)"',
44 ['google_default_client_secret!=""', {
46 'GOOGLE_CLIENT_SECRET_MAIN="<(google_default_client_secret)"',
47 'GOOGLE_CLIENT_SECRET_CLOUD_PRINT="<(google_default_client_secret)"',
48 'GOOGLE_CLIENT_SECRET_REMOTING="<(google_default_client_secret)"',
51 [ 'OS == "android"', {
53 '../third_party/openssl/openssl.gyp:openssl',
56 ['exclude', 'cup/client_update_protocol_nss\.cc$'],
61 'cup/client_update_protocol_nss.cc',
65 'cup/client_update_protocol_openssl.cc',
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 'gaia/gaia_auth_consumer.cc',
75 'gaia/gaia_auth_consumer.h',
76 'gaia/gaia_auth_fetcher.cc',
77 'gaia/gaia_auth_fetcher.h',
78 'gaia/gaia_auth_util.cc',
79 'gaia/gaia_auth_util.h',
80 'gaia/gaia_constants.cc',
81 'gaia/gaia_constants.h',
82 'gaia/gaia_oauth_client.cc',
83 'gaia/gaia_oauth_client.h',
84 'gaia/gaia_switches.cc',
85 'gaia/gaia_switches.h',
88 'gaia/google_service_auth_error.cc',
89 'gaia/google_service_auth_error.h',
90 'gaia/oauth_request_signer.cc',
91 'gaia/oauth_request_signer.h',
92 'gaia/oauth2_access_token_consumer.h',
93 'gaia/oauth2_access_token_fetcher.cc',
94 'gaia/oauth2_access_token_fetcher.h',
95 'gaia/oauth2_api_call_flow.cc',
96 'gaia/oauth2_api_call_flow.h',
97 'gaia/oauth2_mint_token_flow.cc',
98 'gaia/oauth2_mint_token_flow.h',
102 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
103 'msvs_disabled_warnings': [4267, ],