1 include $(top_srcdir)/glib.mk
3 SUBDIRS = gdbus-2.0/codegen
9 if OS_WIN32_AND_DLL_COMPILATION
11 noinst_DATA += gio-2.0.lib
13 install_ms_lib_cmd = $(INSTALL) gio-2.0.lib $(DESTDIR)$(libdir)
14 uninstall_ms_lib_cmd = -rm $(DESTDIR)$(libdir)/gio-2.0.lib
22 $(uninstall_ms_lib_cmd)
25 -DG_LOG_DOMAIN=\"GLib-GIO\" \
29 -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
31 AM_CFLAGS = $(GLIB_WARN_CFLAGS)
33 lib_LTLIBRARIES = libgio-2.0.la
46 gdbusintrospection.h \
47 gdbusmethodinvocation.h \
50 gdbusinterfaceskeleton.h \
52 gdbusobjectskeleton.h \
54 gdbusobjectmanager.h \
55 gdbusobjectmanagerclient.h \
56 gdbusobjectmanagerserver.h \
61 gdbusutils.h gdbusutils.c \
62 gdbusaddress.h gdbusaddress.c \
63 gdbusauthobserver.h gdbusauthobserver.c \
64 gdbusauth.h gdbusauth.c \
65 gdbusauthmechanism.h gdbusauthmechanism.c \
66 gdbusauthmechanismanon.h gdbusauthmechanismanon.c \
67 gdbusauthmechanismexternal.h gdbusauthmechanismexternal.c \
68 gdbusauthmechanismsha1.h gdbusauthmechanismsha1.c \
69 gdbuserror.h gdbuserror.c \
70 gdbusconnection.h gdbusconnection.c \
71 gdbusmessage.h gdbusmessage.c \
72 gdbusnameowning.h gdbusnameowning.c \
73 gdbusnamewatching.h gdbusnamewatching.c \
74 gdbusproxy.h gdbusproxy.c \
75 gdbusprivate.h gdbusprivate.c \
76 gdbusintrospection.h gdbusintrospection.c \
77 gdbusmethodinvocation.h gdbusmethodinvocation.c \
78 gdbusserver.h gdbusserver.c \
79 gdbusinterface.h gdbusinterface.c \
80 gdbusinterfaceskeleton.h gdbusinterfaceskeleton.c \
81 gdbusobject.h gdbusobject.c \
82 gdbusobjectskeleton.h gdbusobjectskeleton.c \
83 gdbusobjectproxy.h gdbusobjectproxy.c \
84 gdbusobjectmanager.h gdbusobjectmanager.c \
85 gdbusobjectmanagerclient.h gdbusobjectmanagerclient.c \
86 gdbusobjectmanagerserver.h gdbusobjectmanagerserver.c \
87 gtestdbus.h gtestdbus.c \
90 # These are not built into the library yet
91 EXTRA_DIST += gdbusdaemon.c gdbusdaemon.h dbus-daemon.xml
94 $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in \
95 $(srcdir)/gdbus-2.0/codegen/codegen_main.py \
96 $(srcdir)/gdbus-2.0/codegen/parser.py \
97 $(srcdir)/gdbus-2.0/codegen/codegen_docbook.py \
98 $(srcdir)/gdbus-2.0/codegen/codegen.py \
99 $(srcdir)/gdbus-2.0/codegen/__init__.py \
100 $(srcdir)/gdbus-2.0/codegen/dbustypes.py \
101 $(builddir)/gdbus-2.0/codegen/config.py \
102 $(srcdir)/gdbus-2.0/codegen/utils.py
104 gdbus-daemon-generated.h gdbus-daemon-generated.c: $(srcdir)/dbus-daemon.xml $(GDBUS_PYTHON_DEPS)
105 $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
106 UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
107 $(PYTHON) $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in \
108 --interface-prefix org. \
109 --generate-c-code gdbus-daemon-generated \
111 $(srcdir)/dbus-daemon.xml \
119 settings_base_sources = \
123 gdelayedsettingsbackend.h \
124 gdelayedsettingsbackend.c \
125 gkeyfilesettingsbackend.c \
126 gmemorysettingsbackend.c \
127 gnullsettingsbackend.c \
128 gsettingsbackendinternal.h \
131 gsettingsschema-internal.h \
133 gsettings-mapping.h \
134 gsettings-mapping.c \
137 settings_sources = $(settings_base_sources)
140 win32_settings_sources = \
141 gregistrysettingsbackend.h \
142 gregistrysettingsbackend.c
144 settings_sources += $(win32_settings_sources)
147 application_headers = \
149 gapplicationcommandline.h \
153 gsimpleactiongroup.h \
154 gremoteactiongroup.h \
155 gactiongroupexporter.h \
168 application_sources = \
170 gapplicationcommandline.c \
171 gapplicationimpl-dbus.c \
176 gsimpleactiongroup.c \
177 gremoteactiongroup.c \
178 gactiongroupexporter.c \
179 gdbusactiongroup-private.h \
189 gnotification-private.h \
190 gnotificationbackend.h \
192 gnotificationbackend.c \
200 glocalfileprivate.h \
201 glocalfileenumerator.c \
202 glocalfileenumerator.h \
205 glocalfileinputstream.c \
206 glocalfileinputstream.h \
207 glocalfilemonitor.c \
208 glocalfilemonitor.h \
209 glocalfileoutputstream.c \
210 glocalfileoutputstream.h \
211 glocalfileiostream.c \
212 glocalfileiostream.h \
229 contenttype_sources =
233 platform_libadd += inotify/libinotify.la
234 platform_deps += inotify/libinotify.la
239 platform_libadd += kqueue/libkqueue.la
240 platform_deps += kqueue/libkqueue.la
245 platform_libadd += win32/libgiowin32.la
246 platform_deps += win32/libgiowin32.la
256 platform_libadd += xdgmime/libxdgmime.la
257 platform_deps += xdgmime/libxdgmime.la
259 appinfo_headers += gdesktopappinfo.h
264 gfiledescriptorbased.c \
266 gunixcredentialsmessage.c \
272 gunixsocketaddress.c \
275 gunixvolumemonitor.c \
276 gunixvolumemonitor.h \
278 gunixoutputstream.c \
279 gcontenttypeprivate.h \
280 gfdonotificationbackend.c \
281 ggtknotificationbackend.c \
282 gportalnotificationbackend.c \
291 nodist_unix_sources = \
292 $(nodist_portal_sources) \
295 giounixincludedir=$(includedir)/gio-unix-2.0/gio
296 giounixinclude_HEADERS = \
297 gfiledescriptorbased.h \
299 gunixcredentialsmessage.h \
304 gunixoutputstream.h \
305 gunixsocketaddress.h \
311 gnetworkmonitornetlink.c \
312 gnetworkmonitornetlink.h \
313 gnetworkmonitornm.c \
314 gnetworkmonitornm.h \
319 gdbus_daemon_sources = \
323 nodist_gdbus_daemon_sources = \
324 gdbus-daemon-generated.c \
325 gdbus-daemon-generated.h \
328 win32_actual_sources = \
329 $(gdbus_daemon_sources) \
330 gwin32registrykey.c \
331 gwin32registrykey.h \
334 gwin32volumemonitor.c \
335 gwin32volumemonitor.h \
336 gwin32inputstream.c \
337 gwin32outputstream.c \
338 gwin32outputstream.h \
340 gwin32networkmonitor.c \
341 gwin32networkmonitor.h \
342 gwin32notificationbackend.c \
344 nodist_win32_actual_sources = \
345 $(nodist_gdbus_daemon_sources) \
348 win32_more_sources_for_vcproj = \
350 gcontenttype-win32.c \
351 gregistrysettingsbackend.c \
352 win32/gwinhttpfile.c \
353 win32/gwinhttpfileinputstream.c \
354 win32/gwinhttpfileoutputstream.c \
355 win32/gwinhttpvfs.c \
356 win32/gwin32fsmonitorutils.c \
357 win32/gwin32filemonitor.c
360 appinfo_sources += gwin32appinfo.c gwin32appinfo.h
361 contenttype_sources += gcontenttype-win32.c
362 platform_libadd += -lshlwapi -lws2_32 -ldnsapi -liphlpapi
363 win32_sources = $(win32_actual_sources)
364 nodist_win32_sources = $(nodist_win32_actual_sources)
366 giowin32includedir=$(includedir)/gio-win32-2.0/gio
367 giowin32include_HEADERS = \
368 gwin32inputstream.h \
369 gwin32outputstream.h \
374 xdp_dbus_built_sources = xdp-dbus.c xdp-dbus.h
375 BUILT_SOURCES += $(xdp_dbus_built_sources)
376 CLEANFILES += $(xdp_dbus_built_sources)
378 portal_interfaces = \
379 org.freedesktop.portal.Documents.xml \
380 org.freedesktop.portal.OpenURI.xml \
381 org.freedesktop.portal.ProxyResolver.xml \
384 EXTRA_DIST += $(portal_interfaces)
386 $(xdp_dbus_built_sources) : $(portal_interfaces)
387 $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \
388 UNINSTALLED_GLIB_BUILDDIR=$(top_builddir) \
389 $(PYTHON) $(srcdir)/gdbus-2.0/codegen/gdbus-codegen.in \
390 --interface-prefix org.freedesktop.portal. \
392 --generate-c-code $(builddir)/xdp-dbus \
393 --annotate "org.freedesktop.portal.Documents.Add()" "org.gtk.GDBus.C.UnixFD" "true" \
394 --annotate "org.freedesktop.portal.Documents.AddNamed()" "org.gtk.GDBus.C.UnixFD" "true" \
395 --annotate "org.freedesktop.portal.Documents.AddFull()" "org.gtk.GDBus.C.UnixFD" "true" \
396 --annotate "org.freedesktop.portal.OpenURI.OpenFile()" "org.gtk.GDBus.C.UnixFD" "true" \
400 gnetworkmonitorportal.c \
401 gnetworkmonitorportal.h \
402 gproxyresolverportal.c \
403 gproxyresolverportal.h \
405 nodist_portal_sources = \
406 $(xdp_dbus_built_sources) \
411 contenttype_sources += gcontenttype.c
412 appinfo_sources += gdesktopappinfo.c
423 gbufferedinputstream.c \
424 gbufferedoutputstream.c \
427 gcharsetconverter.c \
428 gcontextspecificgroup.c \
429 gcontextspecificgroup.h \
431 gconverterinputstream.c \
432 gconverteroutputstream.c \
434 gcredentialsprivate.h \
437 gdataoutputstream.c \
441 gdummyproxyresolver.c \
442 gdummyproxyresolver.h \
451 gfileattribute-priv.h \
458 gfilenamecompleter.c \
459 gfileoutputstream.c \
461 gfilterinputstream.c \
462 gfilteroutputstream.c \
466 ginetsocketaddress.c \
482 gmemoryinputstream.c \
483 gmemoryoutputstream.c \
485 gnativevolumemonitor.c \
486 gnativevolumemonitor.h \
487 gnativesocketaddress.c \
488 gnativesocketaddress.h \
491 gnetworkingprivate.h \
493 gnetworkmonitorbase.c \
494 gnetworkmonitorbase.h \
498 gpollableinputstream.c \
499 gpollableoutputstream.c \
505 gproxyaddressenumerator.c \
512 gsimpleasyncresult.c \
514 gsimplepermission.c \
517 gsocketaddressenumerator.c \
519 gsocketconnectable.c \
520 gsocketconnection.c \
521 gsocketcontrolmessage.c \
522 gsocketinputstream.c \
523 gsocketinputstream.h \
525 gsocketoutputstream.c \
526 gsocketoutputstream.h \
527 gsubprocesslauncher.c \
529 gsubprocesslauncher-private.h \
532 gsimpleproxyresolver.c \
535 gtcpwrapperconnection.c \
536 gthreadedsocketservice.c\
538 gthreadedresolver.c \
539 gthreadedresolver.h \
542 gtlsclientconnection.c \
548 gtlsserverconnection.c \
550 gdtlsclientconnection.c \
551 gdtlsserverconnection.c \
552 gunionvolumemonitor.c \
553 gunionvolumemonitor.h \
558 gzlibdecompressor.c \
562 $(application_sources) \
566 nodist_gio_base_sources = \
571 libgio_2_0_la_SOURCES = \
572 $(gio_base_sources) \
574 $(contenttype_sources) \
577 $(settings_sources) \
579 nodist_libgio_2_0_la_SOURCES = \
580 $(nodist_gio_base_sources) \
581 $(nodist_unix_sources) \
582 $(nodist_win32_sources) \
585 EXTRA_DIST += strinfo.c
587 libgio_2_0_la_LIBADD = \
588 $(top_builddir)/gobject/libgobject-2.0.la \
589 $(top_builddir)/gmodule/libgmodule-2.0.la \
590 $(top_builddir)/glib/libglib-2.0.la \
599 libgio_2_0_la_CPPFLAGS = $(ZLIB_CFLAGS) $(AM_CPPFLAGS)
602 no_undefined = -no-undefined
605 if OS_WIN32_AND_DLL_COMPILATION
606 gio_win32_res = gio-win32-res.o
607 gio_win32_res_ldflag = -Wl,$(gio_win32_res)
610 install-data-local: install-ms-lib
611 $(mkinstalldirs) $(DESTDIR)$(GIO_MODULE_DIR)
613 uninstall-local: uninstall-ms-lib
615 libgio_2_0_la_CFLAGS = $(AM_CFLAGS) $(GLIB_HIDDEN_VISIBILITY_CFLAGS)
616 libgio_2_0_la_LDFLAGS = $(GLIB_LINK_FLAGS) \
617 $(gio_win32_res_ldflag) \
618 -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
619 -export-dynamic $(no_undefined)
621 # We cannot build .m files because it would require adding AC_PROG_OBJC in
622 # configure.ac, and it cannot be added conditionally. That means we would always
623 # depend on an objective-c compiler even when not needed. To work around that
624 # limitation we rename .m files to .c and compile them separately with
625 # -xobjective-c into an intermediary library. Note that we cannot rename those
626 # files to .c directly in the source tree because Meson needs the .m extension.
627 # This must be done outside of "if OS_COCOA" block otherwise distcheck fails.
628 # See https://bugzilla.gnome.org/show_bug.cgi?id=672777.
630 gnextstepsettingsbackend.m \
633 gcocoanotificationbackend.m \
635 OBJC_C_FILES = $(OBJC_FILES:.m=.c)
636 BUILT_SOURCES += $(OBJC_C_FILES)
637 CLEANFILES += $(OBJC_C_FILES)
638 EXTRA_DIST += $(OBJC_FILES)
639 $(OBJC_C_FILES): %.c: %.m Makefile
643 libgio_objc_2_0_la_CFLAGS = $(libgio_2_0_la_CFLAGS) -xobjective-c
644 libgio_objc_2_0_la_CPPFLAGS = $(libgio_2_0_la_CPPFLAGS)
645 libgio_objc_2_0_la_LDFLAGS = $(libgio_2_0_la_LDFLAGS) -Wl,-framework,Foundation -Wl,-framework,AppKit
646 libgio_objc_2_0_la_SOURCES = \
647 gnextstepsettingsbackend.c \
652 libgio_objc_2_0_la_SOURCES += \
653 gcocoanotificationbackend.c
656 noinst_LTLIBRARIES += libgio-objc-2.0.la
657 libgio_2_0_la_LIBADD += libgio-objc-2.0.la
661 libgio_2_0_la_CFLAGS += $(LIBMOUNT_CFLAGS)
662 libgio_2_0_la_LIBADD += $(LIBMOUNT_LIBS)
665 EXTRA_libgio_2_0_la_DEPENDENCIES = $(gio_win32_res) $(gio_def) $(platform_deps)
667 gio-win32-res.o: gio.rc
674 gbufferedinputstream.h \
675 gbufferedoutputstream.h \
679 gcharsetconverter.h \
681 gconverterinputstream.h \
682 gconverteroutputstream.h \
685 gdataoutputstream.h \
696 gfilenamecompleter.h \
697 gfileoutputstream.h \
699 gfilterinputstream.h \
700 gfilteroutputstream.h \
704 ginetsocketaddress.h \
717 gmemoryinputstream.h \
718 gmemoryoutputstream.h \
720 gnativevolumemonitor.h \
726 gpollableinputstream.h \
727 gpollableoutputstream.h \
731 gproxyaddressenumerator.h \
736 gsimpleasyncresult.h \
738 gsimplepermission.h \
741 gsocketaddressenumerator.h \
743 gsocketconnectable.h \
744 gsocketconnection.h \
745 gsocketcontrolmessage.h \
749 gsimpleproxyresolver.h \
752 gsubprocesslauncher.h \
754 gtcpwrapperconnection.h \
755 gthreadedsocketservice.h\
759 gtlsclientconnection.h \
765 gtlsserverconnection.h \
767 gdtlsclientconnection.h \
768 gdtlsserverconnection.h \
773 gzlibdecompressor.h \
776 $(application_headers) \
777 $(settings_headers) \
781 gioincludedir=$(includedir)/glib-2.0/gio/
782 gioinclude_HEADERS = \
785 nodist_gioinclude_HEADERS = \
790 # these sources (also mentioned above) are generated.
792 gconstructor_as_data.h \
795 gdbus-daemon-generated.c \
796 gdbus-daemon-generated.h \
802 gioenumtypes.h.template \
803 gioenumtypes.c.template \
808 BUILT_EXTRA_DIST += \
811 # This is read by gobject-introspection/misc/ and gtk-doc
812 gio-public-headers.txt: Makefile
813 $(AM_V_GEN) echo $(gioinclude_HEADERS) $(giowin32include_HEADERS) $(giounixinclude_HEADERS) > $@.tmp && mv $@.tmp $@
815 CLEANFILES += gdbus-daemon-generated.c gdbus-daemon-generated.h gio-public-headers.txt gconstructor_as_data.h
822 all-local: gio-public-headers.txt
824 gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
825 $(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
826 gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
828 gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
829 $(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
830 gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
832 gio.def: libgio-2.0.la
833 $(AM_V_GEN) dumpbin.exe -exports .libs/libgio-2.0-0.dll | awk 'BEGIN { print "EXPORTS" } / +[[:digit:]]+ +[[:xdigit:]]+ +[[:xdigit:]]+/{ print $$4 }' > gio.def.tmp && mv gio.def.tmp gio.def
835 gio-2.0.lib: libgio-2.0.la gio.def
836 $(AM_V_GEN) lib.exe -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgio-2.0-$(LT_CURRENT_MINUS_AGE).dll -def:$(builddir)/gio.def -out:$@
838 bin_PROGRAMS = gio-querymodules glib-compile-schemas glib-compile-resources gsettings gio-launch-desktop
840 glib_compile_resources_LDADD = libgio-2.0.la \
841 $(top_builddir)/gobject/libgobject-2.0.la \
842 $(top_builddir)/gmodule/libgmodule-2.0.la \
843 $(top_builddir)/glib/libglib-2.0.la \
846 glib_compile_resources_SOURCES = \
848 gvdb/gvdb-builder.h \
849 gvdb/gvdb-builder.c \
850 glib-compile-resources.c
852 gio_querymodules_SOURCES = gio-querymodules.c giomodule-priv.c
853 gio_querymodules_LDADD = libgio-2.0.la \
854 $(top_builddir)/gobject/libgobject-2.0.la \
855 $(top_builddir)/gmodule/libgmodule-2.0.la \
856 $(top_builddir)/glib/libglib-2.0.la \
859 gio_launch_desktop_SOURCES = gio-launch-desktop.c
861 gconstructor_as_data.h: $(top_srcdir)/glib/gconstructor.h data-to-c.py
862 $(AM_V_GEN) $(PYTHON) $(srcdir)/data-to-c.py $(top_srcdir)/glib/gconstructor.h gconstructor_code $@
864 glib_compile_schemas_LDADD = $(top_builddir)/glib/libglib-2.0.la
865 glib_compile_schemas_SOURCES = \
867 gvdb/gvdb-builder.h \
868 gvdb/gvdb-builder.c \
869 glib-compile-schemas.c
870 nodist_glib_compile_schemas_SOURCES = \
871 gconstructor_as_data.h \
874 gsettings_LDADD = libgio-2.0.la \
875 $(top_builddir)/gobject/libgobject-2.0.la \
876 $(top_builddir)/gmodule/libgmodule-2.0.la \
877 $(top_builddir)/glib/libglib-2.0.la \
879 gsettings_SOURCES = gsettings-tool.c
881 schemadir = $(datadir)/glib-2.0/schemas
882 dist_schema_DATA = gschema.dtd
884 itsdir = $(datadir)/gettext/its
885 dist_its_DATA = gschema.loc gschema.its
887 # ------------------------------------------------------------------------
888 # SystemTap and dtrace
891 gio_probes.h: gio_probes.d
892 $(AM_V_GEN) $(DTRACE) -C -h -s $< -o $@.tmp
894 -e "s,define STAP_HAS_SEMAPHORES 1,undef STAP_HAS_SEMAPHORES," \
895 -e "s,define _SDT_HAS_SEMAPHORES 1,undef _SDT_HAS_SEMAPHORES," \
896 < $@.tmp > $@ && rm -f $@.tmp
898 gio_probes.lo: gio_probes.d
899 $(AM_V_GEN) $(LIBTOOL) --mode=compile $(AM_V_lt) --tag=CC $(DTRACE) -G -s $< -o $@
901 BUILT_SOURCES += gio_probes.h gio_probes.lo
902 CLEANFILES += gio_probes.h gio_probes.h.tmp
903 libgio_2_0_la_LIBADD += gio_probes.lo
906 tapsetdir = @ABS_TAPSET_DIR@
907 EXTRA_DIST += gio.stp.in
910 tapset_DATA = libgio-2.0.so.0.@LT_CURRENT@.@LT_REVISION@.stp
911 CLEANFILES += $(tapset_DATA)
913 $(tapset_DATA): gio.stp.in Makefile
915 -e 's|[@]ABS_GLIB_RUNTIME_LIBDIR[@]|$(ABS_GLIB_RUNTIME_LIBDIR)|g' \
916 -e 's|[@]LT_CURRENT[@]|$(LT_CURRENT)|g' \
917 -e 's|[@]LT_REVISION[@]|$(LT_REVISION)|g' \
921 # ------------------------------------------------------------------------
924 bin_PROGRAMS += gdbus
925 gdbus_SOURCES = gdbus-tool.c
926 gdbus_LDADD = libgio-2.0.la \
927 $(top_builddir)/gobject/libgobject-2.0.la \
928 $(top_builddir)/gmodule/libgmodule-2.0.la \
929 $(top_builddir)/glib/libglib-2.0.la \
934 # ------------------------------------------------------------------------
935 # gapplication(1) tool
936 bin_PROGRAMS += gapplication
937 gapplication_SOURCES = gapplication-tool.c
938 gapplication_LDADD = libgio-2.0.la \
939 $(top_builddir)/gobject/libgobject-2.0.la \
940 $(top_builddir)/gmodule/libgmodule-2.0.la \
941 $(top_builddir)/glib/libglib-2.0.la \
946 completiondir = $(datadir)/bash-completion/completions
948 completion/gapplication \
951 completion/gsettings \
953 EXTRA_DIST += $(completion_DATA)
955 # ------------------------------------------------------------------------
958 bin_PROGRAMS += gresource
959 gresource_SOURCES = gresource-tool.c
960 gresource_CPPFLAGS = $(LIBELF_CFLAGS) $(AM_CPPFLAGS)
961 gresource_LDADD = libgio-2.0.la \
962 $(top_builddir)/gobject/libgobject-2.0.la \
963 $(top_builddir)/gmodule/libgmodule-2.0.la \
964 $(top_builddir)/glib/libglib-2.0.la \
967 # ------------------------------------------------------------------------
991 gio_LDADD = libgio-2.0.la \
992 $(top_builddir)/gobject/libgobject-2.0.la \
993 $(top_builddir)/glib/libglib-2.0.la \
996 dist-hook: $(BUILT_EXTRA_DIST)
997 files='$(BUILT_EXTRA_DIST)'; \
998 for f in $$files; do \
999 if test -f $$f; then d=.; else d=$(srcdir); fi; \
1000 cp $$d/$$f $(distdir) || exit 1; done
1002 if HAVE_GLIB_RUNTIME_LIBDIR
1003 ABS_GLIB_RUNTIME_LIBDIR = $(realpath $(libdir)/$(GLIB_RUNTIME_LIBDIR))
1005 ABS_GLIB_RUNTIME_LIBDIR = $(libdir)
1008 if HAVE_GLIB_RUNTIME_LIBDIR
1010 mkdir -p $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
1011 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0 $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
1012 mv $(DESTDIR)$(libdir)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/$(GLIB_RUNTIME_LIBDIR)
1013 rm -f $(DESTDIR)$(libdir)/libgio-2.0.so
1014 ln -s $(GLIB_RUNTIME_LIBDIR)/libgio-2.0.so.0.$(LT_CURRENT).$(LT_REVISION) $(DESTDIR)$(libdir)/libgio-2.0.so