1 include $(top_srcdir)/Makefile.decl
5 SUBDIRS = gdbus-2.0/codegen
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 $(AM_V_GEN) (echo 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
31 if HAVE_GNUC_VISIBILITY
37 -DG_LOG_DOMAIN=\"GLib-GIO\" \
40 -DG_THREADS_MANDATORY \
41 -DG_DISABLE_DEPRECATED \
43 -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
45 lib_LTLIBRARIES = libgio-2.0.la
58 gdbusintrospection.h \
59 gdbusmethodinvocation.h \
62 gdbusinterfaceskeleton.h \
64 gdbusobjectskeleton.h \
66 gdbusobjectmanager.h \
67 gdbusobjectmanagerclient.h \
68 gdbusobjectmanagerserver.h \
72 gdbusutils.h gdbusutils.c \
73 gdbusaddress.h gdbusaddress.c \
74 gdbusauthobserver.h gdbusauthobserver.c \
75 gdbusauth.h gdbusauth.c \
76 gdbusauthmechanism.h gdbusauthmechanism.c \
77 gdbusauthmechanismanon.h gdbusauthmechanismanon.c \
78 gdbusauthmechanismexternal.h gdbusauthmechanismexternal.c \
79 gdbusauthmechanismsha1.h gdbusauthmechanismsha1.c \
80 gdbuserror.h gdbuserror.c \
81 gdbusconnection.h gdbusconnection.c \
82 gdbusmessage.h gdbusmessage.c \
83 gdbusnameowning.h gdbusnameowning.c \
84 gdbusnamewatching.h gdbusnamewatching.c \
85 gdbusproxy.h gdbusproxy.c \
86 gdbusprivate.h gdbusprivate.c \
87 gdbusintrospection.h gdbusintrospection.c \
88 gdbusmethodinvocation.h gdbusmethodinvocation.c \
89 gdbusserver.h gdbusserver.c \
90 gdbusinterface.h gdbusinterface.c \
91 gdbusinterfaceskeleton.h gdbusinterfaceskeleton.c \
92 gdbusobject.h gdbusobject.c \
93 gdbusobjectskeleton.h gdbusobjectskeleton.c \
94 gdbusobjectproxy.h gdbusobjectproxy.c \
95 gdbusobjectmanager.h gdbusobjectmanager.c \
96 gdbusobjectmanagerclient.h gdbusobjectmanagerclient.c \
97 gdbusobjectmanagerserver.h gdbusobjectmanagerserver.c \
108 gdelayedsettingsbackend.h \
109 gdelayedsettingsbackend.c \
110 gkeyfilesettingsbackend.c \
111 gmemorysettingsbackend.c \
112 gnullsettingsbackend.c \
113 gsettingsbackendinternal.h \
117 gsettings-mapping.h \
118 gsettings-mapping.c \
122 settings_sources += \
123 gregistrysettingsbackend.h \
124 gregistrysettingsbackend.c
127 application_headers = \
129 gsimpleactiongroup.h \
132 gapplicationcommandline.h \
135 application_sources = \
137 gsimpleactiongroup.c \
140 gapplicationcommandline.c \
142 gapplicationimpl-dbus.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 \
178 platform_libadd += inotify/libinotify.la
179 platform_deps += inotify/libinotify.la
183 AM_CPPFLAGS += -DHAVE_FEN
185 platform_libadd += fen/libfen.la
186 platform_deps += fen/libfen.la
191 platform_libadd += win32/libgiowin32.la
192 platform_deps += win32/libgiowin32.la
202 appinfo_sources += gdesktopappinfo.c
203 platform_libadd += libasyncns/libasyncns.la xdgmime/libxdgmime.la
204 platform_deps += libasyncns/libasyncns.la xdgmime/libxdgmime.la
206 gfiledescriptorbased.c \
208 gunixcredentialsmessage.c \
216 gunixsocketaddress.c \
219 gunixvolumemonitor.c \
220 gunixvolumemonitor.h \
222 gunixoutputstream.c \
226 giounixincludedir=$(includedir)/gio-unix-2.0/gio
227 giounixinclude_HEADERS = \
229 gfiledescriptorbased.h \
231 gunixcredentialsmessage.h \
236 gunixoutputstream.h \
237 gunixsocketaddress.h \
241 win32_actual_sources = \
246 gwin32volumemonitor.c \
247 gwin32volumemonitor.h \
248 gwin32inputstream.c \
249 gwin32outputstream.c \
250 gwin32outputstream.h \
253 win32_more_sources_for_vcproj = \
255 gregistrysettingsbackend.c \
256 win32/gwin32directorymonitor.c \
257 win32/gwinhttpfile.c \
258 win32/gwinhttpfileinputstream.c \
259 win32/gwinhttpfileoutputstream.c \
263 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
264 platform_libadd += -lshlwapi -lws2_32 -ldnsapi
265 win32_sources = $(win32_actual_sources)
267 giowin32includedir=$(includedir)/gio-win32-2.0/gio
268 giowin32include_HEADERS = \
269 gwin32inputstream.h \
270 gwin32outputstream.h \
277 libgio_2_0_la_SOURCES = \
283 gbufferedinputstream.c \
284 gbufferedoutputstream.c \
288 gcontenttypeprivate.h \
289 gcharsetconverter.c \
291 gconverterinputstream.c \
292 gconverteroutputstream.c \
295 gdataoutputstream.c \
299 gdummyproxyresolver.c \
300 gdummyproxyresolver.h \
309 gfileattribute-priv.h \
316 gfilenamecompleter.c \
317 gfileoutputstream.c \
319 gfilterinputstream.c \
320 gfilteroutputstream.c \
323 ginetsocketaddress.c \
334 gmemoryinputstream.c \
335 gmemoryoutputstream.c \
337 gnativevolumemonitor.c \
338 gnativevolumemonitor.h \
340 gnetworkingprivate.h \
344 gpollableinputstream.c \
345 gpollableoutputstream.c \
351 gsimpleasyncresult.c \
352 gsimplepermission.c \
355 gsocketaddressenumerator.c \
357 gsocketconnectable.c \
358 gsocketconnection.c \
359 gsocketcontrolmessage.c \
360 gsocketinputstream.c \
361 gsocketinputstream.h \
363 gsocketoutputstream.c \
364 gsocketoutputstream.h \
367 gproxyaddressenumerator.c \
371 gtcpwrapperconnection.c \
372 gthreadedsocketservice.c\
374 gthreadedresolver.c \
375 gthreadedresolver.h \
378 gtlsclientconnection.c \
384 gtlsserverconnection.c \
385 gunionvolumemonitor.c \
386 gunionvolumemonitor.h \
391 gzlibdecompressor.c \
398 $(application_sources) \
399 $(settings_sources) \
404 EXTRA_DIST += strinfo.c
406 libgio_2_0_la_LIBADD = \
407 $(top_builddir)/glib/libglib-2.0.la \
408 $(top_builddir)/gobject/libgobject-2.0.la \
409 $(top_builddir)/gmodule/libgmodule-2.0.la \
418 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
421 no_undefined = -no-undefined
424 if OS_WIN32_AND_DLL_COMPILATION
425 export_symbols = -export-symbols gio.def
428 gio_win32_res = gio-win32-res.o
429 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
432 $(INSTALL) gio.def $(DESTDIR)$(libdir)/gio-2.0.def
435 -rm $(DESTDIR)$(libdir)/gio-2.0.def
440 export_symbols = $(LIBTOOL_EXPORT_OPTIONS)
443 install-data-local: install-ms-lib install-def-file
444 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
446 uninstall-local: uninstall-ms-lib uninstall-def-file
448 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
449 $(gio_win32_res_ldflag) \
450 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
451 -export-dynamic $(no_undefined) $(export_symbols)
453 libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
455 gio-win32-res.o: gio.rc
462 gbufferedinputstream.h \
463 gbufferedoutputstream.h \
466 gcharsetconverter.h \
468 gconverterinputstream.h \
469 gconverteroutputstream.h \
471 gdataoutputstream.h \
482 gfilenamecompleter.h \
483 gfileoutputstream.h \
485 gfilterinputstream.h \
486 gfilteroutputstream.h \
489 ginetsocketaddress.h \
501 gmemoryinputstream.h \
502 gmemoryoutputstream.h \
504 gnativevolumemonitor.h \
509 gpollableinputstream.h \
510 gpollableoutputstream.h \
513 gproxyaddressenumerator.h \
517 gsimpleasyncresult.h \
518 gsimplepermission.h \
521 gsocketaddressenumerator.h \
523 gsocketconnectable.h \
524 gsocketconnection.h \
525 gsocketcontrolmessage.h \
530 gtcpwrapperconnection.h \
531 gthreadedsocketservice.h\
535 gtlsclientconnection.h \
541 gtlsserverconnection.h \
546 gzlibdecompressor.h \
547 $(application_headers) \
548 $(settings_headers) \
552 gioincludedir=$(includedir)/glib-2.0/gio/
553 gioinclude_HEADERS = \
557 # these sources (also mentioned above) are generated.
565 gioenumtypes.h.template \
566 gioenumtypes.c.template \
576 # This is read by gobject-introspection/misc/ and gtk-doc
577 gio-public-headers.txt: Makefile
578 echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
580 CLEANFILES = gio-public-headers.txt
582 all-local: gio-public-headers.txt
584 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
585 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
586 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
587 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
589 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
590 $(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
591 cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
592 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
594 gio-2.0.lib: libgio-2.0.la gio.def
595 lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:gio.def -out:$@
597 bin_PROGRAMS = gio-querymodules glib-compile-schemas gsettings
599 gio_querymodules_SOURCES = gio-querymodules.c
600 gio_querymodules_LDADD = \
601 $(top_builddir)/glib/libglib-2.0.la \
602 $(top_builddir)/gobject/libgobject-2.0.la \
603 $(top_builddir)/gmodule/libgmodule-2.0.la \
607 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
608 glib_compile_schemas_SOURCES = \
610 gvdb/gvdb-builder.h \
611 gvdb/gvdb-builder.c \
612 glib-compile-schemas.c
615 $(top_builddir)/glib/libglib-2.0.la \
616 $(top_builddir)/gobject/libgobject-2.0.la \
618 gsettings_SOURCES = gsettings-tool.c
620 schemadir = $(datadir)/glib-2.0/schemas
621 dist_schema_DATA = gschema.dtd
623 # ------------------------------------------------------------------------
626 bin_PROGRAMS += gdbus
627 gdbus_SOURCES = gdbus-tool.c
628 gdbus_LDADD = libgio-2.0.la \
629 $(top_builddir)/glib/libglib-2.0.la \
630 $(top_builddir)/gobject/libgobject-2.0.la
632 completiondir = $(sysconfdir)/bash_completion.d
634 gdbus-bash-completion.sh \
635 gsettings-bash-completion.sh
636 EXTRA_DIST += $(completion_DATA)
638 # ------------------------------------------------------------------------
640 dist-hook: $(BUILT_EXTRA_DIST) ../build/win32/vs9/gio.vcproj ../build/win32/vs10/gio.vcxproj ../build/win32/vs10/gio.vcxproj.filters
641 files='$(BUILT_EXTRA_DIST)'; \
642 for f in $$files; do \
643 if test -f $$f; then d=.; else d=$(srcdir); fi; \
644 cp $$d/$$f $(distdir) || exit 1; done
646 ../build/win32/vs9/gio.vcproj: $(top_srcdir)/build/win32/vs9/gio.vcprojin
647 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
649 gunix*.c|gdesktopappinfo.c) ;; \
650 *.c) echo ' <File RelativePath="..\..\..\gio\'$$F'" />' \
653 done | sort -u >libgio.sourcefiles
654 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gio.vcprojin >$@
655 rm libgio.sourcefiles
657 ../build/win32/vs10/gio.vcxproj: $(top_srcdir)/build/win32/vs10/gio.vcxprojin
658 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
660 gunix*.c|gdesktopappinfo.c) ;; \
661 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'" />' \
664 done | sort -u >libgio.vs10.sourcefiles
665 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxprojin >$@
666 rm libgio.vs10.sourcefiles
668 ../build/win32/vs10/gio.vcxproj.filters: $(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin
669 for F in `echo $(libgio_2_0_la_SOURCES) $(win32_actual_sources) $(win32_more_sources_for_vcproj) | tr '/' '\\'`; do \
671 gunix*.c|gdesktopappinfo.c) ;; \
672 *.c) echo ' <ClCompile Include="..\..\..\gio\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
675 done | sort -u >libgio.vs10.sourcefiles.filters
676 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gio.vcxproj.filtersin >$@
677 rm libgio.vs10.sourcefiles.filters
679 if HAVE_GLIB_RUNTIME_LIBDIR
681 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
682 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
683 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
684 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
685 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so