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:
parent
92d492e35d
commit
06d16622e9
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue