1 include $(top_srcdir)/Makefile.decl
8 SUBDIRS += libasyncns xdgmime
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 \
92 glocalfileiostream.c \
93 glocalfileiostream.h \
104 platform_libadd += inotify/libinotify.la
105 platform_deps += inotify/libinotify.la
109 AM_CPPFLAGS += -DHAVE_FEN
111 platform_libadd += fen/libfen.la
112 platform_deps += fen/libfen.la
117 platform_libadd += win32/libgiowin32.la
118 platform_deps += win32/libgiowin32.la
129 appinfo_sources += gdesktopappinfo.c gdesktopappinfo.h
130 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
131 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
142 gunixsocketaddress.c \
145 gunixvolumemonitor.c \
146 gunixvolumemonitor.h \
148 gunixoutputstream.c \
152 giounixincludedir=$(includedir)/gio-unix-2.0/gio
153 giounixinclude_HEADERS = \
160 gunixoutputstream.h \
161 gunixsocketaddress.h \
166 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
167 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
173 gwin32volumemonitor.c \
174 gwin32volumemonitor.h \
181 libgio_2_0_la_SOURCES = \
187 gbufferedinputstream.c \
188 gbufferedoutputstream.c \
191 gcontenttypeprivate.h \
192 gcharsetconverter.c \
194 gconverterinputstream.c \
195 gconverteroutputstream.c \
197 gdataoutputstream.c \
207 gfileattribute-priv.h \
214 gfilenamecompleter.c \
215 gfileoutputstream.c \
217 gfilterinputstream.c \
218 gfilteroutputstream.c \
221 ginetsocketaddress.c \
232 gmemoryinputstream.c \
233 gmemoryoutputstream.c \
235 gnativevolumemonitor.c \
236 gnativevolumemonitor.h \
238 gnetworkingprivate.h \
245 gsimpleasyncresult.c \
248 gsocketaddressenumerator.c \
250 gsocketconnectable.c \
251 gsocketconnection.c \
252 gsocketcontrolmessage.c \
253 gsocketinputstream.c \
254 gsocketinputstream.h \
256 gsocketoutputstream.c \
257 gsocketoutputstream.h \
261 gthreadedsocketservice.c\
263 gthreadedresolver.c \
264 gthreadedresolver.h \
265 gunionvolumemonitor.c \
266 gunionvolumemonitor.h \
272 gzlibdecompressor.c \
285 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
287 libgio_2_0_la_LIBADD = \
288 $(top_builddir)/glib/libglib-2.0.la \
289 $(top_builddir)/gobject/libgobject-2.0.la \
290 $(top_builddir)/gmodule/libgmodule-2.0.la \
299 no_undefined = -no-undefined
302 if OS_WIN32_AND_DLL_COMPILATION
303 export_symbols = -export-symbols gio.def
307 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
310 -rm $(DESTDIR)$(libdir)/gio-2.0.def
315 export_symbols = -export-symbols-regex '^g_.*'
318 install-data-local: install-ms-lib install-def-file
319 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
321 uninstall-local: uninstall-ms-lib uninstall-def-file
323 libgio_2_0_la_LDFLAGS = \
324 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
325 -export-dynamic $(no_undefined) $(export_symbols)
327 libgio_2_0_la_DEPENDENCIES = $(gio_def) $(platform_deps)
333 gbufferedinputstream.h \
334 gbufferedoutputstream.h \
337 gcharsetconverter.h \
339 gconverterinputstream.h \
340 gconverteroutputstream.h \
342 gdataoutputstream.h \
353 gfilenamecompleter.h \
354 gfileoutputstream.h \
356 gfilterinputstream.h \
357 gfilteroutputstream.h \
360 ginetsocketaddress.h \
372 gmemoryinputstream.h \
373 gmemoryoutputstream.h \
375 gnativevolumemonitor.h \
381 gsimpleasyncresult.h \
384 gsocketaddressenumerator.h \
386 gsocketconnectable.h \
387 gsocketconnection.h \
388 gsocketcontrolmessage.h \
393 gthreadedsocketservice.h\
400 gzlibdecompressor.h \
403 gioincludedir=$(includedir)/glib-2.0/gio/
404 gioinclude_HEADERS = \
408 # these sources (also mentioned above) are generated.
421 gioenumtypes.h.template \
422 gioenumtypes.c.template \
433 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
434 ( top_builddir=`cd $(top_builddir) && pwd`; \
435 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
436 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
438 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
439 ( top_builddir=`cd $(top_builddir) && pwd`; \
440 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
441 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
443 gio-2.0.lib: libgio-2.0.la gio.def
444 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
446 if HAVE_GLIB_RUNTIME_LIBDIR
448 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
449 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
450 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
451 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
452 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so