mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-12 03:40:10 +00:00
Make sure dist check works with introspection
We need to prepend the srcdir to all variables passed into the scanner as it runs with srcdir != builddir during distcheck.
This commit is contained in:
parent
9d4674a5ec
commit
6c9bfc5f39
@ -698,8 +698,8 @@ GdkPixbuf-2.0.gir: $(INTROSPECTION_SCANNER) libgdk_pixbuf-2.0.la Makefile
|
||||
--library=libgdk_pixbuf-2.0.la \
|
||||
--libtool="$(LIBTOOL)" \
|
||||
--output $@ \
|
||||
$(libgdk_pixbufinclude_HEADERS) \
|
||||
$(libgdk_pixbuf_2_0_la_SOURCES)
|
||||
$(addprefix $(srcdir)/,$(libgdk_pixbufinclude_HEADERS)) \
|
||||
$(addprefix $(srcdir)/,$(libgdk_pixbuf_2_0_la_SOURCES))
|
||||
BUILT_GIRSOURCES += GdkPixbuf-2.0.gir
|
||||
|
||||
girdir = $(datadir)/gir-1.0
|
||||
|
@ -187,6 +187,12 @@ libgdk_win32_2_0_la_LDFLAGS = -Wl,win32/rc/gdk-win32-res.o -export-symbols $(src
|
||||
if HAVE_INTROSPECTION
|
||||
BUILT_GIRSOURCES =
|
||||
|
||||
introspection_files = \
|
||||
$(gdk_public_h_sources) \
|
||||
$(gdk_c_sources) \
|
||||
gdkenumtypes.c \
|
||||
gdkenumtypes.h
|
||||
|
||||
Gdk-2.0.gir: $(INTROSPECTION_SCANNER) $(gdktargetlib) Makefile
|
||||
$(INTROSPECTION_SCANNER) -v \
|
||||
--namespace Gdk --nsversion=2.0 --strip-prefix=Gdk \
|
||||
@ -198,8 +204,7 @@ Gdk-2.0.gir: $(INTROSPECTION_SCANNER) $(gdktargetlib) Makefile
|
||||
--library=$(gdktargetlib) \
|
||||
--libtool="$(LIBTOOL)" \
|
||||
--output $@ \
|
||||
$(gdk_public_h_sources) \
|
||||
$(gdk_c_sources) gdkenumtypes.c gdkenumtypes.h
|
||||
$(addprefix $(srcdir)/,$(introspection_files))
|
||||
BUILT_GIRSOURCES += Gdk-2.0.gir
|
||||
|
||||
girdir = $(datadir)/gir-1.0
|
||||
|
@ -966,6 +966,12 @@ LDADDS = \
|
||||
if HAVE_INTROSPECTION
|
||||
BUILT_GIRSOURCES =
|
||||
|
||||
introspection_files = \
|
||||
$(gtkinclude_HEADERS) \
|
||||
$(gtk_all_c_sources) \
|
||||
gtktypebuiltins.h \
|
||||
gtktypebuiltins.c
|
||||
|
||||
Gtk-2.0.gir: $(INTROSPECTION_SCANNER) $(gtktargetlib) Makefile
|
||||
$(INTROSPECTION_SCANNER) -v \
|
||||
--namespace Gtk --nsversion=2.0 --strip-prefix=Gtk \
|
||||
@ -980,8 +986,7 @@ Gtk-2.0.gir: $(INTROSPECTION_SCANNER) $(gtktargetlib) Makefile
|
||||
-UGDK_DISABLE_DEPRECATED \
|
||||
-UGTK_DISABLE_DEPRECATED \
|
||||
-DGTK_TEXT_USE_INTERNAL_UNSUPPORTED_API \
|
||||
$(gtkinclude_HEADERS) \
|
||||
$(gtk_all_c_sources) gtktypebuiltins.h gtktypebuiltins.c
|
||||
$(addprefix $(srcdir)/, $(introspection_files))
|
||||
BUILT_GIRSOURCES += Gtk-2.0.gir
|
||||
|
||||
girdir = $(datadir)/gir-1.0
|
||||
|
Loading…
Reference in New Issue
Block a user