summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-24 04:14:19 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-24 04:14:19 +0000
commit8b75b1d9bed6a7431959213c13886d689a0c6101 (patch)
treeca498cbb89935bbd8fac83fccaaeb3f6acc6db07
parentac30ed0e1f0d983892195a2dbfbe923557cfca65 (diff)
downloadchromium-8b75b1d9bed6a7431959213c13886d689a0c6101.tar.gz
chromium-8b75b1d9bed6a7431959213c13886d689a0c6101.tar.bz2
chromium-8b75b1d9bed6a7431959213c13886d689a0c6101.zip
Adds support for running analyzer from gyp_chromium
Analyzer is going to be used to determine if a set of files effects any of the dependencies for a bot. BUG=383609 TEST=none Review URL: https://codereview.chromium.org/337903004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279309 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-xbuild/gyp_chromium28
1 files changed, 18 insertions, 10 deletions
diff --git a/build/gyp_chromium b/build/gyp_chromium
index 48c738928528..6aede4792a23 100755
--- a/build/gyp_chromium
+++ b/build/gyp_chromium
@@ -189,6 +189,12 @@ def additional_include_files(supplemental_files, args=[]):
if __name__ == '__main__':
args = sys.argv[1:]
+ use_analyzer = len(args) and args[0] == '--analyzer'
+ if use_analyzer:
+ args.pop(0)
+ os.environ['GYP_GENERATORS'] = 'analyzer'
+ args.append('-Gfile_path=' + args.pop(0))
+
if int(os.environ.get('GYP_CHROMIUM_NO_ACTION', 0)):
# Check for landmines (reasons to clobber the build) in any case.
print 'Running build/landmines.py...'
@@ -307,22 +313,24 @@ if __name__ == '__main__':
args.extend(['-D', 'gyp_output_dir=' + GetOutputDirectory()])
- print 'Updating projects from gyp files...'
- sys.stdout.flush()
+ if not use_analyzer:
+ print 'Updating projects from gyp files...'
+ sys.stdout.flush()
# Off we go...
gyp_rc = gyp.main(args)
- # Check for landmines (reasons to clobber the build). This must be run here,
- # rather than a separate runhooks step so that any environment modifications
- # from above are picked up.
- print 'Running build/landmines.py...'
- subprocess.check_call(
+ if not use_analyzer:
+ # Check for landmines (reasons to clobber the build). This must be run here,
+ # rather than a separate runhooks step so that any environment modifications
+ # from above are picked up.
+ print 'Running build/landmines.py...'
+ subprocess.check_call(
[sys.executable, os.path.join(script_dir, 'landmines.py')])
- if vs2013_runtime_dll_dirs:
- x64_runtime, x86_runtime = vs2013_runtime_dll_dirs
- vs_toolchain.CopyVsRuntimeDlls(
+ if vs2013_runtime_dll_dirs:
+ x64_runtime, x86_runtime = vs2013_runtime_dll_dirs
+ vs_toolchain.CopyVsRuntimeDlls(
os.path.join(chrome_src, GetOutputDirectory()),
(x86_runtime, x64_runtime))