summaryrefslogtreecommitdiffstats
path: root/build/landmine_utils.py
diff options
context:
space:
mode:
authoroetuaho <oetuaho@nvidia.com>2014-11-03 01:09:53 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-03 09:10:18 +0000
commit6bad0d4fad0ee39e993d90eb2ab8050d650efa2b (patch)
tree8dcf9e27d2efd6c2f56f42cabc4f2577f18662e5 /build/landmine_utils.py
parenteb635da17345d5b82965da47ffd1d22b61a2b873 (diff)
downloadchromium_src-6bad0d4fad0ee39e993d90eb2ab8050d650efa2b.zip
chromium_src-6bad0d4fad0ee39e993d90eb2ab8050d650efa2b.tar.gz
chromium_src-6bad0d4fad0ee39e993d90eb2ab8050d650efa2b.tar.bz2
Add support for GYP_GENERATOR_FLAGS out dir setting for landmines
BUG=421894 Review URL: https://codereview.chromium.org/695753002 Cr-Commit-Position: refs/heads/master@{#302419}
Diffstat (limited to 'build/landmine_utils.py')
-rw-r--r--build/landmine_utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/landmine_utils.py b/build/landmine_utils.py
index 7737832..9b667d0 100644
--- a/build/landmine_utils.py
+++ b/build/landmine_utils.py
@@ -48,6 +48,12 @@ def gyp_defines():
for arg in shlex.split(os.environ.get('GYP_DEFINES', '')))
@memoize()
+def gyp_generator_flags():
+ """Parses and returns GYP_GENERATOR_FLAGS env var as a dictionary."""
+ return dict(arg.split('=', 1)
+ for arg in shlex.split(os.environ.get('GYP_GENERATOR_FLAGS', '')))
+
+@memoize()
def gyp_msvs_version():
return os.environ.get('GYP_MSVS_VERSION', '')