From: Martin Pitt Date: Thu, 8 Sep 2011 07:14:02 +0000 (+0200) Subject: Consistently treat gdkenumtypes.[hc] as source files X-Git-Tag: archive/raspbian/3.22.11-1+rpi1~1^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1d39e560ebaad193225c00e34399d72d128bccc4;p=gtk%2B3.0.git Consistently treat gdkenumtypes.[hc] as source files Always generate gdk/gdkenumtypes.c in the source tree, and fix path in the introspection sources. With this, gdkenumtypes.c is correctly included with separate build trees, too. This fixes missing GTypes in the .gir when using a separate build tree. Also remove the gdk/stamp-gdkenumtypes.h target. It was forcing the regeneration of gdk/gdkenumtypes.h even if it was already present and current in the source tree. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=647729 Bug-Ubuntu: https://launchpad.net/bugs/769256 Gbp-Pq: Name 018_gdkenumtypes.c_location.patch --- diff --git a/gdk/Makefile.am b/gdk/Makefile.am index 35dc66116e..d2ea01ce21 100644 --- a/gdk/Makefile.am +++ b/gdk/Makefile.am @@ -243,8 +243,8 @@ if HAVE_INTROSPECTION introspection_files = \ $(filter-out gdkkeysyms-compat.h, $(gdk_h_sources)) \ $(gdk_c_sources) \ - gdkenumtypes.c \ - gdkenumtypes.h + $(srcdir)/gdkenumtypes.c \ + $(srcdir)/gdkenumtypes.h Gdk-3.0.gir: libgdk-3.la Makefile Gdk_3_0_gir_SCANNERFLAGS = \ @@ -408,7 +408,7 @@ endif lib_LTLIBRARIES = libgdk-3.la -MAINTAINERCLEANFILES = $(gdk_built_sources) stamp-gdkenumtypes.h +MAINTAINERCLEANFILES = $(gdk_built_sources) EXTRA_DIST += \ $(gdk_built_sources) \ fallback-c89.c @@ -422,18 +422,15 @@ BUILT_SOURCES = \ $(gdk_built_sources) \ gdkconfig.h -gdkenumtypes.h: stamp-gdkenumtypes.h - @true -stamp-gdkenumtypes.h: $(gdk_h_sources) gdkenumtypes.h.template +gdkenumtypes.h: $(gdk_public_h_sources) $(srcdir)/gdkenumtypes.h.template $(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) --template gdkenumtypes.h.template \ $(gdk_h_sources) ) >> xgen-geth \ - && (cmp -s xgen-geth gdkenumtypes.h || cp xgen-geth gdkenumtypes.h ) \ - && rm -f xgen-geth \ - && echo timestamp > $(@F) + && (cmp -s xgen-geth gdkenumtypes.h || cp xgen-geth $(srcdir)/gdkenumtypes.h ) \ + && rm -f xgen-geth gdkenumtypes.c: $(gdk_h_sources) gdkenumtypes.c.template $(AM_V_GEN) ( cd $(srcdir) && $(GLIB_MKENUMS) --template gdkenumtypes.c.template \ $(gdk_h_sources) ) > xgen-getc \ - && cp xgen-getc gdkenumtypes.c \ + && cp xgen-getc $(srcdir)/gdkenumtypes.c \ && rm -f xgen-getc #