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 THREAD_FLAGS=-DG_THREADS_MANDATORY
49 -DG_LOG_DOMAIN=\"GLib-GIO\" \
52 -I$(top_srcdir)/glib \
53 -I$(top_srcdir)/gmodule \
56 -DG_DISABLE_DEPRECATED \
58 -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
60 lib_LTLIBRARIES = libgio-2.0.la
68 glib_genmarshal=$(GLIB_GENMARSHAL)
70 glib_genmarshal=../gobject/glib-genmarshal
73 gio-marshal.h: gio-marshal.list
74 $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --header --internal > $@.tmp && \
77 gio-marshal.c: gio-marshal.h gio-marshal.list
78 (echo "#include \"gio-marshal.h\""; \
79 $(glib_genmarshal) --prefix=_gio_marshal $(srcdir)/gio-marshal.list --body --internal) > $@.tmp && \
83 glocaldirectorymonitor.c \
84 glocaldirectorymonitor.h \
87 glocalfileenumerator.c \
88 glocalfileenumerator.h \
91 glocalfileinputstream.c \
92 glocalfileinputstream.h \
95 glocalfileoutputstream.c \
96 glocalfileoutputstream.h \
97 glocalfileiostream.c \
98 glocalfileiostream.h \
109 platform_libadd += inotify/libinotify.la
110 platform_deps += inotify/libinotify.la
114 AM_CPPFLAGS += -DHAVE_FEN
116 platform_libadd += fen/libfen.la
117 platform_deps += fen/libfen.la
122 platform_libadd += win32/libgiowin32.la
123 platform_deps += win32/libgiowin32.la
134 appinfo_sources += gdesktopappinfo.c gdesktopappinfo.h
135 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
136 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
147 gunixsocketaddress.c \
150 gunixvolumemonitor.c \
151 gunixvolumemonitor.h \
153 gunixoutputstream.c \
157 giounixincludedir=$(includedir)/gio-unix-2.0/gio
158 giounixinclude_HEADERS = \
165 gunixoutputstream.h \
166 gunixsocketaddress.h \
171 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
172 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
178 gwin32volumemonitor.c \
179 gwin32volumemonitor.h \
186 libgio_2_0_la_SOURCES = \
192 gbufferedinputstream.c \
193 gbufferedoutputstream.c \
196 gcontenttypeprivate.h \
197 gcharsetconverter.c \
199 gconverterinputstream.c \
200 gconverteroutputstream.c \
202 gdataoutputstream.c \
212 gfileattribute-priv.h \
219 gfilenamecompleter.c \
220 gfileoutputstream.c \
222 gfilterinputstream.c \
223 gfilteroutputstream.c \
226 ginetsocketaddress.c \
237 gmemoryinputstream.c \
238 gmemoryoutputstream.c \
240 gnativevolumemonitor.c \
241 gnativevolumemonitor.h \
243 gnetworkingprivate.h \
250 gsimpleasyncresult.c \
253 gsocketaddressenumerator.c \
255 gsocketconnectable.c \
256 gsocketconnection.c \
257 gsocketcontrolmessage.c \
258 gsocketinputstream.c \
259 gsocketinputstream.h \
261 gsocketoutputstream.c \
262 gsocketoutputstream.h \
266 gthreadedsocketservice.c\
268 gthreadedresolver.c \
269 gthreadedresolver.h \
270 gunionvolumemonitor.c \
271 gunionvolumemonitor.h \
277 gzlibdecompressor.c \
290 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
292 libgio_2_0_la_LIBADD = \
293 $(top_builddir)/glib/libglib-2.0.la \
294 $(top_builddir)/gobject/libgobject-2.0.la \
295 $(top_builddir)/gmodule/libgmodule-2.0.la \
304 no_undefined = -no-undefined
307 if OS_WIN32_AND_DLL_COMPILATION
308 export_symbols = -export-symbols gio.def
312 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
315 -rm $(DESTDIR)$(libdir)/gio-2.0.def
320 export_symbols = -export-symbols-regex '^g_.*'
323 install-data-local: install-ms-lib install-def-file
324 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
326 uninstall-local: uninstall-ms-lib uninstall-def-file
328 libgio_2_0_la_LDFLAGS = \
329 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
330 -export-dynamic $(no_undefined) $(export_symbols)
332 libgio_2_0_la_DEPENDENCIES = $(gio_def) $(platform_deps)
338 gbufferedinputstream.h \
339 gbufferedoutputstream.h \
342 gcharsetconverter.h \
344 gconverterinputstream.h \
345 gconverteroutputstream.h \
347 gdataoutputstream.h \
358 gfilenamecompleter.h \
359 gfileoutputstream.h \
361 gfilterinputstream.h \
362 gfilteroutputstream.h \
365 ginetsocketaddress.h \
377 gmemoryinputstream.h \
378 gmemoryoutputstream.h \
380 gnativevolumemonitor.h \
386 gsimpleasyncresult.h \
389 gsocketaddressenumerator.h \
391 gsocketconnectable.h \
392 gsocketconnection.h \
393 gsocketcontrolmessage.h \
398 gthreadedsocketservice.h\
405 gzlibdecompressor.h \
408 gioincludedir=$(includedir)/glib-2.0/gio/
409 gioinclude_HEADERS = \
413 # these sources (also mentioned above) are generated.
426 gioenumtypes.h.template \
427 gioenumtypes.c.template \
438 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
439 ( top_builddir=`cd $(top_builddir) && pwd`; \
440 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
441 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
443 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
444 ( top_builddir=`cd $(top_builddir) && pwd`; \
445 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
446 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
448 gio-2.0.lib: libgio-2.0.la gio.def
449 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
451 bin_PROGRAMS = gio-querymodules
452 gio_querymodules_SOURCES = gio-querymodules.c
453 gio_querymodules_LDADD = \
454 $(top_builddir)/glib/libglib-2.0.la \
455 $(top_builddir)/gobject/libgobject-2.0.la \
456 $(top_builddir)/gmodule/libgmodule-2.0.la \
461 if HAVE_GLIB_RUNTIME_LIBDIR
463 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
464 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
465 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
466 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
467 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so