build: Do not force inclusion of gtk.h

GCC will not do the right thing, and it will just break the build when
trying to include gtk.h first.

We'll have to live with the warning from the compiler about a missing
gtk_init() — though it would be better not to have to init GTK at all to
generate the introspection data.

This commit unbreaks the build in GNOME Continuous introduced by commit
6838861d26.
This commit is contained in:
Emmanuele Bassi 2015-08-29 13:35:43 +01:00
parent 281e5aa45e
commit 15cc85db29

View File

@ -1366,7 +1366,7 @@ introspection_files += \
endif
include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_SCANNER_ENV = CC="$(CC)" CPPFLAGS="-I$(top_srcdir) -I$(top_builddir) -I. -include gtk.h"
INTROSPECTION_SCANNER_ENV = CC="$(CC)"
INTROSPECTION_COMPILER_ARGS = \
--includedir=$(srcdir) \
--includedir=. \