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 'includes': [ | 16 'includes': [ |
17 'determine_use_official_keys.gypi', | 17 'determine_use_official_keys.gypi', |
18 ], | 18 ], |
19 'dependencies': [ | 19 'dependencies': [ |
20 '../base/base.gyp:base', | 20 '../base/base.gyp:base', |
21 '../crypto/crypto.gyp:crypto', | 21 '../crypto/crypto.gyp:crypto', |
22 '../net/net.gyp:net', | 22 '../net/net.gyp:net', |
23 ], | 23 ], |
24 'conditions': [ | 24 'conditions': [ |
25 ['google_api_key!=""', { | 25 ['google_api_key!=""', { |
26 'defines': ['GOOGLE_API_KEY="<(google_api_key)"'], | 26 'defines': ['GOOGLE_API_KEY="<(google_api_key)"'], |
27 }], | 27 }], |
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!=""', { | 28 ['google_default_client_id!=""', { |
38 'defines': [ | 29 'defines': [ |
39 'GOOGLE_CLIENT_ID_MAIN="<(google_default_client_id)"', | 30 'GOOGLE_DEFAULT_CLIENT_ID="<(google_default_client_id)"', |
40 'GOOGLE_CLIENT_ID_CLOUD_PRINT="<(google_default_client_id)"', | |
41 'GOOGLE_CLIENT_ID_REMOTING="<(google_default_client_id)"', | |
42 ] | 31 ] |
43 }], | 32 }], |
44 ['google_default_client_secret!=""', { | 33 ['google_default_client_secret!=""', { |
45 'defines': [ | 34 'defines': [ |
46 'GOOGLE_CLIENT_SECRET_MAIN="<(google_default_client_secret)"', | 35 'GOOGLE_DEFAULT_CLIENT_SECRET="<(google_default_client_secret)"', |
47 'GOOGLE_CLIENT_SECRET_CLOUD_PRINT="<(google_default_client_secret)"'
, | |
48 'GOOGLE_CLIENT_SECRET_REMOTING="<(google_default_client_secret)"', | |
49 ] | 36 ] |
50 }], | 37 }], |
51 [ 'OS == "android"', { | 38 [ 'OS == "android"', { |
52 'dependencies': [ | 39 'dependencies': [ |
53 '../third_party/openssl/openssl.gyp:openssl', | 40 '../third_party/openssl/openssl.gyp:openssl', |
54 ], | 41 ], |
55 'sources/': [ | 42 'sources/': [ |
56 ['exclude', 'cup/client_update_protocol_nss\.cc$'], | 43 ['exclude', 'cup/client_update_protocol_nss\.cc$'], |
57 ], | 44 ], |
58 }], | 45 }], |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 'gaia/oauth2_mint_token_flow.cc', | 84 'gaia/oauth2_mint_token_flow.cc', |
98 'gaia/oauth2_mint_token_flow.h', | 85 'gaia/oauth2_mint_token_flow.h', |
99 'google_api_keys.cc', | 86 'google_api_keys.cc', |
100 'google_api_keys.h', | 87 'google_api_keys.h', |
101 ], | 88 ], |
102 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 89 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
103 'msvs_disabled_warnings': [4267, ], | 90 'msvs_disabled_warnings': [4267, ], |
104 }, | 91 }, |
105 ], | 92 ], |
106 } | 93 } |
OLD | NEW |