From 53281e2d11f84e2dae0704e0167369710ee2cb30 Mon Sep 17 00:00:00 2001 From: Yannick Gicquel Date: Fri, 23 Sep 2016 14:26:03 +0200 Subject: [PATCH 1/6] install files for a module development Signed-off-by: Yannick Gicquel --- diff --git a/Makefile.am b/Makefile.am index 275ceea..77dd7a5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -54,7 +54,16 @@ dist_vapi_DATA = \ vala/libpulse-simple.deps vala/libpulse-simple.vapi pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = libpulse.pc libpulse-simple.pc +pkgconfig_DATA = libpulse.pc libpulse-simple.pc pulseaudio-module-devel.pc + +moduledev_DATA = pulsecore-config.h $(top_srcdir)/src/pulsecore/*.h +moduledevdir = $(includedir)/pulsemodule/pulsecore + +moduledevfilter_DATA = $(top_srcdir)/src/pulsecore/filter/*.h +moduledevfilterdir = $(includedir)/pulsemodule/pulsecore/filter + +moduledevinternal_DATA = src/pulse/internal.h src/pulse/client-conf.h src/pulse/fork-detect.h +moduledevinternaldir = $(includedir)/pulsemodule/pulse if HAVE_GLIB20 pkgconfig_DATA += \ @@ -108,6 +117,9 @@ dist-hook: check-daemon: $(MAKE) -C src check-daemon +pulsecore-config.h: config.h + cp $< $@ + .PHONY: homepage distcleancheck doxygen # see git-version-gen diff --git a/configure.ac b/configure.ac index c9c414f..87aa9b1 100644 --- a/configure.ac +++ b/configure.ac @@ -1548,6 +1548,7 @@ man/pulse-client.conf.5.xml man/default.pa.5.xml man/pulse-cli-syntax.5.xml man/start-pulseaudio-x11.1.xml +pulseaudio-module-devel.pc ]) AS_IF([test "x$HAVE_ESOUND" = "x1"], diff --git a/pulseaudio-module-devel.pc.in b/pulseaudio-module-devel.pc.in new file mode 100644 index 0000000..85aadbc --- /dev/null +++ b/pulseaudio-module-devel.pc.in @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ +modlibexecdir=@modlibexecdir@ + +Name: pulseaudio-module-devel +Description: PulseAudio Module Development Interface +Version: @PACKAGE_VERSION@ +Libs: -L${libdir} -L${libdir}/pulseaudio -L${modlibexecdir} -lpulsecommon-@PA_MAJORMINOR@ -lpulsecore-@PA_MAJORMINOR@ -lprotocol-native +Libs.private: +Cflags: -I${includedir}/pulsemodule -D_REENTRANT