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 \
97 glocaldirectorymonitor.c \
98 glocaldirectorymonitor.h \
101 glocalfileenumerator.c \
102 glocalfileenumerator.h \
105 glocalfileinputstream.c \
106 glocalfileinputstream.h \
107 glocalfilemonitor.c \
108 glocalfilemonitor.h \
109 glocalfileoutputstream.c \
110 glocalfileoutputstream.h \
111 glocalfileiostream.c \
112 glocalfileiostream.h \
123 platform_libadd += inotify/libinotify.la
124 platform_deps += inotify/libinotify.la
128 AM_CPPFLAGS += -DHAVE_FEN
130 platform_libadd += fen/libfen.la
131 platform_deps += fen/libfen.la
136 platform_libadd += win32/libgiowin32.la
137 platform_deps += win32/libgiowin32.la
148 appinfo_sources += gdesktopappinfo.c gdesktopappinfo.h
149 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
150 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
161 gunixsocketaddress.c \
164 gunixvolumemonitor.c \
165 gunixvolumemonitor.h \
167 gunixoutputstream.c \
171 giounixincludedir=$(includedir)/gio-unix-2.0/gio
172 giounixinclude_HEADERS = \
174 gfiledescriptorbased.h \
180 gunixoutputstream.h \
181 gunixsocketaddress.h \
186 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
187 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
193 gwin32volumemonitor.c \
194 gwin32volumemonitor.h \
201 libgio_2_0_la_SOURCES = \
207 gbufferedinputstream.c \
208 gbufferedoutputstream.c \
211 gcontenttypeprivate.h \
212 gcharsetconverter.c \
214 gconverterinputstream.c \
215 gconverteroutputstream.c \
217 gdataoutputstream.c \
227 gfileattribute-priv.h \
228 gfiledescriptorbased.h \
229 gfiledescriptorbased.c \
236 gfilenamecompleter.c \
237 gfileoutputstream.c \
239 gfilterinputstream.c \
240 gfilteroutputstream.c \
243 ginetsocketaddress.c \
254 gmemoryinputstream.c \
255 gmemoryoutputstream.c \
257 gnativevolumemonitor.c \
258 gnativevolumemonitor.h \
260 gnetworkingprivate.h \
267 gsimpleasyncresult.c \
270 gsocketaddressenumerator.c \
272 gsocketconnectable.c \
273 gsocketconnection.c \
274 gsocketcontrolmessage.c \
275 gsocketinputstream.c \
276 gsocketinputstream.h \
278 gsocketoutputstream.c \
279 gsocketoutputstream.h \
283 gthreadedsocketservice.c\
285 gthreadedresolver.c \
286 gthreadedresolver.h \
287 gunionvolumemonitor.c \
288 gunionvolumemonitor.h \
293 gzlibdecompressor.c \
302 $(settings_sources) \
307 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
309 libgio_2_0_la_LIBADD = \
310 $(top_builddir)/glib/libglib-2.0.la \
311 $(top_builddir)/gobject/libgobject-2.0.la \
312 $(top_builddir)/gmodule/libgmodule-2.0.la \
321 no_undefined = -no-undefined
324 if OS_WIN32_AND_DLL_COMPILATION
325 export_symbols = -export-symbols gio.def
328 gio_win32_res = gio-win32-res.o
329 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
332 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
335 -rm $(DESTDIR)$(libdir)/gio-2.0.def
340 export_symbols = -export-symbols-regex '^g_.*'
343 install-data-local: install-ms-lib install-def-file
344 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
346 uninstall-local: uninstall-ms-lib uninstall-def-file
348 libgio_2_0_la_LDFLAGS = \
349 $(gio_win32_res_ldflag) \
350 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
351 -export-dynamic $(no_undefined) $(export_symbols)
353 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
355 gio-win32-res.o: gio.rc
362 gbufferedinputstream.h \
363 gbufferedoutputstream.h \
366 gcharsetconverter.h \
368 gconverterinputstream.h \
369 gconverteroutputstream.h \
371 gdataoutputstream.h \
382 gfilenamecompleter.h \
383 gfileoutputstream.h \
385 gfilterinputstream.h \
386 gfilteroutputstream.h \
389 ginetsocketaddress.h \
401 gmemoryinputstream.h \
402 gmemoryoutputstream.h \
404 gnativevolumemonitor.h \
410 gsimpleasyncresult.h \
413 gsocketaddressenumerator.h \
415 gsocketconnectable.h \
416 gsocketconnection.h \
417 gsocketcontrolmessage.h \
422 gthreadedsocketservice.h\
428 gzlibdecompressor.h \
429 $(settings_headers) \
432 gioincludedir=$(includedir)/glib-2.0/gio/
433 gioinclude_HEADERS = \
437 # these sources (also mentioned above) are generated.
450 gioenumtypes.h.template \
451 gioenumtypes.c.template \
466 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
467 ( top_builddir=`cd $(top_builddir) && pwd`; \
468 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
469 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
471 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
472 ( top_builddir=`cd $(top_builddir) && pwd`; \
473 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
474 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
476 gio-2.0.lib: libgio-2.0.la gio.def
477 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
479 bin_PROGRAMS = gio-querymodules gschema-compile
480 gio_querymodules_SOURCES = gio-querymodules.c
481 gio_querymodules_LDADD = \
482 $(top_builddir)/glib/libglib-2.0.la \
483 $(top_builddir)/gobject/libgobject-2.0.la \
484 $(top_builddir)/gmodule/libgmodule-2.0.la \
488 gschema_compile_LDADD = $(top_builddir)/glib/libglib-2.0.la
489 gschema_compile_SOURCES = \
491 gvdb/gvdb-builder.h \
492 gvdb/gvdb-builder.c \
495 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
496 files='$(BUILT_EXTRA_DIST)'; \
497 for f in $$files; do \
498 if test -f $$f; then d=.; else d=$(srcdir); fi; \
499 cp $$d/$$f $(distdir) || exit 1; done
501 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
502 for F in $(libgio_2_0_la_SOURCES); do \
504 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
507 done >libgio.sourcefiles
508 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
510 if HAVE_GLIB_RUNTIME_LIBDIR
512 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
513 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
514 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
515 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
516 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so