From ba9ee0748ae03519e54e82c49c6aaa481a6fff21 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Tue, 26 Apr 2016 09:17:22 -0700 Subject: 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 --- build_gyp/gyp_pdfium | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'build_gyp') 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')) -- cgit v1.2.3