summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am11
-rw-r--r--configure.ac1
-rw-r--r--pulseaudio-module-devel.pc.in12
3 files changed, 23 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 8a94a7c9..b19141bd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -44,7 +44,13 @@ vapi_DATA = \
vala/libpulse-mainloop-glib.deps vala/libpulse-mainloop-glib.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 src/pulsecore/*.h
+moduledevdir = $(includedir)/pulsemodule/pulsecore
+
+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 += \
@@ -82,6 +88,9 @@ dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version
echo $(VERSION) > $(distdir)/.version
+pulsecore-config.h: config.h
+ cp $< $@
+
.PHONY: homepage distcleancheck doxygen
# see git-version-gen
diff --git a/configure.ac b/configure.ac
index a78098c1..69603c67 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1333,6 +1333,7 @@ man/default.pa.5.xml
man/pulse-cli-syntax.5.xml
man/start-pulseaudio-kde.1.xml
man/start-pulseaudio-x11.1.xml
+pulseaudio-module-devel.pc
])
AC_CONFIG_FILES([src/esdcompat:src/daemon/esdcompat.in], [chmod +x src/esdcompat])
diff --git a/pulseaudio-module-devel.pc.in b/pulseaudio-module-devel.pc.in
new file mode 100644
index 00000000..85aadbcc
--- /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