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 && \
90 gdelayedsettingsbackend.h \
91 gdelayedsettingsbackend.c \
92 gkeyfilesettingsbackend.h \
93 gkeyfilesettingsbackend.c \
94 gnullsettingsbackend.h \
95 gnullsettingsbackend.c \
96 gsettingsbackendinternal.h \
100 gsettings-mapping.h \
101 gsettings-mapping.c \
105 glocaldirectorymonitor.c \
106 glocaldirectorymonitor.h \
109 glocalfileenumerator.c \
110 glocalfileenumerator.h \
113 glocalfileinputstream.c \
114 glocalfileinputstream.h \
115 glocalfilemonitor.c \
116 glocalfilemonitor.h \
117 glocalfileoutputstream.c \
118 glocalfileoutputstream.h \
119 glocalfileiostream.c \
120 glocalfileiostream.h \
131 platform_libadd += inotify/libinotify.la
132 platform_deps += inotify/libinotify.la
136 AM_CPPFLAGS += -DHAVE_FEN
138 platform_libadd += fen/libfen.la
139 platform_deps += fen/libfen.la
144 platform_libadd += win32/libgiowin32.la
145 platform_deps += win32/libgiowin32.la
156 appinfo_sources += gdesktopappinfo.c gdesktopappinfo.h
157 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
158 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
169 gunixsocketaddress.c \
172 gunixvolumemonitor.c \
173 gunixvolumemonitor.h \
175 gunixoutputstream.c \
179 giounixincludedir=$(includedir)/gio-unix-2.0/gio
180 giounixinclude_HEADERS = \
182 gfiledescriptorbased.h \
188 gunixoutputstream.h \
189 gunixsocketaddress.h \
194 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
195 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
201 gwin32volumemonitor.c \
202 gwin32volumemonitor.h \
209 libgio_2_0_la_SOURCES = \
215 gbufferedinputstream.c \
216 gbufferedoutputstream.c \
219 gcontenttypeprivate.h \
220 gcharsetconverter.c \
222 gconverterinputstream.c \
223 gconverteroutputstream.c \
225 gdataoutputstream.c \
235 gfileattribute-priv.h \
236 gfiledescriptorbased.h \
237 gfiledescriptorbased.c \
244 gfilenamecompleter.c \
245 gfileoutputstream.c \
247 gfilterinputstream.c \
248 gfilteroutputstream.c \
251 ginetsocketaddress.c \
262 gmemoryinputstream.c \
263 gmemoryoutputstream.c \
265 gnativevolumemonitor.c \
266 gnativevolumemonitor.h \
268 gnetworkingprivate.h \
275 gsimpleasyncresult.c \
278 gsocketaddressenumerator.c \
280 gsocketconnectable.c \
281 gsocketconnection.c \
282 gsocketcontrolmessage.c \
283 gsocketinputstream.c \
284 gsocketinputstream.h \
286 gsocketoutputstream.c \
287 gsocketoutputstream.h \
291 gthreadedsocketservice.c\
293 gthreadedresolver.c \
294 gthreadedresolver.h \
295 gunionvolumemonitor.c \
296 gunionvolumemonitor.h \
301 gzlibdecompressor.c \
310 $(settings_sources) \
315 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
317 libgio_2_0_la_LIBADD = \
318 $(top_builddir)/glib/libglib-2.0.la \
319 $(top_builddir)/gobject/libgobject-2.0.la \
320 $(top_builddir)/gmodule/libgmodule-2.0.la \
329 no_undefined = -no-undefined
332 if OS_WIN32_AND_DLL_COMPILATION
333 export_symbols = -export-symbols gio.def
336 gio_win32_res = gio-win32-res.o
337 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
340 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
343 -rm $(DESTDIR)$(libdir)/gio-2.0.def
348 export_symbols = -export-symbols-regex '^g_.*'
351 install-data-local: install-ms-lib install-def-file
352 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
354 uninstall-local: uninstall-ms-lib uninstall-def-file
356 libgio_2_0_la_LDFLAGS = \
357 $(gio_win32_res_ldflag) \
358 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
359 -export-dynamic $(no_undefined) $(export_symbols)
361 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
363 gio-win32-res.o: gio.rc
370 gbufferedinputstream.h \
371 gbufferedoutputstream.h \
374 gcharsetconverter.h \
376 gconverterinputstream.h \
377 gconverteroutputstream.h \
379 gdataoutputstream.h \
390 gfilenamecompleter.h \
391 gfileoutputstream.h \
393 gfilterinputstream.h \
394 gfilteroutputstream.h \
397 ginetsocketaddress.h \
409 gmemoryinputstream.h \
410 gmemoryoutputstream.h \
412 gnativevolumemonitor.h \
418 gsimpleasyncresult.h \
421 gsocketaddressenumerator.h \
423 gsocketconnectable.h \
424 gsocketconnection.h \
425 gsocketcontrolmessage.h \
430 gthreadedsocketservice.h\
436 gzlibdecompressor.h \
437 $(settings_headers) \
440 gioincludedir=$(includedir)/glib-2.0/gio/
441 gioinclude_HEADERS = \
445 # these sources (also mentioned above) are generated.
458 gioenumtypes.h.template \
459 gioenumtypes.c.template \
474 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
475 ( top_builddir=`cd $(top_builddir) && pwd`; \
476 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
477 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
479 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
480 ( top_builddir=`cd $(top_builddir) && pwd`; \
481 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
482 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
484 gio-2.0.lib: libgio-2.0.la gio.def
485 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
487 bin_PROGRAMS = gio-querymodules gschema-compile
488 gio_querymodules_SOURCES = gio-querymodules.c
489 gio_querymodules_LDADD = \
490 $(top_builddir)/glib/libglib-2.0.la \
491 $(top_builddir)/gobject/libgobject-2.0.la \
492 $(top_builddir)/gmodule/libgmodule-2.0.la \
496 gschema_compile_LDADD = $(top_builddir)/glib/libglib-2.0.la
497 gschema_compile_SOURCES = \
499 gvdb/gvdb-builder.h \
500 gvdb/gvdb-builder.c \
503 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
504 files='$(BUILT_EXTRA_DIST)'; \
505 for f in $$files; do \
506 if test -f $$f; then d=.; else d=$(srcdir); fi; \
507 cp $$d/$$f $(distdir) || exit 1; done
509 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
510 for F in $(libgio_2_0_la_SOURCES); do \
512 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
515 done >libgio.sourcefiles
516 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
518 if HAVE_GLIB_RUNTIME_LIBDIR
520 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
521 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
522 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
523 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
524 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so