From a96eefdf0f10a9a051e65f6e88a24dc3abe40fc5 Mon Sep 17 00:00:00 2001 From: Stelios Tsampas Date: Mon, 17 Jul 2017 17:32:35 +0300 Subject: * Bring pluing Linux(gtk) interfaces up to date. --- plugins/dfsound/Makefile.am | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'plugins/dfsound/Makefile.am') diff --git a/plugins/dfsound/Makefile.am b/plugins/dfsound/Makefile.am index 53255556..b34f3267 100755 --- a/plugins/dfsound/Makefile.am +++ b/plugins/dfsound/Makefile.am @@ -49,9 +49,28 @@ bin_PROGRAMS = cfgDFSound cfgDFSound_CPPFLAGS = -DLOCALE_DIR=\"${datadir}/locale/\" \ -DDATADIR=\"${datadir}/psemu/\" \ $(GTK3_CFLAGS) $(AM_CPPFLAGS) -cfgDFSound_SOURCES = spucfg-0.1df/main.c +cfgDFSound_SOURCES = spucfg-0.1df/main.c GtkResources.c GtkResources.h cfgDFSound_LDADD = $(GTK3_LIBS) -glade_DATA = spucfg-0.1df/dfsound.ui -gladedir = $(datadir)/psemu/ +# gresource.xml is dynamically generated in CMake. Mirror that here in a static way. +define gresource_xml = + + + + dfsound.ui + + +endef + +dfsound.gresource.xml: + $(file >$@,$(gresource_xml)) +dfsound_gresource: dfsound.gresource.xml + $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/spucfg-0.1df --generate-dependencies $(srcdir)/$<) +GtkResources.c: dfsound.gresource.xml $(dfsound_gresource) + $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/spucfg-0.1df --generate-source --c-name dfsound $< +GtkResources.h: dfsound.gresource.xml $(dfsound_gresource) + $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/spucfg-0.1df --generate-header --c-name dfsound $< + +#glade_DATA = spucfg-0.1df/dfsound.ui +#gladedir = $(datadir)/psemu/ EXTRA_DIST = $(glade_DATA) -- cgit v1.2.3