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 && \
92 gdbusproxywatching.h \
94 gdbusintrospection.h \
95 gdbusmethodinvocation.h \
100 gdbusutils.h gdbusutils.c \
101 gdbusaddress.h gdbusaddress.c \
102 gdbusauthobserver.h gdbusauthobserver.c \
103 gdbusauth.h gdbusauth.c \
104 gdbusauthmechanism.h gdbusauthmechanism.c \
105 gdbusauthmechanismanon.h gdbusauthmechanismanon.c \
106 gdbusauthmechanismexternal.h gdbusauthmechanismexternal.c \
107 gdbusauthmechanismsha1.h gdbusauthmechanismsha1.c \
108 gdbuserror.h gdbuserror.c \
109 gdbusconnection.h gdbusconnection.c \
110 gdbusmessage.h gdbusmessage.c \
111 gdbusnameowning.h gdbusnameowning.c \
112 gdbusnamewatching.h gdbusnamewatching.c \
113 gdbusproxywatching.h gdbusproxywatching.c \
114 gdbusproxy.h gdbusproxy.c \
115 gdbusprivate.h gdbusprivate.c \
116 gdbusintrospection.h gdbusintrospection.c \
117 gdbusmethodinvocation.h gdbusmethodinvocation.c \
118 gdbusserver.h gdbusserver.c \
129 gdelayedsettingsbackend.h \
130 gdelayedsettingsbackend.c \
131 gkeyfilesettingsbackend.h \
132 gkeyfilesettingsbackend.c \
133 gmemorysettingsbackend.h \
134 gmemorysettingsbackend.c \
135 gnullsettingsbackend.h \
136 gnullsettingsbackend.c \
137 gsettingsbackendinternal.h \
141 gsettings-mapping.h \
142 gsettings-mapping.c \
146 glocaldirectorymonitor.c \
147 glocaldirectorymonitor.h \
150 glocalfileenumerator.c \
151 glocalfileenumerator.h \
154 glocalfileinputstream.c \
155 glocalfileinputstream.h \
156 glocalfilemonitor.c \
157 glocalfilemonitor.h \
158 glocalfileoutputstream.c \
159 glocalfileoutputstream.h \
160 glocalfileiostream.c \
161 glocalfileiostream.h \
172 platform_libadd += inotify/libinotify.la
173 platform_deps += inotify/libinotify.la
177 AM_CPPFLAGS += -DHAVE_FEN
179 platform_libadd += fen/libfen.la
180 platform_deps += fen/libfen.la
185 platform_libadd += win32/libgiowin32.la
186 platform_deps += win32/libgiowin32.la
197 appinfo_sources += gdesktopappinfo.c
198 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
199 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
201 gfiledescriptorbased.c \
203 gunixcredentialsmessage.c \
211 gunixsocketaddress.c \
214 gunixvolumemonitor.c \
215 gunixvolumemonitor.h \
217 gunixoutputstream.c \
221 giounixincludedir=$(includedir)/gio-unix-2.0/gio
222 giounixinclude_HEADERS = \
224 gfiledescriptorbased.h \
226 gunixcredentialsmessage.h \
231 gunixoutputstream.h \
232 gunixsocketaddress.h \
237 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
238 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
244 gwin32volumemonitor.c \
245 gwin32volumemonitor.h \
246 gwin32inputstream.c \
247 gwin32outputstream.c \
248 gwin32outputstream.h \
251 win32_more_sources_for_vcproj = \
253 win32/gwin32directorymonitor.c \
254 win32/gwinhttpfile.c \
255 win32/gwinhttpfileinputstream.c \
256 win32/gwinhttpfileoutputstream.c \
259 giowin32includedir=$(includedir)/gio-win32-2.0/gio
260 giowin32include_HEADERS = \
261 gwin32inputstream.h \
262 gwin32outputstream.h \
269 libgio_2_0_la_SOURCES = \
275 gbufferedinputstream.c \
276 gbufferedoutputstream.c \
279 gcontenttypeprivate.h \
280 gcharsetconverter.c \
282 gconverterinputstream.c \
283 gconverteroutputstream.c \
286 gdataoutputstream.c \
296 gfileattribute-priv.h \
303 gfilenamecompleter.c \
304 gfileoutputstream.c \
306 gfilterinputstream.c \
307 gfilteroutputstream.c \
310 ginetsocketaddress.c \
321 gmemoryinputstream.c \
322 gmemoryoutputstream.c \
324 gnativevolumemonitor.c \
325 gnativevolumemonitor.h \
327 gnetworkingprivate.h \
335 gsimpleasyncresult.c \
336 gsimplepermission.c \
339 gsocketaddressenumerator.c \
341 gsocketconnectable.c \
342 gsocketconnection.c \
343 gsocketcontrolmessage.c \
344 gsocketinputstream.c \
345 gsocketinputstream.h \
347 gsocketoutputstream.c \
348 gsocketoutputstream.h \
352 gthreadedsocketservice.c\
354 gthreadedresolver.c \
355 gthreadedresolver.h \
356 gunionvolumemonitor.c \
357 gunionvolumemonitor.h \
362 gzlibdecompressor.c \
371 $(settings_sources) \
377 $(libgio_2_0_la_OBJECTS): $(marshal_sources)
379 libgio_2_0_la_LIBADD = \
380 $(top_builddir)/glib/libglib-2.0.la \
381 $(top_builddir)/gobject/libgobject-2.0.la \
382 $(top_builddir)/gmodule/libgmodule-2.0.la \
391 no_undefined = -no-undefined
394 if OS_WIN32_AND_DLL_COMPILATION
395 export_symbols = -export-symbols gio.def
398 gio_win32_res = gio-win32-res.o
399 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
402 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
405 -rm $(DESTDIR)$(libdir)/gio-2.0.def
410 export_symbols = -export-symbols-regex '^g_.*'
413 install-data-local: install-ms-lib install-def-file
414 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
416 uninstall-local: uninstall-ms-lib uninstall-def-file
418 libgio_2_0_la_LDFLAGS = \
419 $(gio_win32_res_ldflag) \
420 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
421 -export-dynamic $(no_undefined) $(export_symbols)
423 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
425 gio-win32-res.o: gio.rc
432 gbufferedinputstream.h \
433 gbufferedoutputstream.h \
436 gcharsetconverter.h \
438 gconverterinputstream.h \
439 gconverteroutputstream.h \
441 gdataoutputstream.h \
452 gfilenamecompleter.h \
453 gfileoutputstream.h \
455 gfilterinputstream.h \
456 gfilteroutputstream.h \
459 ginetsocketaddress.h \
471 gmemoryinputstream.h \
472 gmemoryoutputstream.h \
474 gnativevolumemonitor.h \
481 gsimpleasyncresult.h \
482 gsimplepermission.h \
485 gsocketaddressenumerator.h \
487 gsocketconnectable.h \
488 gsocketconnection.h \
489 gsocketcontrolmessage.h \
494 gthreadedsocketservice.h\
500 gzlibdecompressor.h \
501 $(settings_headers) \
505 gioincludedir=$(includedir)/glib-2.0/gio/
506 gioinclude_HEADERS = \
510 # these sources (also mentioned above) are generated.
523 gioenumtypes.h.template \
524 gioenumtypes.c.template \
540 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
541 ( top_builddir=`cd $(top_builddir) && pwd`; \
542 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
543 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
545 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
546 ( top_builddir=`cd $(top_builddir) && pwd`; \
547 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
548 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
550 gio-2.0.lib: libgio-2.0.la gio.def
551 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
553 dist_bin_SCRIPTS = gsettings-schema-convert
554 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
556 gio_querymodules_SOURCES = gio-querymodules.c
557 gio_querymodules_LDADD = \
558 $(top_builddir)/glib/libglib-2.0.la \
559 $(top_builddir)/gobject/libgobject-2.0.la \
560 $(top_builddir)/gmodule/libgmodule-2.0.la \
564 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
565 glib_compile_schemas_SOURCES = \
567 gvdb/gvdb-builder.h \
568 gvdb/gvdb-builder.c \
572 $(top_builddir)/glib/libglib-2.0.la \
573 $(top_builddir)/gobject/libgobject-2.0.la \
575 gsettings_SOURCES = gsettings-tool.c
577 schemadir = $(datadir)/glib-2.0/schemas
578 dist_schema_DATA = gschema.dtd
580 # ------------------------------------------------------------------------
583 bin_PROGRAMS += gdbus
584 gdbus_SOURCES = gdbus-tool.c
585 gdbus_LDADD = libgio-2.0.la \
586 $(top_builddir)/glib/libglib-2.0.la \
587 $(top_builddir)/gobject/libgobject-2.0.la
589 completiondir = $(sysconfdir)/bash_completion.d
590 completion_SCRIPTS = gdbus-bash-completion.sh
591 EXTRA_DIST += $(completion_SCRIPTS)
593 # ------------------------------------------------------------------------
595 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj
596 files='$(BUILT_EXTRA_DIST)'; \
597 for f in $$files; do \
598 if test -f $$f; then d=.; else d=$(srcdir); fi; \
599 cp $$d/$$f $(distdir) || exit 1; done
601 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
602 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
604 gunix*.c|gdesktopappinfo.c) ;; \
605 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
608 done | sort -u >libgio.sourcefiles
609 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
610 rm libgio.sourcefiles
612 if HAVE_GLIB_RUNTIME_LIBDIR
614 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
615 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
616 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
617 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
618 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so