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 gsettingsbackendinternal.h \
84 gnullsettingsbackend.h \
85 gnullsettingsbackend.c \
92 glocaldirectorymonitor.c \
93 glocaldirectorymonitor.h \
96 glocalfileenumerator.c \
97 glocalfileenumerator.h \
100 glocalfileinputstream.c \
101 glocalfileinputstream.h \
102 glocalfilemonitor.c \
103 glocalfilemonitor.h \
104 glocalfileoutputstream.c \
105 glocalfileoutputstream.h \
106 glocalfileiostream.c \
107 glocalfileiostream.h \
118 platform_libadd += inotify/libinotify.la
119 platform_deps += inotify/libinotify.la
123 AM_CPPFLAGS += -DHAVE_FEN
125 platform_libadd += fen/libfen.la
126 platform_deps += fen/libfen.la
131 platform_libadd += win32/libgiowin32.la
132 platform_deps += win32/libgiowin32.la
143 appinfo_sources += gdesktopappinfo.c gdesktopappinfo.h
144 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
145 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
156 gunixsocketaddress.c \
159 gunixvolumemonitor.c \
160 gunixvolumemonitor.h \
162 gunixoutputstream.c \
166 giounixincludedir=$(includedir)/gio-unix-2.0/gio
167 giounixinclude_HEADERS = \
169 gfiledescriptorbased.h \
175 gunixoutputstream.h \
176 gunixsocketaddress.h \
181 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
182 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
188 gwin32volumemonitor.c \
189 gwin32volumemonitor.h \
196 libgio_2_0_la_SOURCES = \
202 gbufferedinputstream.c \
203 gbufferedoutputstream.c \
206 gcontenttypeprivate.h \
207 gcharsetconverter.c \
209 gconverterinputstream.c \
210 gconverteroutputstream.c \
212 gdataoutputstream.c \
222 gfileattribute-priv.h \
223 gfiledescriptorbased.h \
224 gfiledescriptorbased.c \
231 gfilenamecompleter.c \
232 gfileoutputstream.c \
234 gfilterinputstream.c \
235 gfilteroutputstream.c \
238 ginetsocketaddress.c \
249 gmemoryinputstream.c \
250 gmemoryoutputstream.c \
252 gnativevolumemonitor.c \
253 gnativevolumemonitor.h \
255 gnetworkingprivate.h \
262 gsimpleasyncresult.c \
265 gsocketaddressenumerator.c \
267 gsocketconnectable.c \
268 gsocketconnection.c \
269 gsocketcontrolmessage.c \
270 gsocketinputstream.c \
271 gsocketinputstream.h \
273 gsocketoutputstream.c \
274 gsocketoutputstream.h \
278 gthreadedsocketservice.c\
280 gthreadedresolver.c \
281 gthreadedresolver.h \
282 gunionvolumemonitor.c \
283 gunionvolumemonitor.h \
288 gzlibdecompressor.c \
297 $(settings_sources) \
302 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
304 libgio_2_0_la_LIBADD = \
305 $(top_builddir)/glib/libglib-2.0.la \
306 $(top_builddir)/gobject/libgobject-2.0.la \
307 $(top_builddir)/gmodule/libgmodule-2.0.la \
316 no_undefined = -no-undefined
319 if OS_WIN32_AND_DLL_COMPILATION
320 export_symbols = -export-symbols gio.def
323 gio_win32_res = gio-win32-res.o
324 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
327 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
330 -rm $(DESTDIR)$(libdir)/gio-2.0.def
335 export_symbols = -export-symbols-regex '^g_.*'
338 install-data-local: install-ms-lib install-def-file
339 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
341 uninstall-local: uninstall-ms-lib uninstall-def-file
343 libgio_2_0_la_LDFLAGS = \
344 $(gio_win32_res_ldflag) \
345 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
346 -export-dynamic $(no_undefined) $(export_symbols)
348 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
350 gio-win32-res.o: gio.rc
357 gbufferedinputstream.h \
358 gbufferedoutputstream.h \
361 gcharsetconverter.h \
363 gconverterinputstream.h \
364 gconverteroutputstream.h \
366 gdataoutputstream.h \
377 gfilenamecompleter.h \
378 gfileoutputstream.h \
380 gfilterinputstream.h \
381 gfilteroutputstream.h \
384 ginetsocketaddress.h \
396 gmemoryinputstream.h \
397 gmemoryoutputstream.h \
399 gnativevolumemonitor.h \
405 gsimpleasyncresult.h \
408 gsocketaddressenumerator.h \
410 gsocketconnectable.h \
411 gsocketconnection.h \
412 gsocketcontrolmessage.h \
417 gthreadedsocketservice.h\
423 gzlibdecompressor.h \
424 $(settings_headers) \
427 gioincludedir=$(includedir)/glib-2.0/gio/
428 gioinclude_HEADERS = \
432 # these sources (also mentioned above) are generated.
445 gioenumtypes.h.template \
446 gioenumtypes.c.template \
461 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
462 ( top_builddir=`cd $(top_builddir) && pwd`; \
463 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
464 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
466 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
467 ( top_builddir=`cd $(top_builddir) && pwd`; \
468 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
469 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
471 gio-2.0.lib: libgio-2.0.la gio.def
472 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
474 bin_PROGRAMS = gio-querymodules
475 gio_querymodules_SOURCES = gio-querymodules.c
476 gio_querymodules_LDADD = \
477 $(top_builddir)/glib/libglib-2.0.la \
478 $(top_builddir)/gobject/libgobject-2.0.la \
479 $(top_builddir)/gmodule/libgmodule-2.0.la \
483 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
484 files='$(BUILT_EXTRA_DIST)'; \
485 for f in $$files; do \
486 if test -f $$f; then d=.; else d=$(srcdir); fi; \
487 cp $$d/$$f $(distdir) || exit 1; done
489 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
490 for F in $(libgio_2_0_la_SOURCES); do \
492 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
495 done >libgio.sourcefiles
496 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
498 if HAVE_GLIB_RUNTIME_LIBDIR
500 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
501 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
502 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
503 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
504 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so