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:
|
||||
rm -rf *.spec *.cache *~
|
||||
|
||||
distuninstallcheck_listfiles = \
|
||||
find . -type f -print | grep -v ./share/icons/hicolor/icon-theme.cache
|
||||
|
||||
rpm: dist
|
||||
rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
|
||||
@rm -f $(PACKAGE)-$(VERSION).tar.gz
|
||||
|
|
|
|||
|
|
@ -1,38 +1,39 @@
|
|||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir) \
|
||||
-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir) \
|
||||
-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
|
||||
-DTHEMESDIR=\"$(datadir)/xfce4/eyes/themes\"
|
||||
|
||||
plugindir = $(libexecdir)/xfce4/panel-plugins
|
||||
plugin_PROGRAMS = xfce4-eyes-plugin
|
||||
plugindir = $(libdir)/xfce4/panel/plugins
|
||||
plugin_LTLIBRARIES = libeyes.la
|
||||
|
||||
xfce4_eyes_plugin_SOURCES = \
|
||||
libeyes_la_SOURCES = \
|
||||
eyes.h \
|
||||
eyes.c \
|
||||
themes.h \
|
||||
themes.c
|
||||
|
||||
xfce4_eyes_plugin_CFLAGS = \
|
||||
$(LIBXFCE4UI_CFLAGS) \
|
||||
libeyes_la_CFLAGS = \
|
||||
$(LIBXFCE4UI_CFLAGS) \
|
||||
$(LIBXFCE4PANEL_CFLAGS)
|
||||
|
||||
xfce4_eyes_plugin_LDADD = \
|
||||
$(LIBXFCE4PANEL_LIBS) \
|
||||
libeyes_la_LIBADD = \
|
||||
$(LIBXFCE4PANEL_LIBS) \
|
||||
$(LIBXFCE4UI_LIBS)
|
||||
|
||||
desktopdir = $(datadir)/xfce4/panel-plugins
|
||||
desktop_in_in_files = eyes.desktop.in.in
|
||||
desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in)
|
||||
%.desktop.in: %.desktop.in.in
|
||||
sed -e "s,\@libexecdir\@,$(libexecdir),g" < $< > $@
|
||||
libeyes_la_LDFLAGS = \
|
||||
-avoid-version \
|
||||
-module \
|
||||
-no-undefined \
|
||||
-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)
|
||||
@INTLTOOL_DESKTOP_RULE@
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(desktop_in_in_files)
|
||||
EXTRA_DIST = $(desktop_in_files)
|
||||
|
||||
CLEANFILES = \
|
||||
$(desktop_in_files) \
|
||||
$(desktop_DATA)
|
||||
CLEANFILES = $(desktop_DATA)
|
||||
|
||||
# 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_REGISTER_EXTERNAL (eyes_construct);
|
||||
XFCE_PANEL_PLUGIN_REGISTER (eyes_construct)
|
||||
|
|
|
|||
|
|
@ -4,4 +4,5 @@ Encoding=UTF-8
|
|||
_Name=Eyes
|
||||
_Comment=Eyes that spy on you
|
||||
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/themes.c
|
||||
panel-plugin/eyes.desktop.in.in
|
||||
panel-plugin/eyes.desktop.in
|
||||
|
|
|
|||
Reference in a new issue