donate-cpu.py: Use "gtk" library cfg if "<gnome.h>" is included. (#2103)

Gnome includes GTK+, GLib and other libraries, see
https://developer.gnome.org/platform-overview/unstable/tech.html.en
Some projects simply include "<gnome.h>" and use Gtk/GLib functions.
This commit is contained in:
Sebastian 2019-08-20 21:24:49 +02:00 committed by amai2012
parent 6815e38879
commit 486170489a
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ import platform
# Version scheme (MAJOR.MINOR.PATCH) should orientate on "Semantic Versioning" https://semver.org/ # 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 # Every change in this script should result in increasing the version number accordingly (exceptions may be cosmetic
# changes) # changes)
CLIENT_VERSION = "1.1.27" CLIENT_VERSION = "1.1.29"
def check_requirements(): def check_requirements():
@ -256,7 +256,7 @@ def scan_package(work_path, cppcheck_path, jobs):
library_includes = {'boost': ['<boost/'], library_includes = {'boost': ['<boost/'],
'cppunit': ['<cppunit/'], 'cppunit': ['<cppunit/'],
'googletest': ['<gtest/gtest.h>'], 'googletest': ['<gtest/gtest.h>'],
'gtk': ['<gtk/gtk.h>', '<glib.h>', '<glib/'], 'gtk': ['<gtk/gtk.h>', '<glib.h>', '<glib/', '<gnome.h>'],
'libcerror': ['<libcerror.h>'], 'libcerror': ['<libcerror.h>'],
'microsoft_sal': ['<sal.h>'], 'microsoft_sal': ['<sal.h>'],
'motif': ['<X11/', '<Xm/'], 'motif': ['<X11/', '<Xm/'],