summaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-core/recipes-multimedia/pulseaudio/pulseaudio-12.2/0001-install-files-for-a-module-development.patch
blob: f77249a23b93bb179d487022dde82ab095fcee3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
From 53281e2d11f84e2dae0704e0167369710ee2cb30 Mon Sep 17 00:00:00 2001
From: Yannick Gicquel <yannick.gicquel@iot.bzh>
Date: Fri, 23 Sep 2016 14:26:03 +0200
Subject: [PATCH 1/6] install files for a module development

Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
---

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