OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, # Use higher warning level. | 7 'chromium_code': 1, # Use higher warning level. |
8 }, | 8 }, |
9 'includes': [ | 9 'includes': [ |
10 '../build/win_precompile.gypi', | 10 '../build/win_precompile.gypi', |
11 ], | 11 ], |
12 'targets': [ | 12 'targets': [ |
13 { | 13 { |
14 'target_name': 'google_apis', | 14 'target_name': 'google_apis', |
15 'type': 'static_library', | 15 'type': 'static_library', |
16 'dependencies': [ | 16 'dependencies': [ |
17 '../base/base.gyp:base', | 17 '../base/base.gyp:base', |
18 '../crypto/crypto.gyp:crypto', | 18 '../crypto/crypto.gyp:crypto', |
19 '../net/net.gyp:net', | 19 '../net/net.gyp:net', |
20 ], | 20 ], |
| 21 'conditions': [ |
| 22 ['google_api_key!=""', { |
| 23 'defines': ['GOOGLE_API_KEY="<(google_api_key)"'], |
| 24 }], |
| 25 # Once the default definitions for the various keys in |
| 26 # google_apis/google_api_keys.cc are all made empty, the next |
| 27 # two conditionals can set just GOOGLE_DEFAULT_CLIENT_ID/SECRET. |
| 28 # Until then, we have different semantics on the gyp variables |
| 29 # google_default_client_id/secret and setting the environment |
| 30 # variables of the (upper-case) same name (the latter are used |
| 31 # as the default for unset client IDs/secrets, whereas the |
| 32 # former overrides all client IDs/secrets). |
| 33 # TODO(joi): Fix the above semantic mismatch once possible. |
| 34 ['google_default_client_id!=""', { |
| 35 'defines': [ |
| 36 'GOOGLE_CLIENT_ID_MAIN="<(google_default_client_id)"', |
| 37 'GOOGLE_CLIENT_ID_CLOUD_PRINT="<(google_default_client_id)"', |
| 38 'GOOGLE_CLIENT_ID_REMOTING="<(google_default_client_id)"', |
| 39 ] |
| 40 }], |
| 41 ['google_default_client_secret!=""', { |
| 42 'defines': [ |
| 43 'GOOGLE_CLIENT_SECRET_MAIN="<(google_default_client_secret)"', |
| 44 'GOOGLE_CLIENT_SECRET_CLOUD_PRINT="<(google_default_client_secret)"'
, |
| 45 'GOOGLE_CLIENT_SECRET_REMOTING="<(google_default_client_secret)"', |
| 46 ] |
| 47 }], |
| 48 ['use_official_google_api_keys==1', { |
| 49 'defines': ['USE_OFFICIAL_GOOGLE_API_KEYS=1'], |
| 50 }], |
| 51 ], |
21 'sources': [ | 52 'sources': [ |
22 'gaia/gaia_auth_consumer.cc', | 53 'gaia/gaia_auth_consumer.cc', |
23 'gaia/gaia_auth_consumer.h', | 54 'gaia/gaia_auth_consumer.h', |
24 'gaia/gaia_auth_fetcher.cc', | 55 'gaia/gaia_auth_fetcher.cc', |
25 'gaia/gaia_auth_fetcher.h', | 56 'gaia/gaia_auth_fetcher.h', |
26 'gaia/gaia_auth_util.cc', | 57 'gaia/gaia_auth_util.cc', |
27 'gaia/gaia_auth_util.h', | 58 'gaia/gaia_auth_util.h', |
28 'gaia/gaia_authenticator.cc', | 59 'gaia/gaia_authenticator.cc', |
29 'gaia/gaia_authenticator.h', | 60 'gaia/gaia_authenticator.h', |
30 'gaia/gaia_constants.cc', | 61 'gaia/gaia_constants.cc', |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 'gaia/oauth_request_signer_unittest.cc', | 105 'gaia/oauth_request_signer_unittest.cc', |
75 'gaia/oauth2_access_token_fetcher_unittest.cc', | 106 'gaia/oauth2_access_token_fetcher_unittest.cc', |
76 'gaia/oauth2_api_call_flow_unittest.cc', | 107 'gaia/oauth2_api_call_flow_unittest.cc', |
77 'gaia/oauth2_mint_token_fetcher_unittest.cc', | 108 'gaia/oauth2_mint_token_fetcher_unittest.cc', |
78 'gaia/oauth2_mint_token_flow_unittest.cc', | 109 'gaia/oauth2_mint_token_flow_unittest.cc', |
79 'gaia/oauth2_revocation_fetcher_unittest.cc', | 110 'gaia/oauth2_revocation_fetcher_unittest.cc', |
80 ], | 111 ], |
81 }, | 112 }, |
82 ], | 113 ], |
83 } | 114 } |
OLD | NEW |