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 \
90 glocaldirectorymonitor.c \
91 glocaldirectorymonitor.h \
94 glocalfileenumerator.c \
95 glocalfileenumerator.h \
98 glocalfileinputstream.c \
99 glocalfileinputstream.h \
100 glocalfilemonitor.c \
101 glocalfilemonitor.h \
102 glocalfileoutputstream.c \
103 glocalfileoutputstream.h \
104 glocalfileiostream.c \
105 glocalfileiostream.h \
116 platform_libadd += inotify/libinotify.la
117 platform_deps += inotify/libinotify.la
121 AM_CPPFLAGS += -DHAVE_FEN
123 platform_libadd += fen/libfen.la
124 platform_deps += fen/libfen.la
129 platform_libadd += win32/libgiowin32.la
130 platform_deps += win32/libgiowin32.la
141 appinfo_sources += gdesktopappinfo.c gdesktopappinfo.h
142 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
143 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
154 gunixsocketaddress.c \
157 gunixvolumemonitor.c \
158 gunixvolumemonitor.h \
160 gunixoutputstream.c \
164 giounixincludedir=$(includedir)/gio-unix-2.0/gio
165 giounixinclude_HEADERS = \
167 gfiledescriptorbased.h \
173 gunixoutputstream.h \
174 gunixsocketaddress.h \
179 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
180 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
186 gwin32volumemonitor.c \
187 gwin32volumemonitor.h \
194 libgio_2_0_la_SOURCES = \
200 gbufferedinputstream.c \
201 gbufferedoutputstream.c \
204 gcontenttypeprivate.h \
205 gcharsetconverter.c \
207 gconverterinputstream.c \
208 gconverteroutputstream.c \
210 gdataoutputstream.c \
220 gfileattribute-priv.h \
221 gfiledescriptorbased.h \
222 gfiledescriptorbased.c \
229 gfilenamecompleter.c \
230 gfileoutputstream.c \
232 gfilterinputstream.c \
233 gfilteroutputstream.c \
236 ginetsocketaddress.c \
247 gmemoryinputstream.c \
248 gmemoryoutputstream.c \
250 gnativevolumemonitor.c \
251 gnativevolumemonitor.h \
253 gnetworkingprivate.h \
260 gsimpleasyncresult.c \
263 gsocketaddressenumerator.c \
265 gsocketconnectable.c \
266 gsocketconnection.c \
267 gsocketcontrolmessage.c \
268 gsocketinputstream.c \
269 gsocketinputstream.h \
271 gsocketoutputstream.c \
272 gsocketoutputstream.h \
276 gthreadedsocketservice.c\
278 gthreadedresolver.c \
279 gthreadedresolver.h \
280 gunionvolumemonitor.c \
281 gunionvolumemonitor.h \
286 gzlibdecompressor.c \
295 $(settings_sources) \
300 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
302 libgio_2_0_la_LIBADD = \
303 $(top_builddir)/glib/libglib-2.0.la \
304 $(top_builddir)/gobject/libgobject-2.0.la \
305 $(top_builddir)/gmodule/libgmodule-2.0.la \
314 no_undefined = -no-undefined
317 if OS_WIN32_AND_DLL_COMPILATION
318 export_symbols = -export-symbols gio.def
321 gio_win32_res = gio-win32-res.o
322 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
325 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
328 -rm $(DESTDIR)$(libdir)/gio-2.0.def
333 export_symbols = -export-symbols-regex '^g_.*'
336 install-data-local: install-ms-lib install-def-file
337 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
339 uninstall-local: uninstall-ms-lib uninstall-def-file
341 libgio_2_0_la_LDFLAGS = \
342 $(gio_win32_res_ldflag) \
343 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
344 -export-dynamic $(no_undefined) $(export_symbols)
346 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
348 gio-win32-res.o: gio.rc
355 gbufferedinputstream.h \
356 gbufferedoutputstream.h \
359 gcharsetconverter.h \
361 gconverterinputstream.h \
362 gconverteroutputstream.h \
364 gdataoutputstream.h \
375 gfilenamecompleter.h \
376 gfileoutputstream.h \
378 gfilterinputstream.h \
379 gfilteroutputstream.h \
382 ginetsocketaddress.h \
394 gmemoryinputstream.h \
395 gmemoryoutputstream.h \
397 gnativevolumemonitor.h \
403 gsimpleasyncresult.h \
406 gsocketaddressenumerator.h \
408 gsocketconnectable.h \
409 gsocketconnection.h \
410 gsocketcontrolmessage.h \
415 gthreadedsocketservice.h\
421 gzlibdecompressor.h \
422 $(settings_headers) \
425 gioincludedir=$(includedir)/glib-2.0/gio/
426 gioinclude_HEADERS = \
430 # these sources (also mentioned above) are generated.
443 gioenumtypes.h.template \
444 gioenumtypes.c.template \
459 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
460 ( top_builddir=`cd $(top_builddir) && pwd`; \
461 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
462 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
464 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
465 ( top_builddir=`cd $(top_builddir) && pwd`; \
466 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
467 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
469 gio-2.0.lib: libgio-2.0.la gio.def
470 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
472 bin_PROGRAMS = gio-querymodules
473 gio_querymodules_SOURCES = gio-querymodules.c
474 gio_querymodules_LDADD = \
475 $(top_builddir)/glib/libglib-2.0.la \
476 $(top_builddir)/gobject/libgobject-2.0.la \
477 $(top_builddir)/gmodule/libgmodule-2.0.la \
481 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
482 files='$(BUILT_EXTRA_DIST)'; \
483 for f in $$files; do \
484 if test -f $$f; then d=.; else d=$(srcdir); fi; \
485 cp $$d/$$f $(distdir) || exit 1; done
487 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
488 for F in $(libgio_2_0_la_SOURCES); do \
490 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
493 done >libgio.sourcefiles
494 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
496 if HAVE_GLIB_RUNTIME_LIBDIR
498 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
499 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
500 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
501 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
502 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so