summaryrefslogtreecommitdiff
path: root/build_gyp/gyp_pdfium
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-04-26 09:17:22 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-26 09:17:22 -0700
commitba9ee0748ae03519e54e82c49c6aaa481a6fff21 (patch)
treec7d3be6e9bc3b0d5b631083fcc607e88ec7acbe4 /build_gyp/gyp_pdfium
parent7712c26b05c85399afbf8cb3d363836e678ad443 (diff)
downloadpdfium-ba9ee0748ae03519e54e82c49c6aaa481a6fff21.tar.xz
Skip GYP if GYP_PDFIUM_NO_ACTION set.
This CL updates the gyp_pdfium script to early exit if GYP_PDFIUM_NO_ACTION=1 is set in the users environment. This allows using GN to generate the out/Debug directory and not have it clobbered on a gclient sync. Review URL: https://codereview.chromium.org/1915953002
Diffstat (limited to 'build_gyp/gyp_pdfium')
-rwxr-xr-xbuild_gyp/gyp_pdfium4
1 files changed, 4 insertions, 0 deletions
diff --git a/build_gyp/gyp_pdfium b/build_gyp/gyp_pdfium
index c65337861e..c79593b990 100755
--- a/build_gyp/gyp_pdfium
+++ b/build_gyp/gyp_pdfium
@@ -26,6 +26,10 @@ def run_gyp(args):
def main():
+ if int(os.environ.get('GYP_PDFIUM_NO_ACTION', 0)):
+ print 'Skipping gyp_pdfium due to GYP_PDFIUM_NO_ACTION env var.'
+ sys.exit(0)
+
args = sys.argv[1:]
args.append(os.path.join(pdfium_root, 'build_gyp', 'all.gyp'))