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 \
205 gwin32inputstream.c \
206 gwin32outputstream.c \
207 gwin32outputstream.h \
210 giowin32includedir=$(includedir)/gio-win32-2.0/gio
211 giowin32include_HEADERS = \
212 gwin32inputstream.h \
213 gwin32outputstream.h \
220 libgio_2_0_la_SOURCES = \
226 gbufferedinputstream.c \
227 gbufferedoutputstream.c \
230 gcontenttypeprivate.h \
231 gcharsetconverter.c \
233 gconverterinputstream.c \
234 gconverteroutputstream.c \
236 gdataoutputstream.c \
246 gfileattribute-priv.h \
247 gfiledescriptorbased.h \
248 gfiledescriptorbased.c \
255 gfilenamecompleter.c \
256 gfileoutputstream.c \
258 gfilterinputstream.c \
259 gfilteroutputstream.c \
262 ginetsocketaddress.c \
273 gmemoryinputstream.c \
274 gmemoryoutputstream.c \
276 gnativevolumemonitor.c \
277 gnativevolumemonitor.h \
279 gnetworkingprivate.h \
286 gsimpleasyncresult.c \
289 gsocketaddressenumerator.c \
291 gsocketconnectable.c \
292 gsocketconnection.c \
293 gsocketcontrolmessage.c \
294 gsocketinputstream.c \
295 gsocketinputstream.h \
297 gsocketoutputstream.c \
298 gsocketoutputstream.h \
302 gthreadedsocketservice.c\
304 gthreadedresolver.c \
305 gthreadedresolver.h \
306 gunionvolumemonitor.c \
307 gunionvolumemonitor.h \
312 gzlibdecompressor.c \
321 $(settings_sources) \
326 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
328 libgio_2_0_la_LIBADD = \
329 $(top_builddir)/glib/libglib-2.0.la \
330 $(top_builddir)/gobject/libgobject-2.0.la \
331 $(top_builddir)/gmodule/libgmodule-2.0.la \
340 no_undefined = -no-undefined
343 if OS_WIN32_AND_DLL_COMPILATION
344 export_symbols = -export-symbols gio.def
347 gio_win32_res = gio-win32-res.o
348 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
351 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
354 -rm $(DESTDIR)$(libdir)/gio-2.0.def
359 export_symbols = -export-symbols-regex '^g_.*'
362 install-data-local: install-ms-lib install-def-file
363 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
365 uninstall-local: uninstall-ms-lib uninstall-def-file
367 libgio_2_0_la_LDFLAGS = \
368 $(gio_win32_res_ldflag) \
369 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
370 -export-dynamic $(no_undefined) $(export_symbols)
372 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
374 gio-win32-res.o: gio.rc
381 gbufferedinputstream.h \
382 gbufferedoutputstream.h \
385 gcharsetconverter.h \
387 gconverterinputstream.h \
388 gconverteroutputstream.h \
390 gdataoutputstream.h \
401 gfilenamecompleter.h \
402 gfileoutputstream.h \
404 gfilterinputstream.h \
405 gfilteroutputstream.h \
408 ginetsocketaddress.h \
420 gmemoryinputstream.h \
421 gmemoryoutputstream.h \
423 gnativevolumemonitor.h \
429 gsimpleasyncresult.h \
432 gsocketaddressenumerator.h \
434 gsocketconnectable.h \
435 gsocketconnection.h \
436 gsocketcontrolmessage.h \
441 gthreadedsocketservice.h\
447 gzlibdecompressor.h \
448 $(settings_headers) \
451 gioincludedir=$(includedir)/glib-2.0/gio/
452 gioinclude_HEADERS = \
456 # these sources (also mentioned above) are generated.
469 gioenumtypes.h.template \
470 gioenumtypes.c.template \
485 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
486 ( top_builddir=`cd $(top_builddir) && pwd`; \
487 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
488 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
490 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
491 ( top_builddir=`cd $(top_builddir) && pwd`; \
492 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
493 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
495 gio-2.0.lib: libgio-2.0.la gio.def
496 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
498 bin_PROGRAMS = gio-querymodules
501 bin_PROGRAMS += gschema-compile
504 gio_querymodules_SOURCES = gio-querymodules.c
505 gio_querymodules_LDADD = \
506 $(top_builddir)/glib/libglib-2.0.la \
507 $(top_builddir)/gobject/libgobject-2.0.la \
508 $(top_builddir)/gmodule/libgmodule-2.0.la \
512 gschema_compile_LDADD = $(top_builddir)/glib/libglib-2.0.la
513 gschema_compile_SOURCES = \
515 gvdb/gvdb-builder.h \
516 gvdb/gvdb-builder.c \
519 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
520 files='$(BUILT_EXTRA_DIST)'; \
521 for f in $$files; do \
522 if test -f $$f; then d=.; else d=$(srcdir); fi; \
523 cp $$d/$$f $(distdir) || exit 1; done
525 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
526 for F in $(libgio_2_0_la_SOURCES) $(win32_sources); do \
528 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
531 done >libgio.sourcefiles
532 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
534 if HAVE_GLIB_RUNTIME_LIBDIR
536 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
537 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
538 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
539 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
540 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so