summaryrefslogtreecommitdiff
path: root/mate-dictionary/data/Makefile.am
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2023-08-09 07:17:27 -0400
committerLuke from DC <[email protected]>2023-08-12 19:08:16 +0000
commitf5ba27007c359c933631d30dac4593c147c5e01e (patch)
treedfaa438a9cce81b5f56ec4bf981181d50e282ddd /mate-dictionary/data/Makefile.am
parent757b4728baab9f96808e05ab3d7fc5341b57f11a (diff)
downloadmate-utils-f5ba27007c359c933631d30dac4593c147c5e01e.tar.bz2
mate-utils-f5ba27007c359c933631d30dac4593c147c5e01e.tar.xz
dictionary applet: allow building in-process
*This is needed for wayland support
Diffstat (limited to 'mate-dictionary/data/Makefile.am')
-rw-r--r--mate-dictionary/data/Makefile.am12
1 files changed, 11 insertions, 1 deletions
diff --git a/mate-dictionary/data/Makefile.am b/mate-dictionary/data/Makefile.am
index 81cfcd35..b174a877 100644
--- a/mate-dictionary/data/Makefile.am
+++ b/mate-dictionary/data/Makefile.am
@@ -62,9 +62,17 @@ appletdir = $(datadir)/mate-panel/applets
applet_in_files = org.mate.DictionaryApplet.mate-panel-applet.desktop.in
applet_DATA = $(applet_in_files:.mate-panel-applet.desktop.in=.mate-panel-applet)
+if ENABLE_IN_PROCESS
+APPLET_LOCATION = $(pkglibdir)/libmate-dictionary-applet.so
+APPLET_IN_PROCESS = true
+else
+APPLET_LOCATION = $(libexecdir)/mate-dictionary-applet
+APPLET_IN_PROCESS = false
+endif
$(applet_in_files): $(applet_in_files).in Makefile
$(AM_V_GEN)sed \
- -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \
+ -e "s|\@APPLET_LOCATION\@|$(APPLET_LOCATION)|" \
+ -e "s|\@APPLET_IN_PROCESS\@|$(APPLET_IN_PROCESS)|" \
$< > $@
$(applet_DATA): $(applet_in_files) Makefile
@@ -74,6 +82,7 @@ else
$(AM_V_GEN) cp $< $@
endif
+if !ENABLE_IN_PROCESS
servicedir = $(datadir)/dbus-1/services
service_in_files = org.mate.panel.applet.DictionaryAppletFactory.service.in
service_DATA = $(service_in_files:.service.in=.service)
@@ -82,6 +91,7 @@ org.mate.panel.applet.DictionaryAppletFactory.service: $(service_in_files)
$(AM_V_GEN)sed \
-e "s|\@LIBEXECDIR\@|$(libexecdir)|" \
$< > $@
+endif
ui_DATA += dictionary-applet-menu.xml