From 5371ab0196b4559cbb982ab7f957864d5e366ebb Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Wed, 1 Jul 2020 09:53:13 +0800 Subject: datetime: migrate from dbus-glib to gdbus --- plugins/datetime/Makefile.am | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'plugins/datetime/Makefile.am') diff --git a/plugins/datetime/Makefile.am b/plugins/datetime/Makefile.am index a920100..88b1174 100644 --- a/plugins/datetime/Makefile.am +++ b/plugins/datetime/Makefile.am @@ -5,16 +5,17 @@ polkitdir = $(datadir)/polkit-1/actions dbus_services_in_files = org.mate.SettingsDaemon.DateTimeMechanism.service.in polkit_in_files = org.mate.settingsdaemon.datetimemechanism.policy.in -msd-datetime-mechanism-glue.h: $(srcdir)/msd-datetime-mechanism.xml - $(AM_V_GEN) dbus-binding-tool \ - --prefix=msd_datetime_mechanism --mode=glib-server \ - --output=msd-datetime-mechanism-glue.h \ - $(srcdir)/msd-datetime-mechanism.xml +$(BUILT_SOURCES) : $(srcdir)/msd-datetime-mechanism.xml + $(AM_V_GEN) $(GDBUS_CODEGEN) \ + --interface-prefix org.mate.SettingsDaemon. \ + --c-namespace MateSettings \ + --generate-c-code msd-datetime-generated $< if HAVE_POLKIT libexec_PROGRAMS = msd-datetime-mechanism endif +nodist_msd_datetime_mechanism_SOURCES = $(BUILT_SOURCES) msd_datetime_mechanism_SOURCES = \ msd-datetime-mechanism.c \ msd-datetime-mechanism.h \ @@ -24,7 +25,9 @@ msd_datetime_mechanism_SOURCES = \ if HAVE_POLKIT -BUILT_SOURCES = msd-datetime-mechanism-glue.h +BUILT_SOURCES = \ + msd-datetime-generated.h \ + msd-datetime-generated.c endif AM_CFLAGS = $(WARN_CFLAGS) $(SETTINGS_PLUGIN_CFLAGS) $(POLKIT_CFLAGS) -- cgit v1.2.1