Build the plugin as a module.
This commit is contained in:
parent
eba51dfe79
commit
64c5b6460a
5 changed files with 28 additions and 23 deletions
|
|
@ -7,6 +7,9 @@ SUBDIRS = \
|
||||||
distclean-local:
|
distclean-local:
|
||||||
rm -rf *.spec *.cache *~
|
rm -rf *.spec *.cache *~
|
||||||
|
|
||||||
|
distuninstallcheck_listfiles = \
|
||||||
|
find . -type f -print | grep -v ./share/icons/hicolor/icon-theme.cache
|
||||||
|
|
||||||
rpm: dist
|
rpm: dist
|
||||||
rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
|
rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
|
||||||
@rm -f $(PACKAGE)-$(VERSION).tar.gz
|
@rm -f $(PACKAGE)-$(VERSION).tar.gz
|
||||||
|
|
|
||||||
|
|
@ -1,38 +1,39 @@
|
||||||
AM_CPPFLAGS = \
|
AM_CPPFLAGS = \
|
||||||
-I$(top_srcdir) \
|
-I$(top_srcdir) \
|
||||||
-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
|
-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
|
||||||
-DTHEMESDIR=\"$(datadir)/xfce4/eyes/themes\"
|
-DTHEMESDIR=\"$(datadir)/xfce4/eyes/themes\"
|
||||||
|
|
||||||
plugindir = $(libexecdir)/xfce4/panel-plugins
|
plugindir = $(libdir)/xfce4/panel/plugins
|
||||||
plugin_PROGRAMS = xfce4-eyes-plugin
|
plugin_LTLIBRARIES = libeyes.la
|
||||||
|
|
||||||
xfce4_eyes_plugin_SOURCES = \
|
libeyes_la_SOURCES = \
|
||||||
eyes.h \
|
eyes.h \
|
||||||
eyes.c \
|
eyes.c \
|
||||||
themes.h \
|
themes.h \
|
||||||
themes.c
|
themes.c
|
||||||
|
|
||||||
xfce4_eyes_plugin_CFLAGS = \
|
libeyes_la_CFLAGS = \
|
||||||
$(LIBXFCE4UI_CFLAGS) \
|
$(LIBXFCE4UI_CFLAGS) \
|
||||||
$(LIBXFCE4PANEL_CFLAGS)
|
$(LIBXFCE4PANEL_CFLAGS)
|
||||||
|
|
||||||
xfce4_eyes_plugin_LDADD = \
|
libeyes_la_LIBADD = \
|
||||||
$(LIBXFCE4PANEL_LIBS) \
|
$(LIBXFCE4PANEL_LIBS) \
|
||||||
$(LIBXFCE4UI_LIBS)
|
$(LIBXFCE4UI_LIBS)
|
||||||
|
|
||||||
desktopdir = $(datadir)/xfce4/panel-plugins
|
libeyes_la_LDFLAGS = \
|
||||||
desktop_in_in_files = eyes.desktop.in.in
|
-avoid-version \
|
||||||
desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in)
|
-module \
|
||||||
%.desktop.in: %.desktop.in.in
|
-no-undefined \
|
||||||
sed -e "s,\@libexecdir\@,$(libexecdir),g" < $< > $@
|
-export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \
|
||||||
|
$(PLATFORM_LDFLAGS)
|
||||||
|
|
||||||
|
desktopdir = $(datadir)/xfce4/panel/plugins
|
||||||
|
desktop_in_files = eyes.desktop.in
|
||||||
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
|
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
|
||||||
@INTLTOOL_DESKTOP_RULE@
|
@INTLTOOL_DESKTOP_RULE@
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = $(desktop_in_files)
|
||||||
$(desktop_in_in_files)
|
|
||||||
|
|
||||||
CLEANFILES = \
|
CLEANFILES = $(desktop_DATA)
|
||||||
$(desktop_in_files) \
|
|
||||||
$(desktop_DATA)
|
|
||||||
|
|
||||||
# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
|
# vi:set ts=8 sw=8 noet ai nocindent syntax=automake:
|
||||||
|
|
|
||||||
|
|
@ -548,4 +548,4 @@ eyes_construct (XfcePanelPlugin *plugin)
|
||||||
xfce_panel_plugin_add_action_widget (plugin, eyes->ebox);
|
xfce_panel_plugin_add_action_widget (plugin, eyes->ebox);
|
||||||
}
|
}
|
||||||
|
|
||||||
XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL (eyes_construct);
|
XFCE_PANEL_PLUGIN_REGISTER (eyes_construct)
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,5 @@ Encoding=UTF-8
|
||||||
_Name=Eyes
|
_Name=Eyes
|
||||||
_Comment=Eyes that spy on you
|
_Comment=Eyes that spy on you
|
||||||
Icon=xfce4-eyes
|
Icon=xfce4-eyes
|
||||||
X-XFCE-Exec=@libexecdir@/xfce4/panel-plugins/xfce4-eyes-plugin
|
X-XFCE-Internal=FALSE
|
||||||
|
X-XFCE-Module=eyes
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
panel-plugin/eyes.c
|
panel-plugin/eyes.c
|
||||||
panel-plugin/themes.c
|
panel-plugin/themes.c
|
||||||
panel-plugin/eyes.desktop.in.in
|
panel-plugin/eyes.desktop.in
|
||||||
|
|
|
||||||
Reference in a new issue