From 56d502bf37773fb0264ff65809cec0141411b4fd Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 20 Dec 2018 21:15:42 +0100 Subject: [PATCH] donate-cpu.py: Detect and use zlib and gtk library config; fix --help output. (#1534) * donate-cpu.py: Fix --help output (add --package description) * donate-cpu.py: Use zlib and gtk library if appropriate. --- tools/donate-cpu.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/donate-cpu.py b/tools/donate-cpu.py index 52e49de2a..a0520b57d 100644 --- a/tools/donate-cpu.py +++ b/tools/donate-cpu.py @@ -218,6 +218,10 @@ def scanPackage(workPath, cppcheck, jobs): libraries += ' --library=wxwidgets' if hasInclude('temp', ''): libraries += ' --library=qt' + if hasInclude('temp', ''): + libraries += ' --library=zlib' + if hasInclude('temp', ''): + libraries += ' --library=gtk' cmd = 'nice ' + cppcheck + ' ' + jobs + libraries + ' -D__GCC__ --inconclusive --enable=style --platform=unix64 --template=daca2 -rp=temp temp' print(cmd) startTime = time.time() @@ -336,6 +340,8 @@ for arg in sys.argv[1:]: print('') print('Syntax: donate-cpu.py [-jN] [--stop-time=HH:MM] [--work-path=path]') print(' -jN Use N threads in compilation/analysis. Default is 1.') + print(' --package=url Check a specific package and then stop. Can be useful if you want to reproduce') + print(' some warning/crash/exception/etc..') print(' --stop-time=HH:MM Stop analysis when time has passed. Default is that you must terminate the script.') print(' --work-path=path Work folder path. Default path is ' + workpath) print('')