Ship a shared library. There are now two external projects using copies of this, which is rediculous

This commit is contained in:
Richard Hughes 2009-02-27 12:32:55 +00:00
parent d2c0ee6412
commit 842842c479
5 changed files with 55 additions and 2 deletions

1
.gitignore vendored
View file

@ -41,6 +41,7 @@ intltool-merge.in
intltool-merge
intltool-update.in
intltool-update
devicekit-power.pc
xmldocs.make
omf.make
gtk-doc.make

View file

@ -23,6 +23,9 @@ EXTRA_DIST = \
HACKING \
ChangeLog
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = devicekit-power-gobject.pc
# xsltproc barfs on 'make distcheck'; disable for now
DISTCHECK_CONFIGURE_FLAGS=--disable-man-pages --disable-gtk-doc

View file

@ -6,6 +6,22 @@ AM_INIT_AUTOMAKE(DeviceKit-power, 007)
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
# libtool versioning - this applies to devkit-power-gobject
#
# See http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91 for details
#
# increment;
# CURRENT If the API or ABI interface has changed (reset REVISION to 0)
# REVISION If the API and ABI remains the same, but bugs are fixed.
# AGE If libpackagekit can be linked into executables which can be
# built with previous versions of this library. Don't use.
LT_CURRENT=1
LT_REVISION=0
LT_AGE=0
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
@ -151,6 +167,7 @@ AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[gettext domain])
AC_OUTPUT([
Makefile
devicekit-power-gobject.pc
src/Makefile
tools/Makefile
doc/Makefile

View file

@ -0,0 +1,13 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: devicekit-power-gobject
Description: DeviceKit-power is a system daemon for installing stuff.
Version: @VERSION@
Requires.private: dbus-1, gthread-2.0
Requires: glib-2.0, gobject-2.0
Libs: -L${libdir} -ldevkit-power-gobject
Cflags: -I${includedir}/DeviceKit-power

View file

@ -11,9 +11,20 @@ INCLUDES = \
-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\"
noinst_LTLIBRARIES = \
lib_LTLIBRARIES = \
libdevkit-power-gobject.la
libdevkit_power_includedir = $(includedir)/DeviceKit-power/devkit-power-gobject
libdevkit_power_include_HEADERS = \
dkp-client.h \
dkp-device.h \
dkp-wakeups.h \
dkp-qos-obj.h \
dkp-history-obj.h \
dkp-stats-obj.c \
dkp-wakeups-obj.h \
dkp-enum.h
libdevkit_power_gobject_la_SOURCES = \
egg-debug.c \
egg-debug.h \
@ -37,8 +48,16 @@ libdevkit_power_gobject_la_SOURCES = \
dkp-enum.c \
dkp-enum.h
libdevkit_power_gobject_la_LIBADD = $(INTLLIBS) $(GLIB_LIBS) $(DBUS_GLIB_LIBS)
libdevkit_power_gobject_la_LIBADD = \
$(INTLLIBS) \
$(GLIB_LIBS) \
$(DBUS_GLIB_LIBS)
libdevkit_power_gobject_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-export-dynamic \
-no-undefined \
-export-symbols-regex '^dkp_.*'
clean-local:
rm -f *~