Revert of [Android WebView] Synthesize a fake page loading event on page source modif...
[chromium-blink-merge.git] / google_apis / determine_use_official_keys.gypi
blobd9f11164af7f1f93ba24f576be46ce57d7503224
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.
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.
10   'variables': {
11     'variables': {
12       # See documentation of this variable in //build/common.gypi.
13       'use_official_google_api_keys%': 2,
14     },
16     # Copy conditionally-set variables out one scope.
17     'use_official_google_api_keys%': '<(use_official_google_api_keys)',
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)/google_apis/internal/google_chrome_api_keys.h)',
28         }],
29     ]
30   },
32   'conditions': [
33     ['use_official_google_api_keys==1', {
34         'defines': ['USE_OFFICIAL_GOOGLE_API_KEYS=1'],
35       }],
36   ],