[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-cvs
Subject:    gst-ffmpeg: Add uninstalled pkg-config file so other modules can find libav elements for unit tests
From:       tpm () kemper ! freedesktop ! org (Tim Müller)
Date:       2013-02-28 19:58:47
Message-ID: 20130228195847.A0D2776027 () kemper ! freedesktop ! org
[Download RAW message or body]

Module: gst-ffmpeg
Branch: master
Commit: 7e9fc24bc9e4a14b59e43c797cfbaa3d69a1bf21
URL:    http://cgit.freedesktop.org/gstreamer/gst-ffmpeg/commit/?id=7e9fc24bc9e4a14b59e43c797cfbaa3d69a1bf21


Author: Tim-Philipp Müller <tim@centricular.net>
Date:   Thu Feb 28 19:34:02 2013 +0000

Add uninstalled pkg-config file so other modules can find libav elements for unit \
tests

e.g. gst-plugins-bad has some unit tests that draw on av* elements.

---

 Makefile.am                                        |    4 +-
 configure.ac                                       |    2 +
 pkgconfig/.gitignore                               |    1 +
 pkgconfig/Makefile.am                              |   31 ++++++++++++++++++++
 .../gstreamer-plugins-libav-uninstalled.pc.in      |   13 ++++++++
 5 files changed, 49 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index cf31a9c..b843d30 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,8 +1,8 @@
 DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
 
 COMMON_SUBDIRS = ext docs common tests
-SUBDIRS = $(LIBAV_SUBDIRS) $(COMMON_SUBDIRS)
-DIST_SUBDIRS = $(COMMON_SUBDIRS) gst-libs
+SUBDIRS = $(LIBAV_SUBDIRS) $(COMMON_SUBDIRS) pkgconfig
+DIST_SUBDIRS = $(COMMON_SUBDIRS) gst-libs pkgconfig
 
 # include before EXTRA_DIST for win32 assignment
 include $(top_srcdir)/common/win32.mak
diff --git a/configure.ac b/configure.ac
index f830455..cef52de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -428,6 +428,8 @@ docs/version.entities
 tests/Makefile
 tests/check/Makefile
 tests/files/Makefile
+pkgconfig/Makefile
+pkgconfig/gstreamer-plugins-libav-uninstalled.pc
 )
 AC_OUTPUT
 
diff --git a/pkgconfig/.gitignore b/pkgconfig/.gitignore
new file mode 100644
index 0000000..6fd0ef0
--- /dev/null
+++ b/pkgconfig/.gitignore
@@ -0,0 +1 @@
+*.pc
diff --git a/pkgconfig/Makefile.am b/pkgconfig/Makefile.am
new file mode 100644
index 0000000..fc94f03
--- /dev/null
+++ b/pkgconfig/Makefile.am
@@ -0,0 +1,31 @@
+### all of the standard pc files we need to generate
+pcverfiles =  \
+	gstreamer-plugins-libav-@GST_API_VERSION@.pc
+pcverfiles_uninstalled = \
+	gstreamer-plugins-libav-@GST_API_VERSION@-uninstalled.pc
+
+### all-local: $(pcverfiles) $(pcverfiles_uninstalled)
+all-local: $(pcverfiles_uninstalled)
+
+cp_verbose = $(cp_verbose_$(V))
+cp_verbose_ = $(cp_verbose_$(AM_DEFAULT_VERBOSITY))
+cp_verbose_0 = @echo "  CP     $@";
+
+### how to generate versioned .pc files from .pc files in this dir
+%-@GST_API_VERSION@.pc: %.pc
+	$(cp_verbose)cp $< $@
+%-@GST_API_VERSION@-uninstalled.pc: %-uninstalled.pc
+	$(cp_verbose)cp $< $@
+
+# do not install for now
+# pkgconfigdir = $(libdir)/pkgconfig
+# pkgconfig_DATA = $(pcverfiles)
+
+CLEANFILES = $(pcverfiles) $(pcverfiles_uninstalled)
+# pcinfiles = \
+#           gstreamer-plugins-libav.pc.in gstreamer-plugins-libav-uninstalled.pc.in
+pcinfiles = \
+           gstreamer-plugins-libav-uninstalled.pc.in
+
+DISTCLEANFILES = $(pcinfiles:.in=)
+EXTRA_DIST = $(pcinfiles)
diff --git a/pkgconfig/gstreamer-plugins-libav-uninstalled.pc.in \
b/pkgconfig/gstreamer-plugins-libav-uninstalled.pc.in new file mode 100644
index 0000000..6e02192
--- /dev/null
+++ b/pkgconfig/gstreamer-plugins-libav-uninstalled.pc.in
@@ -0,0 +1,13 @@
+prefix=
+exec_prefix=
+libdir=@abs_top_builddir@/gst-libs/gst
+includedir=@abs_top_builddir@/gst-libs
+pluginsdir=@abs_top_builddir@
+
+Name: GStreamer Libav Plugins, Uninstalled
+Description: Streaming media framework, libav plugins, uninstalled
+Version: @VERSION@
+Requires: gstreamer-@GST_API_VERSION@ gstreamer-plugins-base-@GST_API_VERSION@
+
+Libs:
+Cflags:



_______________________________________________
gstreamer-commits mailing list
gstreamer-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic