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 ['google_default_client_id!=""', {
30 'GOOGLE_DEFAULT_CLIENT_ID="<(google_default_client_id)"',
33 ['google_default_client_secret!=""', {
35 'GOOGLE_DEFAULT_CLIENT_SECRET="<(google_default_client_secret)"',
38 [ 'OS == "android"', {
40 '../third_party/openssl/openssl.gyp:openssl',
43 ['exclude', 'cup/client_update_protocol_nss\.cc$'],
48 'cup/client_update_protocol_nss.cc',
52 'cup/client_update_protocol_openssl.cc',
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',
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',
91 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
92 'msvs_disabled_warnings': [4267, ],
95 'target_name': 'google_apis_unittests',
98 '../base/base.gyp:run_all_unittests',
99 '../testing/gtest.gyp:gtest',
106 'google_api_keys_unittest.cc',
110 'target_name': 'google_apis_test_support',
111 'type': 'static_library',
113 '../base/base.gyp:base',
114 '../base/base.gyp:test_support_base',
115 '../net/net.gyp:net',
116 '../net/net.gyp:net_test_support',
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',