donate-cpu.py: Improved detection of wxWidgets code in scanPackage. (#1580)
This commit is contained in:
parent
44135ef926
commit
126bd2bb5d
|
@ -213,7 +213,7 @@ def scanPackage(workPath, cppcheck, jobs):
|
||||||
print('Analyze..')
|
print('Analyze..')
|
||||||
os.chdir(workPath)
|
os.chdir(workPath)
|
||||||
libraries = ' --library=posix'
|
libraries = ' --library=posix'
|
||||||
if hasInclude('temp', '<wx/string.h>'):
|
if hasInclude('temp', '<wx/') or hasInclude('temp', '"wx/'):
|
||||||
libraries += ' --library=wxwidgets'
|
libraries += ' --library=wxwidgets'
|
||||||
if hasInclude('temp', '<QString>'):
|
if hasInclude('temp', '<QString>'):
|
||||||
libraries += ' --library=qt'
|
libraries += ' --library=qt'
|
||||||
|
|
Loading…
Reference in New Issue