summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinod Koul <vkoul@kernel.org>2019-11-15 19:45:33 +0530
committerJaroslav Kysela <perex@perex.cz>2020-02-19 10:30:38 +0100
commit474d2ec5e57209a468597428faa1beb080687659 (patch)
tree9e9d5263f6d72467ff18302405eb9885b59e9009
parent23a382f534f4e97da5e83ffa861ff8bf0540fb16 (diff)
tinycompress: Add pc file
Add pc file for the users of this lib Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac4
-rw-r--r--tinycompress.pc.in11
3 files changed, 16 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 1c2beea..db48df0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,5 @@
SUBDIRS = include src
+pkgconfig_DATA = tinycompress.pc
+
ACLOCAL_AMFLAGS = -I m4
diff --git a/configure.ac b/configure.ac
index 416d93b..ce51d5c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,6 +16,7 @@ AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AM_PROG_CC_C_O
+PKG_INSTALLDIR
# Checks for libraries.
@@ -28,5 +29,6 @@ Makefile
include/Makefile
src/Makefile
src/lib/Makefile
-src/utils/Makefile])
+src/utils/Makefile
+tinycompress.pc])
AC_OUTPUT
diff --git a/tinycompress.pc.in b/tinycompress.pc.in
new file mode 100644
index 0000000..0762b5d
--- /dev/null
+++ b/tinycompress.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libtinycompress
+Description: Tinycompress library for ALSA compress audio offload
+URL: alsa-project.org
+Version: @VERSION@
+Cflags: -I${includedir}/tinycompress
+Libs: -L${libdir} -ltinycompress