1 include $(top_srcdir)/Makefile.decl
11 if OS_WIN32_AND_DLL_COMPILATION
13 noinst_DATA = gio-2.0.lib
15 install_ms_lib_cmd = $(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir)
16 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gio-2.0.lib
24 $(uninstall_ms_lib_cmd)
27 (echo -e EXPORTS; $(CPP) -P -DINCLUDE_VARIABLES -DINCLUDE_INTERNAL_SYMBOLS -DG_OS_WIN32 -DALL_FILES - <$(srcdir)/gio.symbols | sed -e '/^$$/d' -e 's/^/ /' -e 's/G_GNUC_[^ ]*//g' | sort) > gio.def.tmp && \
28 mv gio.def.tmp gio.def
30 gioalias.h: gio.symbols
31 $(PERL) $(srcdir)/makegioalias.pl < $(srcdir)/gio.symbols > gioalias.h.tmp && \
32 mv gioalias.h.tmp gioalias.h
34 gioaliasdef.c: gio.symbols
35 $(PERL) $(srcdir)/makegioalias.pl -def < $(srcdir)/gio.symbols > gioaliasdef.c.tmp && \
36 mv gioaliasdef.c.tmp gioaliasdef.c
39 if HAVE_GNUC_VISIBILITY
40 TESTS = abicheck.sh pltcheck.sh
45 -DG_LOG_DOMAIN=\"GLib-GIO\" \
48 -I$(top_srcdir)/glib \
49 -I$(top_srcdir)/gmodule \
51 -DG_DISABLE_DEPRECATED \
53 -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
55 lib_LTLIBRARIES = libgio-2.0.la
63 glib_genmarshal=$(GLIB_GENMARSHAL)
65 glib_genmarshal=../gobject/glib-genmarshal
68 gio-marshal.h: gio-marshal.list
69 $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --header --internal > $@.tmp && \
72 gio-marshal.c: gio-marshal.h gio-marshal.list
73 (echo "#include \"gio-marshal.h\""; \
74 $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --body --internal) > $@.tmp && \
78 glocaldirectorymonitor.c \
79 glocaldirectorymonitor.h \
82 glocalfileenumerator.c \
83 glocalfileenumerator.h \
86 glocalfileinputstream.c \
87 glocalfileinputstream.h \
90 glocalfileoutputstream.c \
91 glocalfileoutputstream.h \
101 platform_libadd += inotify/libinotify.la
105 AM_CPPFLAGS += -DHAVE_FEN
107 platform_libadd += fen/libfen.la
112 platform_libadd += win32/libgiowin32.la
123 appinfo_sources += gdesktopappinfo.c gdesktopappinfo.h
124 platform_libadd += xdgmime/libxdgmime.la
132 gunixvolumemonitor.c \
133 gunixvolumemonitor.h \
135 gunixoutputstream.c \
139 giounixincludedir=$(includedir)/gio-unix-2.0/gio
140 giounixinclude_HEADERS = \
144 gunixoutputstream.h \
149 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
150 platform_libadd += -lshlwapi
154 gwin32volumemonitor.c \
155 gwin32volumemonitor.h \
162 libgio_2_0_la_SOURCES = \
167 gbufferedinputstream.c \
168 gbufferedoutputstream.c \
171 gcontenttypeprivate.h \
173 gdataoutputstream.c \
179 gfileattribute-priv.h \
185 gfilenamecompleter.c \
186 gfileoutputstream.c \
187 gfilterinputstream.c \
188 gfilteroutputstream.c \
198 gmemoryinputstream.c \
199 gmemoryoutputstream.c \
201 gnativevolumemonitor.c \
202 gnativevolumemonitor.h \
207 gsimpleasyncresult.c \
209 gunionvolumemonitor.c \
210 gunionvolumemonitor.h \
226 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
228 libgio_2_0_la_LIBADD = \
229 $(top_builddir)/glib/libglib-2.0.la \
230 $(top_builddir)/gobject/libgobject-2.0.la \
231 $(top_builddir)/gmodule/libgmodule-2.0.la \
239 no_undefined = -no-undefined
242 if OS_WIN32_AND_DLL_COMPILATION
243 export_symbols = -export-symbols gio.def
247 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
250 -rm $(DESTDIR)$(libdir)/gio-2.0.def
255 export_symbols = -export-symbols-regex '^g_.*'
258 install-data-local: install-ms-lib install-def-file
260 uninstall-local: uninstall-ms-lib uninstall-def-file
262 libgio_2_0_la_LDFLAGS = \
263 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
264 -export-dynamic $(no_undefined) $(export_symbols)
266 libgio_2_0_la_DEPENDENCIES = $(gio_def)
271 gbufferedinputstream.h \
272 gbufferedoutputstream.h \
276 gdataoutputstream.h \
285 gfilenamecompleter.h \
286 gfileoutputstream.h \
287 gfilterinputstream.h \
288 gfilteroutputstream.h \
299 gmemoryinputstream.h \
300 gmemoryoutputstream.h \
302 gnativevolumemonitor.h \
305 gsimpleasyncresult.h \
312 gioincludedir=$(includedir)/glib-2.0/gio/
313 gioinclude_HEADERS = \
317 # these sources (also mentioned above) are generated.
330 gioenumtypes.h.template \
331 gioenumtypes.c.template \
342 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
343 ( top_builddir=`cd $(top_builddir) && pwd`; \
344 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
345 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
347 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
348 ( top_builddir=`cd $(top_builddir) && pwd`; \
349 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
350 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
352 gio-2.0.lib: libgio-2.0.la gio.def
353 lib -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@