- zram.cc/.h: read zram usage; memory bar can subtract RAM held by zram
- memswap: zram and disk swap shown separately in the tooltip
- uptime: format string with %d %h %m %s, %H %M %S, %t, \n and {...}
- settings dialog fields for both, Russian translation
- tests/test_format_uptime.cc with tests/run.sh
This is what the installed 1:1.3.2-2ubuntu3+zram2 package was built from.
63 lines
1.2 KiB
Makefile
63 lines
1.2 KiB
Makefile
plugindir = $(libdir)/xfce4/panel/plugins
|
|
plugin_LTLIBRARIES = libsystemload.la
|
|
|
|
AM_CPPFLAGS = \
|
|
-I$(top_srcdir) \
|
|
-DG_LOG_DOMAIN=\"xfce4-systemload-plugin\" \
|
|
-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
|
|
$(PLATFORM_CPPFLAGS)
|
|
|
|
libsystemload_la_CFLAGS = \
|
|
$(LIBXFCE4UI_CFLAGS) \
|
|
$(XFCONF_CFLAGS) \
|
|
$(LIBGTOP_CFLAGS) \
|
|
$(LIBXFCE4PANEL_CFLAGS) \
|
|
$(UPOWER_GLIB_CFLAGS) \
|
|
$(PLATFORM_CFLAGS)
|
|
|
|
libsystemload_la_CXXFLAGS = $(libsystemload_la_CFLAGS)
|
|
|
|
libsystemload_la_LIBADD = \
|
|
$(top_builddir)/xfce4++/util/libxfce4util_pp.la \
|
|
$(LIBXFCE4UI_LIBS) \
|
|
$(LIBXFCE4PANEL_LIBS) \
|
|
$(XFCONF_LIBS) \
|
|
$(LIBGTOP_LIBS) \
|
|
$(UPOWER_GLIB_LIBS) \
|
|
-lm
|
|
|
|
libsystemload_la_SOURCES = \
|
|
cpu.cc \
|
|
cpu.h \
|
|
memswap.cc \
|
|
memswap.h \
|
|
network.cc \
|
|
network.h \
|
|
plugin.h \
|
|
plugin.c \
|
|
settings.cc \
|
|
settings.h \
|
|
systemload.cc \
|
|
uptime.cc \
|
|
uptime.h \
|
|
zram.cc \
|
|
zram.h
|
|
|
|
libsystemload_la_LDFLAGS = \
|
|
-avoid-version \
|
|
-module \
|
|
-no-undefined \
|
|
-export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \
|
|
$(PLATFORM_LDFLAGS)
|
|
|
|
#
|
|
# Desktop file
|
|
#
|
|
desktopdir = $(datadir)/xfce4/panel/plugins
|
|
desktop_DATA = systemload.desktop
|
|
@INTLTOOL_DESKTOP_RULE@
|
|
|
|
EXTRA_DIST = systemload.desktop.in
|
|
|
|
CLEANFILES = $(desktop_DATA)
|
|
|