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 gmemorysettingsbackend.h \
95 gmemorysettingsbackend.c \
96 gnullsettingsbackend.h \
97 gnullsettingsbackend.c \
98 gsettingsbackendinternal.h \
102 gsettings-mapping.h \
103 gsettings-mapping.c \
107 glocaldirectorymonitor.c \
108 glocaldirectorymonitor.h \
111 glocalfileenumerator.c \
112 glocalfileenumerator.h \
115 glocalfileinputstream.c \
116 glocalfileinputstream.h \
117 glocalfilemonitor.c \
118 glocalfilemonitor.h \
119 glocalfileoutputstream.c \
120 glocalfileoutputstream.h \
121 glocalfileiostream.c \
122 glocalfileiostream.h \
133 platform_libadd += inotify/libinotify.la
134 platform_deps += inotify/libinotify.la
138 AM_CPPFLAGS += -DHAVE_FEN
140 platform_libadd += fen/libfen.la
141 platform_deps += fen/libfen.la
146 platform_libadd += win32/libgiowin32.la
147 platform_deps += win32/libgiowin32.la
158 appinfo_sources += gdesktopappinfo.c gdesktopappinfo.h
159 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
160 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
171 gunixsocketaddress.c \
174 gunixvolumemonitor.c \
175 gunixvolumemonitor.h \
177 gunixoutputstream.c \
181 giounixincludedir=$(includedir)/gio-unix-2.0/gio
182 giounixinclude_HEADERS = \
184 gfiledescriptorbased.h \
190 gunixoutputstream.h \
191 gunixsocketaddress.h \
196 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
197 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
203 gwin32volumemonitor.c \
204 gwin32volumemonitor.h \
211 libgio_2_0_la_SOURCES = \
217 gbufferedinputstream.c \
218 gbufferedoutputstream.c \
221 gcontenttypeprivate.h \
222 gcharsetconverter.c \
224 gconverterinputstream.c \
225 gconverteroutputstream.c \
227 gdataoutputstream.c \
237 gfileattribute-priv.h \
238 gfiledescriptorbased.h \
239 gfiledescriptorbased.c \
246 gfilenamecompleter.c \
247 gfileoutputstream.c \
249 gfilterinputstream.c \
250 gfilteroutputstream.c \
253 ginetsocketaddress.c \
264 gmemoryinputstream.c \
265 gmemoryoutputstream.c \
267 gnativevolumemonitor.c \
268 gnativevolumemonitor.h \
270 gnetworkingprivate.h \
277 gsimpleasyncresult.c \
280 gsocketaddressenumerator.c \
282 gsocketconnectable.c \
283 gsocketconnection.c \
284 gsocketcontrolmessage.c \
285 gsocketinputstream.c \
286 gsocketinputstream.h \
288 gsocketoutputstream.c \
289 gsocketoutputstream.h \
293 gthreadedsocketservice.c\
295 gthreadedresolver.c \
296 gthreadedresolver.h \
297 gunionvolumemonitor.c \
298 gunionvolumemonitor.h \
303 gzlibdecompressor.c \
312 $(settings_sources) \
317 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
319 libgio_2_0_la_LIBADD = \
320 $(top_builddir)/glib/libglib-2.0.la \
321 $(top_builddir)/gobject/libgobject-2.0.la \
322 $(top_builddir)/gmodule/libgmodule-2.0.la \
331 no_undefined = -no-undefined
334 if OS_WIN32_AND_DLL_COMPILATION
335 export_symbols = -export-symbols gio.def
338 gio_win32_res = gio-win32-res.o
339 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
342 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
345 -rm $(DESTDIR)$(libdir)/gio-2.0.def
350 export_symbols = -export-symbols-regex '^g_.*'
353 install-data-local: install-ms-lib install-def-file
354 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
356 uninstall-local: uninstall-ms-lib uninstall-def-file
358 libgio_2_0_la_LDFLAGS = \
359 $(gio_win32_res_ldflag) \
360 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
361 -export-dynamic $(no_undefined) $(export_symbols)
363 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
365 gio-win32-res.o: gio.rc
372 gbufferedinputstream.h \
373 gbufferedoutputstream.h \
376 gcharsetconverter.h \
378 gconverterinputstream.h \
379 gconverteroutputstream.h \
381 gdataoutputstream.h \
392 gfilenamecompleter.h \
393 gfileoutputstream.h \
395 gfilterinputstream.h \
396 gfilteroutputstream.h \
399 ginetsocketaddress.h \
411 gmemoryinputstream.h \
412 gmemoryoutputstream.h \
414 gnativevolumemonitor.h \
420 gsimpleasyncresult.h \
423 gsocketaddressenumerator.h \
425 gsocketconnectable.h \
426 gsocketconnection.h \
427 gsocketcontrolmessage.h \
432 gthreadedsocketservice.h\
438 gzlibdecompressor.h \
439 $(settings_headers) \
442 gioincludedir=$(includedir)/glib-2.0/gio/
443 gioinclude_HEADERS = \
447 # these sources (also mentioned above) are generated.
460 gioenumtypes.h.template \
461 gioenumtypes.c.template \
476 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
477 ( top_builddir=`cd $(top_builddir) && pwd`; \
478 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
479 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
481 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
482 ( top_builddir=`cd $(top_builddir) && pwd`; \
483 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
484 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
486 gio-2.0.lib: libgio-2.0.la gio.def
487 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
489 bin_PROGRAMS = gio-querymodules gschema-compile
490 gio_querymodules_SOURCES = gio-querymodules.c
491 gio_querymodules_LDADD = \
492 $(top_builddir)/glib/libglib-2.0.la \
493 $(top_builddir)/gobject/libgobject-2.0.la \
494 $(top_builddir)/gmodule/libgmodule-2.0.la \
498 gschema_compile_LDADD = $(top_builddir)/glib/libglib-2.0.la
499 gschema_compile_SOURCES = \
501 gvdb/gvdb-builder.h \
502 gvdb/gvdb-builder.c \
505 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
506 files='$(BUILT_EXTRA_DIST)'; \
507 for f in $$files; do \
508 if test -f $$f; then d=.; else d=$(srcdir); fi; \
509 cp $$d/$$f $(distdir) || exit 1; done
511 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
512 for F in $(libgio_2_0_la_SOURCES); do \
514 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
517 done >libgio.sourcefiles
518 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
520 if HAVE_GLIB_RUNTIME_LIBDIR
522 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
523 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
524 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
525 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
526 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so