donate-cpu.py: Use SDL library configuration when applicable

Tested locally.
Searching for `#include <SDL.h>` does not always work. Sometimes `#include "SDL.h"` is used, but for now lets see for how many packages it works this way.
This commit is contained in:
versat 2019-02-05 13:38:42 +01:00
parent 92d492e35d
commit 06d16622e9
1 changed files with 2 additions and 0 deletions

View File

@ -238,6 +238,8 @@ def scanPackage(workPath, cppcheckPath, jobs):
# TODO: enable boost library configuration detection after release of Cppcheck 1.87
# if os.path.exists(cppcheckPath + '/cfg/boost.cfg') and hasInclude('temp', ['<boost/']):
# libraries += ' --library=boost'
if hasInclude('temp', ['<SDL.h>']):
libraries += ' --library=sdl'
# Reference for GNU C: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
options = jobs + libraries + ' --library=gnu -D__GNUC__ --check-library --inconclusive --enable=style,information --platform=unix64 --template=daca2 -rp=temp temp'