diff options
author | Scott James Remnant <scott@ubuntu.com> | 2010-03-02 15:16:33 +0000 |
---|---|---|
committer | Scott James Remnant <scott@ubuntu.com> | 2010-03-02 15:16:33 +0000 |
commit | 9795c9b561c758676a88ab1f963b70fdda5b0843 (patch) | |
tree | ccf2885fc1fb70b01436adaab09bc0d0641bc5ec /src/client | |
parent | 1425549885aadb21871d1751d71f411cce802d60 (diff) |
[client] Install libply-boot-client library and headers
When communicating with Plymouth from another process, it's
inconvenient to have to keep spawning the plymouth client binary
and keeping track of it - not to mention slow.
It's far cleaner to be able to link to the same boot client code
that the plymouth binary does, and communicate directly.
Place that code in a new libply-boot-client library, and install
the headers along with it.
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/Makefile.am | 21 | ||||
-rw-r--r-- | src/client/ply-boot-client.pc.in | 10 |
2 files changed, 31 insertions, 0 deletions
diff --git a/src/client/Makefile.am b/src/client/Makefile.am index 8dde0f8b..9487901b 100644 --- a/src/client/Makefile.am +++ b/src/client/Makefile.am @@ -17,6 +17,26 @@ plymouth_SOURCES = \ $(srcdir)/ply-boot-client.c \ $(srcdir)/plymouth.c +lib_LTLIBRARIES = libply-boot-client.la + +libply_boot_clientdir = $(includedir)/plymouth-1/ply-boot-client +libply_boot_client_HEADERS = \ + $(srcdir)/../ply-boot-protocol.h \ + ply-boot-client.h + +libply_boot_client_la_CFLAGS = $(PLYMOUTH_CFLAGS) +libply_boot_client_la_LIBADD = $(PLYMOUTH_LIBS) ../libply/libply.la +libply_boot_client_la_LDFLAGS = -export-symbols-regex '^[^_].*' \ + -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ + -no-undefined +libply_boot_client_la_SOURCES = \ + $(srcdir)/../ply-boot-protocol.h \ + $(srcdir)/ply-boot-client.h \ + $(srcdir)/ply-boot-client.c + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = ply-boot-client.pc + if WITH_RHGB_COMPAT_LINK install-data-hook: (mkdir -p $(DESTDIR)$(bindir) && cd $(DESTDIR)$(bindir) && ln -sf ../../bin/plymouth rhgb-client) @@ -26,4 +46,5 @@ uninstall-hook: -rmdir -p $(DESTDIR)$(bindir)/rhgb-client >& /dev/null endif +EXTRA_DIST = ply-boot-client.pc.in MAINTAINERCLEANFILES = Makefile.in diff --git a/src/client/ply-boot-client.pc.in b/src/client/ply-boot-client.pc.in new file mode 100644 index 00000000..d9984b0a --- /dev/null +++ b/src/client/ply-boot-client.pc.in @@ -0,0 +1,10 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: Plymouth +Description: Client Library for Boot Splash +Version: @VERSION@ +Libs: -L${libdir} -lply -lply-boot-client +Cflags: -I${includedir}/plymouth-1/ply -I${includedir}/plymouth-1/ply-boot-client |