From bdfc20a482ed1b9639e0e47fa916b63485ebd583 Mon Sep 17 00:00:00 2001 From: versat Date: Sat, 9 Feb 2019 18:09:16 +0100 Subject: [PATCH] donate-cpu.py: Enable "python" and "boost" library detection Only enable the library option for those configurations if the corresponding .cfg file exists to not crash Cppcheck if an older version than 1.87 is used as the "old" version. --- tools/donate-cpu.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tools/donate-cpu.py b/tools/donate-cpu.py index 25d77ea5f..09179dd21 100644 --- a/tools/donate-cpu.py +++ b/tools/donate-cpu.py @@ -37,7 +37,7 @@ import platform # Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/ # Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic # changes) -CLIENT_VERSION = "1.0.0" +CLIENT_VERSION = "1.1.0" def checkRequirements(): @@ -232,18 +232,16 @@ def scanPackage(workPath, cppcheckPath, jobs): libraries += ' --library=gtk' if hasInclude('temp', ['']): -# libraries += ' --library=python' + if os.path.exists(cppcheckPath + '/cfg/python.cfg') and hasInclude('temp', ['']): + libraries += ' --library=python' if hasInclude('temp', ['', '', '']): libraries += ' --library=zlib' -# TODO: enable boost library configuration detection after release of Cppcheck 1.87 -# if os.path.exists(cppcheckPath + '/cfg/boost.cfg') and hasInclude('temp', ['']): libraries += ' --library=sdl'