gstreamer-1.0.pc: move gmodule-no-export-2.0 dependency to Requires.private

Users of GStreamer are not generally expected to use the GModule API
directly. so don't force them all to link against it.

While we're at it, no need to define this via configure.ac really, just
put the dependencies directly into the .pc.in file.
This commit is contained in:
Tim-Philipp Müller 2012-11-25 23:42:57 +00:00
parent 0378c40ed3
commit 647cdef6fb
3 changed files with 4 additions and 5 deletions

View file

@ -615,9 +615,6 @@ AC_DEFINE_UNQUOTED(GST_DATADIR, "$DATADIR", [data dir])
dnl set location of plugin directory dnl set location of plugin directory
AG_GST_SET_PLUGINDIR AG_GST_SET_PLUGINDIR
GST_PKG_DEPS="glib-2.0, gobject-2.0, gmodule-no-export-2.0, gthread-2.0"
AC_SUBST(GST_PKG_DEPS)
dnl make sure it doesn't complain about unused variables if debugging is disabled dnl make sure it doesn't complain about unused variables if debugging is disabled
NO_WARNINGS="" NO_WARNINGS=""
if test "x${GST_DISABLE_GST_DEBUG}" = "xyes"; then if test "x${GST_DISABLE_GST_DEBUG}" = "xyes"; then

View file

@ -12,7 +12,8 @@ typelibdir=@abs_top_builddir@/gst
Name: GStreamer Uninstalled Name: GStreamer Uninstalled
Description: Streaming media framework, Not Installed Description: Streaming media framework, Not Installed
Version: @VERSION@ Version: @VERSION@
Requires: @GST_PKG_DEPS@ Requires: glib-2.0, gobject-2.0, gthread-2.0
Requires.private: gmodule-no-export-2.0
Libs: @abs_top_builddir@/gst/libgstreamer-@GST_API_VERSION@.la Libs: @abs_top_builddir@/gst/libgstreamer-@GST_API_VERSION@.la
# FIXME: the libs dir doesn't really belong here # FIXME: the libs dir doesn't really belong here
Cflags: -I@abs_top_srcdir@ -I@abs_top_srcdir@/libs -I@abs_top_builddir@ -I@abs_top_builddir@/libs Cflags: -I@abs_top_srcdir@ -I@abs_top_srcdir@/libs -I@abs_top_builddir@ -I@abs_top_builddir@/libs

View file

@ -11,7 +11,8 @@ typelibdir=${libdir}/girepository-1.0
Name: GStreamer Name: GStreamer
Description: Streaming media framework Description: Streaming media framework
Requires: @GST_PKG_DEPS@
Version: @VERSION@ Version: @VERSION@
Requires: glib-2.0, gobject-2.0, gthread-2.0
Requires.private: gmodule-no-export-2.0
Libs: -L${libdir} -lgstreamer-@GST_API_VERSION@ Libs: -L${libdir} -lgstreamer-@GST_API_VERSION@
Cflags: -I${includedir} Cflags: -I${includedir}