2 SUBSTITUTED_GIRSOURCES =
7 gir/fontconfig-2.0.gir \
8 gir/freetype2-2.0.gir \
16 EXTRA_DIST += $(STATIC_GIRSOURCES)
18 gir/cairo-1.0.gir: gir/cairo-1.0.gir.in Makefile
19 [ -d $(@D) ] || $(mkdir_p) $(@D) ; \
21 -e s,%CAIRO_SHARED_LIBRARY%,$(CAIRO_SHARED_LIBRARY), \
22 -e s,%CAIRO_GIR_PACKAGE%,$(CAIRO_GIR_PACKAGE), \
23 < $< > $@.tmp && mv $@.tmp $@
24 BUILT_SOURCES += gir/cairo-1.0.gir
25 SUBSTITUTED_GIRSOURCES += gir/cairo-1.0.gir
26 CLEANFILES += gir/cairo-1.0.gir
27 EXTRA_DIST += gir/cairo-1.0.gir.in
29 # Doesn't seem to work to do gir/%.typelib =(
30 gir/cairo-1.0.typelib: g-ir-compiler
31 gir/DBus-1.0.typelib: g-ir-compiler
32 gir/DBusGLib-1.0.typelib: g-ir-compiler
33 gir/fontconfig-2.0.typelib: g-ir-compiler
34 gir/freetype2-2.0.typelib: g-ir-compiler
35 gir/GL-1.0.typelib: g-ir-compiler
36 gir/libxml2-2.0.typelib: g-ir-compiler
37 gir/xft-2.0.typelib: g-ir-compiler
38 gir/xlib-2.0.typelib: g-ir-compiler
39 gir/xfixes-4.0.typelib: g-ir-compiler
40 gir/xrandr-1.3.typelib: g-ir-compiler
41 gir/win32-1.0.typelib: g-ir-compiler
43 # glib with source (to enable documentation)
45 GLib_2_0_gir_DOCSRC = $(GLIBSRC)/glib/*.c
46 GObject_2_0_gir_DOCSRC = $(GLIBSRC)/gobject/*.c
47 GModule_2_0_gir_DOCSRC = $(GLIBSRC)/gmodule/*.c
48 Gio_2_0_gir_DOCSRC = $(GLIBSRC)/gio/*.c
51 GObject_2_0_gir_DOCSRC =
52 GModule_2_0_gir_DOCSRC =
58 GLIB_INCLUDEDIR=$(shell pkg-config --variable=includedir glib-2.0)/glib-2.0
59 GLIB_LIBDIR=$(shell pkg-config --variable=libdir glib-2.0)
62 GLIB_LIBRARY=libglib-2.0-0
67 GLib_2_0_gir_LIBS = $(GLIB_LIBRARY) $(GOBJECT_LIBRARY)
68 GLib_2_0_gir_SCANNERFLAGS = \
71 --identifier-prefix=G \
73 --symbol-prefix=glib \
74 --c-include="glib.h" \
75 $(GLib_2_0_gir_DOCSRC)
76 GLib_2_0_gir_PACKAGES = glib-2.0
77 GLib_2_0_gir_CFLAGS = \
78 -I$(GLIB_INCLUDEDIR) \
79 -I$(GLIB_LIBDIR)/glib-2.0/include \
80 -DGETTEXT_PACKAGE=Dummy \
83 GLib_2_0_gir_FILES = \
84 $(GLIB_LIBDIR)/glib-2.0/include/glibconfig.h \
85 $(GLIB_INCLUDEDIR)/glib/*.h \
86 $(GLIB_INCLUDEDIR)/gobject/glib-types.h \
89 GLib_2_0_gir_FILES += $(GLIB_INCLUDEDIR)/glib-unix.h
92 BUILT_GIRSOURCES += GLib-2.0.gir
94 GLib-2.0.gir: g-ir-scanner g-ir-compiler$(EXEEXT)
96 gir/DBusGLib-1.0.typelib: GObject-2.0.gir
99 GOBJECT_INCLUDEDIR=$(shell pkg-config --variable=includedir gobject-2.0)/glib-2.0
100 GOBJECT_LIBDIR=$(shell pkg-config --variable=libdir gobject-2.0)
103 GOBJECT_LIBRARY=libgobject-2.0-0
105 GOBJECT_LIBRARY=gobject-2.0
108 GObject-2.0.gir: GLib-2.0.gir
109 GObject_2_0_gir_LIBS = $(GOBJECT_LIBRARY)
110 GObject_2_0_gir_SCANNERFLAGS = \
113 --identifier-prefix=G \
114 --c-include="glib-object.h" \
115 --add-include-path=. \
116 $(GObject_2_0_gir_DOCSRC)
118 GObject_2_0_gir_PACKAGES = gobject-2.0
119 GObject_2_0_gir_INCLUDES = GLib-2.0
120 GObject_2_0_gir_CFLAGS = \
121 -DGOBJECT_COMPILATION \
122 -I$(GOBJECT_INCLUDEDIR) \
123 -I$(GOBJECT_LIBDIR)/glib-2.0/include
124 GObject_2_0_gir_FILES = \
125 $(filter-out $(GOBJECT_INCLUDEDIR)/gobject/glib-types.h, $(wildcard $(GOBJECT_INCLUDEDIR)/gobject/*.h)) \
128 BUILT_GIRSOURCES += GObject-2.0.gir
131 GMODULE_INCLUDEDIR=$(shell pkg-config --variable=includedir gmodule-2.0)/glib-2.0
132 GMODULE_LIBDIR=$(shell pkg-config --variable=libdir gmodule-2.0)
135 GMODULE_LIBRARY=libgmodule-2.0-0
137 GMODULE_LIBRARY=gmodule-2.0
140 GModule-2.0.gir: GLib-2.0.gir
142 GModule_2_0_gir_LIBS = $(GMODULE_LIBRARY)
143 GModule_2_0_gir_SCANNERFLAGS = \
145 --identifier-prefix=G \
146 --c-include="gmodule.h" \
147 --add-include-path=. \
148 $(GModule_2_0_gir_DOCSRC)
150 GModule_2_0_gir_PACKAGES = gmodule-2.0
151 GModule_2_0_gir_INCLUDES = GLib-2.0
152 GModule_2_0_gir_CFLAGS = \
153 -I$(GMODULE_INCLUDEDIR) \
154 -I$(GMODULE_LIBDIR)/glib-2.0/include
155 GModule_2_0_gir_FILES = $(GLIB_INCLUDEDIR)/gmodule.h \
158 BUILT_GIRSOURCES += GModule-2.0.gir
161 GIO_INCLUDEDIR=$(shell pkg-config --variable=includedir gio-2.0)/glib-2.0
162 GIO_LIBDIR=$(shell pkg-config --variable=libdir gio-2.0)
165 GIO_LIBRARY=libgio-2.0-0
171 GIO_UNIX_HDRS=$(shell pkg-config --variable=includedir gio-unix-2.0)/gio-unix-2.0/gio/*.h
172 GIO_UNIX_PACKAGES = gio-unix-2.0
177 GIO_CINCLUDES=$(patsubst %,--c-include='%',$(shell echo $(GIO_UNIX_HDRS)))
179 Gio-2.0.gir: GObject-2.0.gir
181 Gio_2_0_gir_LIBS = $(GIO_LIBRARY)
182 Gio_2_0_gir_SCANNERFLAGS = \
186 --identifier-prefix=G \
187 --c-include="gio/gio.h" \
189 --add-include-path=. \
190 $(Gio_2_0_gir_DOCSRC)
192 Gio_2_0_gir_PACKAGES = gio-2.0 $(GIO_UNIX_PACKAGES)
193 Gio_2_0_gir_INCLUDES = GObject-2.0
194 Gio_2_0_gir_CFLAGS = \
196 -I$(GIO_LIBDIR)/glib-2.0/include
197 Gio_2_0_gir_FILES = \
199 $(filter-out %/gsettingsbackend.h, $(shell echo $(GIO_INCLUDEDIR)/gio/*.h)) \
202 BUILT_GIRSOURCES += Gio-2.0.gir
203 EXTRA_DIST += gir/glib-2.0.c gir/gmodule-2.0.c gir/gobject-2.0.c gir/gio-2.0.c
206 GIRepository-2.0.gir: GObject-2.0.gir libgirepository-1.0.la
208 GIRepository_2_0_gir_LIBS = libgirepository-1.0.la
209 GIRepository_2_0_gir_SCANNERFLAGS = \
211 --identifier-prefix=GI \
213 --c-include="girepository.h" \
215 GIRepository_2_0_gir_PACKAGES = gobject-2.0
216 GIRepository_2_0_gir_INCLUDES = GObject-2.0
217 GIRepository_2_0_gir_EXPORT_PACKAGES = gobject-introspection-1.0
218 GIRepository_2_0_gir_CFLAGS = \
219 -I$(top_srcdir)/girepository -I$(top_srcdir) \
221 GIRepository_2_0_gir_FILES = \
222 $(top_srcdir)/girepository/girepository.h \
223 $(top_srcdir)/girepository/girepository.c \
224 $(top_srcdir)/girepository/gi*info.c \
225 $(top_srcdir)/girepository/gi*info.h \
226 $(top_srcdir)/girepository/gitypelib.h \
227 $(top_srcdir)/girepository/gitypes.h
229 BUILT_GIRSOURCES += GIRepository-2.0.gir
231 CLEANFILES += $(BUILT_GIRSOURCES)
233 INTROSPECTION_GIRS += $(BUILT_GIRSOURCES)
236 gir_DATA = $(STATIC_GIRSOURCES) $(SUBSTITUTED_GIRSOURCES) $(BUILT_GIRSOURCES)
238 typelibsdir = $(libdir)/girepository-1.0
239 typelibs_DATA = $(gir_DATA:.gir=.typelib)
241 CLEANFILES += $(typelibs_DATA)