mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 06:40:04 +01:00
Make the client tool be called upower, but maintain a symlink to devkit-power
This commit is contained in:
parent
31383d6d83
commit
adcb737767
4 changed files with 9 additions and 31 deletions
1
po/.gitignore
vendored
1
po/.gitignore
vendored
|
|
@ -3,4 +3,5 @@ POTFILES
|
||||||
stamp-it
|
stamp-it
|
||||||
.intltool-merge-cache
|
.intltool-merge-cache
|
||||||
*.pot
|
*.pot
|
||||||
|
*.gmo
|
||||||
|
|
||||||
|
|
|
||||||
3
tools/.gitignore
vendored
3
tools/.gitignore
vendored
|
|
@ -1,6 +1,5 @@
|
||||||
.deps
|
.deps
|
||||||
devkit-power
|
upower
|
||||||
devkit-power-on-battery
|
|
||||||
*-glue.h
|
*-glue.h
|
||||||
*.o
|
*.o
|
||||||
*-marshal.c
|
*-marshal.c
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,7 @@
|
||||||
## Process this file with automake to produce Makefile.in
|
## Process this file with automake to produce Makefile.in
|
||||||
|
|
||||||
INCLUDES = \
|
INCLUDES = \
|
||||||
-DPACKAGE_LIBEXEC_DIR=\""$(libexecdir)"\" \
|
|
||||||
-DPACKAGE_SYSCONF_DIR=\""$(sysconfdir)"\" \
|
|
||||||
-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
|
|
||||||
-DPACKAGE_BIN_DIR=\""$(bindir)"\" \
|
|
||||||
-DPACKAGE_LOCALSTATE_DIR=\""$(localstatedir)"\" \
|
|
||||||
-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
|
|
||||||
-DPACKAGE_LIB_DIR=\""$(libdir)"\" \
|
|
||||||
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
|
|
||||||
-DUP_COMPILATION \
|
-DUP_COMPILATION \
|
||||||
-DUP_DISABLE_DEPRECATED \
|
|
||||||
-DEGG_LOG_FILE=\""$(UP_LOG_DIR)/DeviceKit-power"\" \
|
-DEGG_LOG_FILE=\""$(UP_LOG_DIR)/DeviceKit-power"\" \
|
||||||
-DEGG_VERBOSE="\"DKP_VERBOSE\"" \
|
-DEGG_VERBOSE="\"DKP_VERBOSE\"" \
|
||||||
-DEGG_LOGGING="\"DKP_LOGGING\"" \
|
-DEGG_LOGGING="\"DKP_LOGGING\"" \
|
||||||
|
|
@ -23,37 +14,25 @@ INCLUDES = \
|
||||||
|
|
||||||
DEVKIT_POWER_LIBS = $(top_builddir)/devkit-power-gobject/libdevkit-power-gobject.la
|
DEVKIT_POWER_LIBS = $(top_builddir)/devkit-power-gobject/libdevkit-power-gobject.la
|
||||||
|
|
||||||
BUILT_SOURCES = \
|
bin_PROGRAMS = upower
|
||||||
up-daemon-glue.h \
|
|
||||||
up-marshal.h up-marshal.c
|
|
||||||
|
|
||||||
up-marshal.h: $(top_srcdir)/src/up-marshal.list
|
upower_SOURCES = \
|
||||||
glib-genmarshal $< --prefix=devkit_power_marshal --header > $@
|
|
||||||
|
|
||||||
up-marshal.c: $(top_srcdir)/src/up-marshal.list
|
|
||||||
echo "#include \"up-marshal.h\"" > $@ && glib-genmarshal $< --prefix=devkit_power_marshal --body >> $@
|
|
||||||
|
|
||||||
up-daemon-glue.h: $(top_srcdir)/src/org.freedesktop.UPower.xml Makefile.am
|
|
||||||
dbus-binding-tool --prefix=devkit_power_daemon --mode=glib-client --output=up-daemon-glue.h $(top_srcdir)/src/org.freedesktop.UPower.xml
|
|
||||||
|
|
||||||
bin_PROGRAMS = devkit-power
|
|
||||||
|
|
||||||
devkit_power_SOURCES = \
|
|
||||||
egg-debug.c \
|
egg-debug.c \
|
||||||
egg-debug.h \
|
egg-debug.h \
|
||||||
up-tool.c \
|
up-tool.c \
|
||||||
$(BUILT_SOURCES)
|
$(BUILT_SOURCES)
|
||||||
|
|
||||||
devkit_power_CPPFLAGS = \
|
upower_CPPFLAGS = \
|
||||||
-DG_LOG_DOMAIN=\"devkit-power\" \
|
|
||||||
$(DISABLE_DEPRECATED) \
|
|
||||||
$(AM_CPPFLAGS)
|
$(AM_CPPFLAGS)
|
||||||
|
|
||||||
devkit_power_LDADD = \
|
upower_LDADD = \
|
||||||
$(DBUS_GLIB_LIBS) \
|
$(DBUS_GLIB_LIBS) \
|
||||||
$(DEVKIT_POWER_LIBS) \
|
$(DEVKIT_POWER_LIBS) \
|
||||||
$(POLKIT_DBUS_LIBS)
|
$(POLKIT_DBUS_LIBS)
|
||||||
|
|
||||||
|
install-exec-hook:
|
||||||
|
cd $(DESTDIR)$(bindir) && $(LN_S) upower devkit-power
|
||||||
|
|
||||||
CLEANFILES = $(BUILT_SOURCES)
|
CLEANFILES = $(BUILT_SOURCES)
|
||||||
|
|
||||||
clean-local :
|
clean-local :
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,6 @@
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <glib/gi18n-lib.h>
|
#include <glib/gi18n-lib.h>
|
||||||
|
|
||||||
#include "up-marshal.h"
|
|
||||||
#include "up-client.h"
|
#include "up-client.h"
|
||||||
#include "up-device.h"
|
#include "up-device.h"
|
||||||
#include "up-wakeups.h"
|
#include "up-wakeups.h"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue