Build plugin as a module
parent
e751508043
commit
1a73b511b8
|
@ -1,9 +1,9 @@
|
|||
plugindir = $(libexecdir)/xfce4/panel-plugins
|
||||
plugin_PROGRAMS = xfce4-netload-plugin
|
||||
plugindir = $(libdir)/xfce4/panel-plugins
|
||||
plugin_LTLIBRARIES = libnetload.la
|
||||
|
||||
LIBS = @LIBS@ @SOLLIBS@
|
||||
|
||||
xfce4_netload_plugin_SOURCES = \
|
||||
libnetload_la_SOURCES = \
|
||||
netload.c \
|
||||
monitor-label.c \
|
||||
monitor-label.h \
|
||||
|
@ -16,12 +16,19 @@ xfce4_netload_plugin_SOURCES = \
|
|||
global.h \
|
||||
slurm.h
|
||||
|
||||
xfce4_netload_plugin_CFLAGS = \
|
||||
libnetload_la_CFLAGS = \
|
||||
-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
|
||||
@LIBXFCE4PANEL_CFLAGS@ \
|
||||
@LIBXFCE4UI_CFLAGS@
|
||||
|
||||
xfce4_netload_plugin_LDADD = \
|
||||
libnetload_la_LDFLAGS = \
|
||||
-avoid-version \
|
||||
-module \
|
||||
-no-undefined \
|
||||
-export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \
|
||||
$(PLATFORM_LDFLAGS)
|
||||
|
||||
libnetload_la_LIBADD = \
|
||||
@SOLLIBS@ \
|
||||
@LIBXFCE4PANEL_LIBS@ \
|
||||
@LIBXFCE4UI_LIBS@
|
||||
|
|
|
@ -1271,4 +1271,4 @@ static void netload_construct (XfcePanelPlugin *plugin)
|
|||
run_update( global );
|
||||
}
|
||||
|
||||
XFCE_PANEL_PLUGIN_REGISTER_EXTERNAL (netload_construct);
|
||||
XFCE_PANEL_PLUGIN_REGISTER (netload_construct);
|
||||
|
|
|
@ -4,5 +4,6 @@ Encoding=UTF-8
|
|||
_Name=Network Monitor
|
||||
_Comment=Show network traffic
|
||||
Icon=xfce4-netload-plugin
|
||||
X-XFCE-Exec=@PLUGIN_PATH@/xfce4-netload-plugin
|
||||
X-XFCE-Module=netload
|
||||
X-XFCE-Internal=FALSE
|
||||
|
||||
|
|
Loading…
Reference in New Issue