OLD | NEW |
| (Empty) |
1 # Copyright (c) 2013 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. | |
4 | |
5 # Include this .gypi in your target to dynamically set the | |
6 # use_official_google_api_keys variable (unless it is already | |
7 # explicitly set) and the associated preprocessor define. | |
8 | |
9 { | |
10 'variables': { | |
11 'variables': { | |
12 # See documentation of this variable in //build/common.gypi. | |
13 'use_official_google_api_keys%': 2, | |
14 }, | |
15 | |
16 # Copy conditionally-set variables out one scope. | |
17 'use_official_google_api_keys%': '<(use_official_google_api_keys)', | |
18 | |
19 'conditions': [ | |
20 # If use_official_google_api_keys is already set (to 0 or 1), we | |
21 # do none of the implicit checking. If it is set to 1 and the | |
22 # internal keys file is missing, the build will fail at compile | |
23 # time. If it is set to 0 and keys are not provided by other | |
24 # means, a warning will be printed at compile time. | |
25 ['use_official_google_api_keys==2', { | |
26 'use_official_google_api_keys%': | |
27 '<!(python <(DEPTH)/google_apis/build/check_internal.py <(DEPTH)/goo
gle_apis/internal/google_chrome_api_keys.h)', | |
28 }], | |
29 ] | |
30 }, | |
31 | |
32 'conditions': [ | |
33 ['use_official_google_api_keys==1', { | |
34 'defines': ['USE_OFFICIAL_GOOGLE_API_KEYS=1'], | |
35 }], | |
36 ], | |
37 } | |
OLD | NEW |