Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: google_apis/determine_use_official_keys.gypi

Issue 12330155: Isolate check_internal.py to the .gypi files that need it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Working version. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | google_apis/google_apis.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/determine_use_official_keys.gypi
diff --git a/google_apis/determine_use_official_keys.gypi b/google_apis/determine_use_official_keys.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..d9f11164af7f1f93ba24f576be46ce57d7503224
--- /dev/null
+++ b/google_apis/determine_use_official_keys.gypi
@@ -0,0 +1,37 @@
+# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Include this .gypi in your target to dynamically set the
+# use_official_google_api_keys variable (unless it is already
+# explicitly set) and the associated preprocessor define.
+
+{
+ 'variables': {
+ 'variables': {
+ # See documentation of this variable in //build/common.gypi.
+ 'use_official_google_api_keys%': 2,
+ },
+
+ # Copy conditionally-set variables out one scope.
+ 'use_official_google_api_keys%': '<(use_official_google_api_keys)',
+
+ 'conditions': [
+ # If use_official_google_api_keys is already set (to 0 or 1), we
+ # do none of the implicit checking. If it is set to 1 and the
+ # internal keys file is missing, the build will fail at compile
+ # time. If it is set to 0 and keys are not provided by other
+ # means, a warning will be printed at compile time.
+ ['use_official_google_api_keys==2', {
+ 'use_official_google_api_keys%':
+ '<!(python <(DEPTH)/google_apis/build/check_internal.py <(DEPTH)/google_apis/internal/google_chrome_api_keys.h)',
+ }],
+ ]
+ },
+
+ 'conditions': [
+ ['use_official_google_api_keys==1', {
+ 'defines': ['USE_OFFICIAL_GOOGLE_API_KEYS=1'],
+ }],
+ ],
+}
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | google_apis/google_apis.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698