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 = \
160 gfiledescriptorbased.h \
166 gunixoutputstream.h \
167 gunixsocketaddress.h \
172 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
173 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
179 gwin32volumemonitor.c \
180 gwin32volumemonitor.h \
187 libgio_2_0_la_SOURCES = \
193 gbufferedinputstream.c \
194 gbufferedoutputstream.c \
197 gcontenttypeprivate.h \
198 gcharsetconverter.c \
200 gconverterinputstream.c \
201 gconverteroutputstream.c \
203 gdataoutputstream.c \
213 gfileattribute-priv.h \
214 gfiledescriptorbased.h \
215 gfiledescriptorbased.c \
222 gfilenamecompleter.c \
223 gfileoutputstream.c \
225 gfilterinputstream.c \
226 gfilteroutputstream.c \
229 ginetsocketaddress.c \
240 gmemoryinputstream.c \
241 gmemoryoutputstream.c \
243 gnativevolumemonitor.c \
244 gnativevolumemonitor.h \
246 gnetworkingprivate.h \
253 gsimpleasyncresult.c \
256 gsocketaddressenumerator.c \
258 gsocketconnectable.c \
259 gsocketconnection.c \
260 gsocketcontrolmessage.c \
261 gsocketinputstream.c \
262 gsocketinputstream.h \
264 gsocketoutputstream.c \
265 gsocketoutputstream.h \
269 gthreadedsocketservice.c\
271 gthreadedresolver.c \
272 gthreadedresolver.h \
273 gunionvolumemonitor.c \
274 gunionvolumemonitor.h \
279 gzlibdecompressor.c \
292 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
294 libgio_2_0_la_LIBADD = \
295 $(top_builddir)/glib/libglib-2.0.la \
296 $(top_builddir)/gobject/libgobject-2.0.la \
297 $(top_builddir)/gmodule/libgmodule-2.0.la \
306 no_undefined = -no-undefined
309 if OS_WIN32_AND_DLL_COMPILATION
310 export_symbols = -export-symbols gio.def
313 gio_win32_res = gio-win32-res.o
314 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
317 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
320 -rm $(DESTDIR)$(libdir)/gio-2.0.def
325 export_symbols = -export-symbols-regex '^g_.*'
328 install-data-local: install-ms-lib install-def-file
329 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
331 uninstall-local: uninstall-ms-lib uninstall-def-file
333 libgio_2_0_la_LDFLAGS = \
334 $(gio_win32_res_ldflag) \
335 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
336 -export-dynamic $(no_undefined) $(export_symbols)
338 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
340 gio-win32-res.o: gio.rc
347 gbufferedinputstream.h \
348 gbufferedoutputstream.h \
351 gcharsetconverter.h \
353 gconverterinputstream.h \
354 gconverteroutputstream.h \
356 gdataoutputstream.h \
367 gfilenamecompleter.h \
368 gfileoutputstream.h \
370 gfilterinputstream.h \
371 gfilteroutputstream.h \
374 ginetsocketaddress.h \
386 gmemoryinputstream.h \
387 gmemoryoutputstream.h \
389 gnativevolumemonitor.h \
395 gsimpleasyncresult.h \
398 gsocketaddressenumerator.h \
400 gsocketconnectable.h \
401 gsocketconnection.h \
402 gsocketcontrolmessage.h \
407 gthreadedsocketservice.h\
413 gzlibdecompressor.h \
416 gioincludedir=$(includedir)/glib-2.0/gio/
417 gioinclude_HEADERS = \
421 # these sources (also mentioned above) are generated.
434 gioenumtypes.h.template \
435 gioenumtypes.c.template \
450 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
451 ( top_builddir=`cd $(top_builddir) && pwd`; \
452 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
453 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
455 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
456 ( top_builddir=`cd $(top_builddir) && pwd`; \
457 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
458 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
460 gio-2.0.lib: libgio-2.0.la gio.def
461 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
463 bin_PROGRAMS = gio-querymodules
464 gio_querymodules_SOURCES = gio-querymodules.c
465 gio_querymodules_LDADD = \
466 $(top_builddir)/glib/libglib-2.0.la \
467 $(top_builddir)/gobject/libgobject-2.0.la \
468 $(top_builddir)/gmodule/libgmodule-2.0.la \
472 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
473 files='$(BUILT_EXTRA_DIST)'; \
474 for f in $$files; do \
475 if test -f $$f; then d=.; else d=$(srcdir); fi; \
476 cp $$d/$$f $(distdir) || exit 1; done
478 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
479 for F in $(libgio_2_0_la_SOURCES); do \
481 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
484 done >libgio.sourcefiles
485 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
487 if HAVE_GLIB_RUNTIME_LIBDIR
489 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
490 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
491 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
492 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
493 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so