summaryrefslogtreecommitdiffstats
path: root/build/gyp_chromium
diff options
context:
space:
mode:
authorjustsomeguy <justsomeguy@google.com>2014-11-05 10:57:15 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-05 18:57:32 +0000
commitcec083d3e7038a5b26e5fdc2e514d404890805cb (patch)
treec1e82e7fdc4792dcb5a9164b4b172e8c818a8a52 /build/gyp_chromium
parent1d094026bf5b8d8a9639b2d2942223b88fe0e576 (diff)
downloadchromium_src-cec083d3e7038a5b26e5fdc2e514d404890805cb.zip
chromium_src-cec083d3e7038a5b26e5fdc2e514d404890805cb.tar.gz
chromium_src-cec083d3e7038a5b26e5fdc2e514d404890805cb.tar.bz2
Add GYP_INCLUDE_FIRST/LAST to chromium.gyp_env
This allows us to override the settings in common.gypi, as well as other include files. Only accepts one string, not an array. Limitation of gyp_helper. BUG= Review URL: https://codereview.chromium.org/705663002 Cr-Commit-Position: refs/heads/master@{#302841}
Diffstat (limited to 'build/gyp_chromium')
-rwxr-xr-xbuild/gyp_chromium6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/gyp_chromium b/build/gyp_chromium
index 326919c0..ad2796b 100755
--- a/build/gyp_chromium
+++ b/build/gyp_chromium
@@ -178,6 +178,9 @@ def additional_include_files(supplemental_files, args=[]):
if os.path.realpath(path) not in specified_includes:
result.append(path)
+ if os.environ.get('GYP_INCLUDE_FIRST') != None:
+ AddInclude(os.path.join(chrome_src, os.environ.get('GYP_INCLUDE_FIRST')))
+
# Always include common.gypi.
AddInclude(os.path.join(script_dir, 'common.gypi'))
@@ -185,6 +188,9 @@ def additional_include_files(supplemental_files, args=[]):
for supplement in supplemental_files:
AddInclude(supplement)
+ if os.environ.get('GYP_INCLUDE_LAST') != None:
+ AddInclude(os.path.join(chrome_src, os.environ.get('GYP_INCLUDE_LAST')))
+
return result