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 gdelayedsettingsbackend.h \
85 gdelayedsettingsbackend. \
86 gnullsettingsbackend.h \
87 gnullsettingsbackend.c \
99 glocaldirectorymonitor.c \
100 glocaldirectorymonitor.h \
103 glocalfileenumerator.c \
104 glocalfileenumerator.h \
107 glocalfileinputstream.c \
108 glocalfileinputstream.h \
109 glocalfilemonitor.c \
110 glocalfilemonitor.h \
111 glocalfileoutputstream.c \
112 glocalfileoutputstream.h \
113 glocalfileiostream.c \
114 glocalfileiostream.h \
125 platform_libadd += inotify/libinotify.la
126 platform_deps += inotify/libinotify.la
130 AM_CPPFLAGS += -DHAVE_FEN
132 platform_libadd += fen/libfen.la
133 platform_deps += fen/libfen.la
138 platform_libadd += win32/libgiowin32.la
139 platform_deps += win32/libgiowin32.la
150 appinfo_sources += gdesktopappinfo.c gdesktopappinfo.h
151 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
152 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
163 gunixsocketaddress.c \
166 gunixvolumemonitor.c \
167 gunixvolumemonitor.h \
169 gunixoutputstream.c \
173 giounixincludedir=$(includedir)/gio-unix-2.0/gio
174 giounixinclude_HEADERS = \
176 gfiledescriptorbased.h \
182 gunixoutputstream.h \
183 gunixsocketaddress.h \
188 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
189 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
195 gwin32volumemonitor.c \
196 gwin32volumemonitor.h \
203 libgio_2_0_la_SOURCES = \
209 gbufferedinputstream.c \
210 gbufferedoutputstream.c \
213 gcontenttypeprivate.h \
214 gcharsetconverter.c \
216 gconverterinputstream.c \
217 gconverteroutputstream.c \
219 gdataoutputstream.c \
229 gfileattribute-priv.h \
230 gfiledescriptorbased.h \
231 gfiledescriptorbased.c \
238 gfilenamecompleter.c \
239 gfileoutputstream.c \
241 gfilterinputstream.c \
242 gfilteroutputstream.c \
245 ginetsocketaddress.c \
256 gmemoryinputstream.c \
257 gmemoryoutputstream.c \
259 gnativevolumemonitor.c \
260 gnativevolumemonitor.h \
262 gnetworkingprivate.h \
269 gsimpleasyncresult.c \
272 gsocketaddressenumerator.c \
274 gsocketconnectable.c \
275 gsocketconnection.c \
276 gsocketcontrolmessage.c \
277 gsocketinputstream.c \
278 gsocketinputstream.h \
280 gsocketoutputstream.c \
281 gsocketoutputstream.h \
285 gthreadedsocketservice.c\
287 gthreadedresolver.c \
288 gthreadedresolver.h \
289 gunionvolumemonitor.c \
290 gunionvolumemonitor.h \
295 gzlibdecompressor.c \
304 $(settings_sources) \
309 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
311 libgio_2_0_la_LIBADD = \
312 $(top_builddir)/glib/libglib-2.0.la \
313 $(top_builddir)/gobject/libgobject-2.0.la \
314 $(top_builddir)/gmodule/libgmodule-2.0.la \
323 no_undefined = -no-undefined
326 if OS_WIN32_AND_DLL_COMPILATION
327 export_symbols = -export-symbols gio.def
330 gio_win32_res = gio-win32-res.o
331 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
334 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
337 -rm $(DESTDIR)$(libdir)/gio-2.0.def
342 export_symbols = -export-symbols-regex '^g_.*'
345 install-data-local: install-ms-lib install-def-file
346 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
348 uninstall-local: uninstall-ms-lib uninstall-def-file
350 libgio_2_0_la_LDFLAGS = \
351 $(gio_win32_res_ldflag) \
352 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
353 -export-dynamic $(no_undefined) $(export_symbols)
355 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
357 gio-win32-res.o: gio.rc
364 gbufferedinputstream.h \
365 gbufferedoutputstream.h \
368 gcharsetconverter.h \
370 gconverterinputstream.h \
371 gconverteroutputstream.h \
373 gdataoutputstream.h \
384 gfilenamecompleter.h \
385 gfileoutputstream.h \
387 gfilterinputstream.h \
388 gfilteroutputstream.h \
391 ginetsocketaddress.h \
403 gmemoryinputstream.h \
404 gmemoryoutputstream.h \
406 gnativevolumemonitor.h \
412 gsimpleasyncresult.h \
415 gsocketaddressenumerator.h \
417 gsocketconnectable.h \
418 gsocketconnection.h \
419 gsocketcontrolmessage.h \
424 gthreadedsocketservice.h\
430 gzlibdecompressor.h \
431 $(settings_headers) \
434 gioincludedir=$(includedir)/glib-2.0/gio/
435 gioinclude_HEADERS = \
439 # these sources (also mentioned above) are generated.
452 gioenumtypes.h.template \
453 gioenumtypes.c.template \
468 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
469 ( top_builddir=`cd $(top_builddir) && pwd`; \
470 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
471 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
473 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
474 ( top_builddir=`cd $(top_builddir) && pwd`; \
475 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
476 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
478 gio-2.0.lib: libgio-2.0.la gio.def
479 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
481 bin_PROGRAMS = gio-querymodules gschema-compile
482 gio_querymodules_SOURCES = gio-querymodules.c
483 gio_querymodules_LDADD = \
484 $(top_builddir)/glib/libglib-2.0.la \
485 $(top_builddir)/gobject/libgobject-2.0.la \
486 $(top_builddir)/gmodule/libgmodule-2.0.la \
490 gschema_compile_LDADD = $(top_builddir)/glib/libglib-2.0.la
491 gschema_compile_SOURCES = \
493 gvdb/gvdb-builder.h \
494 gvdb/gvdb-builder.c \
497 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
498 files='$(BUILT_EXTRA_DIST)'; \
499 for f in $$files; do \
500 if test -f $$f; then d=.; else d=$(srcdir); fi; \
501 cp $$d/$$f $(distdir) || exit 1; done
503 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
504 for F in $(libgio_2_0_la_SOURCES); do \
506 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
509 done >libgio.sourcefiles
510 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
512 if HAVE_GLIB_RUNTIME_LIBDIR
514 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
515 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
516 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
517 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
518 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so