1 From: Jaska Uimonen <jaska.uimonen@helsinki.fi>
2 Date: Tue, 5 Jun 2012 11:36:13 +0300
3 Subject: build-sys: install files for a module development.
5 Change-Id: Ib68b292e1f6bc82bb5c148ef53acf51cc571406e
6 Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
8 Makefile.am | 11 ++++++++++-
10 pulseaudio-module-devel.pc.in | 12 ++++++++++++
11 3 files changed, 23 insertions(+), 1 deletion(-)
12 create mode 100644 pulseaudio-module-devel.pc.in
14 diff --git a/Makefile.am b/Makefile.am
15 index b0b2553..a6a0b40 100644
18 @@ -50,7 +50,13 @@ dist_vapi_DATA = \
19 vala/libpulse-mainloop-glib.deps vala/libpulse-mainloop-glib.vapi
21 pkgconfigdir = $(libdir)/pkgconfig
22 -pkgconfig_DATA = libpulse.pc libpulse-simple.pc
23 +pkgconfig_DATA = libpulse.pc libpulse-simple.pc pulseaudio-module-devel.pc
25 +moduledev_DATA = pulsecore-config.h src/pulsecore/*.h
26 +moduledevdir = $(includedir)/pulsemodule/pulsecore
28 +moduledevinternal_DATA = src/pulse/internal.h src/pulse/client-conf.h src/pulse/fork-detect.h
29 +moduledevinternaldir = $(includedir)/pulsemodule/pulse
33 @@ -89,6 +95,9 @@ dist-hook:
35 $(MAKE) -C src check-daemon
37 +pulsecore-config.h: config.h
40 .PHONY: homepage distcleancheck doxygen
43 diff --git a/configure.ac b/configure.ac
44 index 4854711..4e9f97e 100644
47 @@ -1384,6 +1384,7 @@ man/default.pa.5.xml
48 man/pulse-cli-syntax.5.xml
49 man/start-pulseaudio-kde.1.xml
50 man/start-pulseaudio-x11.1.xml
51 +pulseaudio-module-devel.pc
54 AC_CONFIG_FILES([src/esdcompat:src/daemon/esdcompat.in], [chmod +x src/esdcompat])
55 diff --git a/pulseaudio-module-devel.pc.in b/pulseaudio-module-devel.pc.in
57 index 0000000..85aadbc
59 +++ b/pulseaudio-module-devel.pc.in
62 +exec_prefix=@exec_prefix@
64 +includedir=@includedir@
65 +modlibexecdir=@modlibexecdir@
67 +Name: pulseaudio-module-devel
68 +Description: PulseAudio Module Development Interface
69 +Version: @PACKAGE_VERSION@
70 +Libs: -L${libdir} -L${libdir}/pulseaudio -L${modlibexecdir} -lpulsecommon-@PA_MAJORMINOR@ -lpulsecore-@PA_MAJORMINOR@ -lprotocol-native
72 +Cflags: -I${includedir}/pulsemodule -D_REENTRANT