Chromium Code Reviews| 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 'conditions': [ | |
| 13 # If use_official_google_api_keys is already set (to 0 or 1), we | |
| 14 # do none of the implicit checking. If it is set to 1 and the | |
| 15 # internal keys file is missing, the build will fail at compile | |
| 16 # time. If it is set to 0 and keys are not provided by other | |
| 17 # means, a warning will be printed at compile time. | |
| 18 ['use_official_google_api_keys==2', { | |
| 19 'use_official_google_api_keys%': | |
| 20 '<!(python <(DEPTH)/google_apis/build/check_internal.py <(DEPTH)/g oogle_apis/internal/google_chrome_api_keys.h)', | |
| 21 }], | |
| 22 ] | |
| 23 }, | |
| 24 'use_official_google_api_keys%': 'use_official_google_api_keys', | |
| 25 }, | |
| 26 'conditions': [ | |
| 27 ['use_official_google_api_keys==1', { | |
| 28 'defines': ['USE_OFFICIAL_GOOGLE_API_KEYS=1'], | |
|
M-A Ruel
2013/05/08 18:11:23
align -2 :)
| |
| 29 }], | |
| 30 ], | |
| 31 } | |
| OLD | NEW |