diff options
author | rbuj <[email protected]> | 2020-07-18 17:11:04 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-07-29 17:54:46 +0200 |
commit | 1dafc4423968a404273e4a9372b42bad8390bad3 (patch) | |
tree | 53dcedcc65fcb37dbc8e029ce84f94fd00208092 /accessx-status/Makefile.am | |
parent | d797a1d2ed72765c945970cbd68cb4cbd0597b83 (diff) | |
download | mate-applets-1dafc4423968a404273e4a9372b42bad8390bad3.tar.bz2 mate-applets-1dafc4423968a404273e4a9372b42bad8390bad3.tar.xz |
accessx-status: Load menu from resources
Diffstat (limited to 'accessx-status/Makefile.am')
-rw-r--r-- | accessx-status/Makefile.am | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/accessx-status/Makefile.am b/accessx-status/Makefile.am index f71ab438..013ff92b 100644 --- a/accessx-status/Makefile.am +++ b/accessx-status/Makefile.am @@ -1,3 +1,5 @@ +NULL = + SUBDIRS = docs pixmaps AM_CPPFLAGS = \ @@ -5,10 +7,13 @@ AM_CPPFLAGS = \ $(MATE_APPLETS4_CFLAGS) \ $(GIO_CFLAGS) \ -DACCESSX_PIXMAPS_DIR=\""$(datadir)/pixmaps/mate-accessx-status-applet"\" \ - -DACCESSX_MENU_UI_DIR=\""$(uidir)"\" + -DACCESSX_RESOURCE_PATH=\""/org/mate/mate-applets/accessx-status/"\" \ + $(NULL) libexec_PROGRAMS = accessx-status-applet +BUILT_SOURCES = accessx-status-resources.c accessx-status-resources.h +nodist_accessx_status_applet_SOURCES = $(BUILT_SOURCES) accessx_status_applet_SOURCES = \ applet.c \ applet.h @@ -18,6 +23,12 @@ accessx_status_applet_LDADD = \ $(GIO_LIBS) \ $(X_LIBS) +accessx-status-resources.c: accessx-status-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/accessx-status-resources.gresource.xml) + $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name accessx $< + +accessx-status-resources.h: accessx-status-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(srcdir)/accessx-status-resources.gresource.xml) + $(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate --c-name accessx $< + appletdir = $(datadir)/mate-panel/applets applet_in_files = org.mate.applets.AccessxStatusApplet.mate-panel-applet.desktop.in applet_DATA = $(applet_in_files:.mate-panel-applet.desktop.in=.mate-panel-applet) @@ -40,15 +51,20 @@ org.mate.panel.applet.AccessxStatusAppletFactory.service: $(service_in_files) -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ $< > $@ -uidir = $(datadir)/mate/ui -ui_DATA = accessx-status-applet-menu.xml - -CLEANFILES = $(applet_DATA) $(applet_in_files) $(service_DATA) $(ACCESSX_STATUS_APPLET_CLEANFILES) +CLEANFILES = \ + $(applet_DATA) \ + $(applet_in_files) \ + $(service_DATA) \ + $(ACCESSX_STATUS_APPLET_CLEANFILES) \ + $(BUILT_SOURCES) \ + $(NULL) EXTRA_DIST = \ + accessx-status-applet-menu.xml \ + accessx-status-resources.gresource.xml \ $(applet_in_files).in \ $(service_in_files) \ - $(ui_DATA) + $(NULL) -include $(top_srcdir)/git.mk |