summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-13 13:10:10 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-13 13:10:10 +0000
commitd647e280bba804d4589e952015122ff4bd8d3463 (patch)
treee4f6f9e60f452070ae546d0ee088636a2e3e4c37 /build
parentdeaf719cac8855de0bafe3a1db2a9c3ca6791b3d (diff)
downloadchromium_src-d647e280bba804d4589e952015122ff4bd8d3463.zip
chromium_src-d647e280bba804d4589e952015122ff4bd8d3463.tar.gz
chromium_src-d647e280bba804d4589e952015122ff4bd8d3463.tar.bz2
include.gypi variables to specify API keys or use internal header for keys.
BUG=145584 Review URL: https://codereview.chromium.org/10918196 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156538 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi18
1 files changed, 18 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index f7453f8..b55b68e 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -891,6 +891,24 @@
'windows_sdk_default_path': '<(DEPTH)/third_party/platformsdk_win8/files',
'directx_sdk_default_path': '<(DEPTH)/third_party/directxsdk/files',
+ # Set these to bake API keys and OAuth client IDs/secrets into
+ # your build. If they are not baked in, you can instead set
+ # environment variables to provide the keys at runtime (see
+ # src/google_apis/google_api_keys.h for details). Features that
+ # require server-side APIs may fail to work if no keys are
+ # provided.
+ #
+ # Note that if you are building an official build or if you set
+ # use_official_google_api_keys to 1, these values will be ignored
+ # and the official keys will be used instead.
+ 'google_api_key%': '',
+ 'google_default_client_id%': '',
+ 'google_default_client_secret%': '',
+
+ # Set this to 1 to use the Google-internal file containing
+ # official API keys for Google Chrome even in a developer build.
+ 'use_official_google_api_keys%': 0,
+
'conditions': [
['OS=="win" and "<!(python <(DEPTH)/build/dir_exists.py <(windows_sdk_default_path))"=="True"', {
'windows_sdk_path%': '<(windows_sdk_default_path)',