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 gnullsettingsbackend.h \
93 gnullsettingsbackend.c \
94 gsettingsbackendinternal.h \
103 glocaldirectorymonitor.c \
104 glocaldirectorymonitor.h \
107 glocalfileenumerator.c \
108 glocalfileenumerator.h \
111 glocalfileinputstream.c \
112 glocalfileinputstream.h \
113 glocalfilemonitor.c \
114 glocalfilemonitor.h \
115 glocalfileoutputstream.c \
116 glocalfileoutputstream.h \
117 glocalfileiostream.c \
118 glocalfileiostream.h \
129 platform_libadd += inotify/libinotify.la
130 platform_deps += inotify/libinotify.la
134 AM_CPPFLAGS += -DHAVE_FEN
136 platform_libadd += fen/libfen.la
137 platform_deps += fen/libfen.la
142 platform_libadd += win32/libgiowin32.la
143 platform_deps += win32/libgiowin32.la
154 appinfo_sources += gdesktopappinfo.c gdesktopappinfo.h
155 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
156 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
167 gunixsocketaddress.c \
170 gunixvolumemonitor.c \
171 gunixvolumemonitor.h \
173 gunixoutputstream.c \
177 giounixincludedir=$(includedir)/gio-unix-2.0/gio
178 giounixinclude_HEADERS = \
180 gfiledescriptorbased.h \
186 gunixoutputstream.h \
187 gunixsocketaddress.h \
192 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
193 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
199 gwin32volumemonitor.c \
200 gwin32volumemonitor.h \
207 libgio_2_0_la_SOURCES = \
213 gbufferedinputstream.c \
214 gbufferedoutputstream.c \
217 gcontenttypeprivate.h \
218 gcharsetconverter.c \
220 gconverterinputstream.c \
221 gconverteroutputstream.c \
223 gdataoutputstream.c \
233 gfileattribute-priv.h \
234 gfiledescriptorbased.h \
235 gfiledescriptorbased.c \
242 gfilenamecompleter.c \
243 gfileoutputstream.c \
245 gfilterinputstream.c \
246 gfilteroutputstream.c \
249 ginetsocketaddress.c \
260 gmemoryinputstream.c \
261 gmemoryoutputstream.c \
263 gnativevolumemonitor.c \
264 gnativevolumemonitor.h \
266 gnetworkingprivate.h \
273 gsimpleasyncresult.c \
276 gsocketaddressenumerator.c \
278 gsocketconnectable.c \
279 gsocketconnection.c \
280 gsocketcontrolmessage.c \
281 gsocketinputstream.c \
282 gsocketinputstream.h \
284 gsocketoutputstream.c \
285 gsocketoutputstream.h \
289 gthreadedsocketservice.c\
291 gthreadedresolver.c \
292 gthreadedresolver.h \
293 gunionvolumemonitor.c \
294 gunionvolumemonitor.h \
299 gzlibdecompressor.c \
308 $(settings_sources) \
313 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
315 libgio_2_0_la_LIBADD = \
316 $(top_builddir)/glib/libglib-2.0.la \
317 $(top_builddir)/gobject/libgobject-2.0.la \
318 $(top_builddir)/gmodule/libgmodule-2.0.la \
327 no_undefined = -no-undefined
330 if OS_WIN32_AND_DLL_COMPILATION
331 export_symbols = -export-symbols gio.def
334 gio_win32_res = gio-win32-res.o
335 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
338 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
341 -rm $(DESTDIR)$(libdir)/gio-2.0.def
346 export_symbols = -export-symbols-regex '^g_.*'
349 install-data-local: install-ms-lib install-def-file
350 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
352 uninstall-local: uninstall-ms-lib uninstall-def-file
354 libgio_2_0_la_LDFLAGS = \
355 $(gio_win32_res_ldflag) \
356 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
357 -export-dynamic $(no_undefined) $(export_symbols)
359 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
361 gio-win32-res.o: gio.rc
368 gbufferedinputstream.h \
369 gbufferedoutputstream.h \
372 gcharsetconverter.h \
374 gconverterinputstream.h \
375 gconverteroutputstream.h \
377 gdataoutputstream.h \
388 gfilenamecompleter.h \
389 gfileoutputstream.h \
391 gfilterinputstream.h \
392 gfilteroutputstream.h \
395 ginetsocketaddress.h \
407 gmemoryinputstream.h \
408 gmemoryoutputstream.h \
410 gnativevolumemonitor.h \
416 gsimpleasyncresult.h \
419 gsocketaddressenumerator.h \
421 gsocketconnectable.h \
422 gsocketconnection.h \
423 gsocketcontrolmessage.h \
428 gthreadedsocketservice.h\
434 gzlibdecompressor.h \
435 $(settings_headers) \
438 gioincludedir=$(includedir)/glib-2.0/gio/
439 gioinclude_HEADERS = \
443 # these sources (also mentioned above) are generated.
456 gioenumtypes.h.template \
457 gioenumtypes.c.template \
472 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
473 ( top_builddir=`cd $(top_builddir) && pwd`; \
474 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
475 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
477 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
478 ( top_builddir=`cd $(top_builddir) && pwd`; \
479 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
480 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
482 gio-2.0.lib: libgio-2.0.la gio.def
483 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
485 bin_PROGRAMS = gio-querymodules gschema-compile
486 gio_querymodules_SOURCES = gio-querymodules.c
487 gio_querymodules_LDADD = \
488 $(top_builddir)/glib/libglib-2.0.la \
489 $(top_builddir)/gobject/libgobject-2.0.la \
490 $(top_builddir)/gmodule/libgmodule-2.0.la \
494 gschema_compile_LDADD = $(top_builddir)/glib/libglib-2.0.la
495 gschema_compile_SOURCES = \
497 gvdb/gvdb-builder.h \
498 gvdb/gvdb-builder.c \
501 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
502 files='$(BUILT_EXTRA_DIST)'; \
503 for f in $$files; do \
504 if test -f $$f; then d=.; else d=$(srcdir); fi; \
505 cp $$d/$$f $(distdir) || exit 1; done
507 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
508 for F in $(libgio_2_0_la_SOURCES); do \
510 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
513 done >libgio.sourcefiles
514 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
516 if HAVE_GLIB_RUNTIME_LIBDIR
518 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
519 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
520 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
521 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
522 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so