Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(524)

Unified Diff: webrtc/build/gyp_webrtc

Issue 1369683004: Analyze support in gyp_webrtc (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/build/gyp_webrtc
diff --git a/webrtc/build/gyp_webrtc b/webrtc/build/gyp_webrtc
index 2376cfbb85c6c7649c503d2ff4e2a024c9c8fb7d..cfe9ace1fc4a4fd13b9f3f4291c223dc225ff919 100755
--- a/webrtc/build/gyp_webrtc
+++ b/webrtc/build/gyp_webrtc
@@ -38,6 +38,13 @@ def GetSupplementalFiles():
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('-Gconfig_path=' + args.pop(0))
+ args.append('-Ganalyzer_output_path=' + args.pop(0))
+
if int(os.environ.get('GYP_CHROMIUM_NO_ACTION', 0)):
print 'Skipping gyp_webrtc due to GYP_CHROMIUM_NO_ACTION env var.'
sys.exit(0)
@@ -100,13 +107,14 @@ if __name__ == '__main__':
# Set the gyp depth variable to the root of the checkout.
args.append('--depth=' + os.path.relpath(checkout_root))
- 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)
- if vs2013_runtime_dll_dirs:
+ if vs2013_runtime_dll_dirs and not use_analyzer:
x64_runtime, x86_runtime = vs2013_runtime_dll_dirs
vs_toolchain.CopyVsRuntimeDlls(
os.path.join(checkout_root, gyp_chromium.GetOutputDirectory()),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698