uninstalled.pc: add support for non libtool build systems

Currently the .la path is provided which requires to use libtool as
mentioned in the GStreamer manual section-helloworld-compilerun.html.
It is fine as long as the application is built using libtool.

So currently it is not possible to compile a GStreamer application
within gst-uninstalled with CMake or other build system different
than autotools.

This patch allows to do the following in gst-uninstalled env:
gcc test.c -o test $(pkg-config --cflags --libs gstreamer-1.0 \
    gstreamer-gl-1.0)
Previously it required to prepend libtool --mode=link

https://bugzilla.gnome.org/show_bug.cgi?id=720778
This commit is contained in:
Julien Isorce 2016-02-18 14:32:23 +00:00
parent 0da3390692
commit 496e7b4568
10 changed files with 20 additions and 19 deletions

View file

@ -1,6 +1,6 @@
prefix= prefix=
exec_prefix= exec_prefix=
libdir=@abs_top_builddir@/gst-libs/gst/audio libdir=@abs_top_builddir@/gst-libs/gst/audio/.libs
includedir=@abs_top_srcdir@/gst-libs includedir=@abs_top_srcdir@/gst-libs
Name: GStreamer bad audio library, uninstalled Name: GStreamer bad audio library, uninstalled
@ -8,5 +8,5 @@ Description: Bad audio library for GStreamer, Not Installed
Version: @VERSION@ Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@ gstreamer-bad-base-@GST_API_VERSION@ Requires: gstreamer-@GST_API_VERSION@ gstreamer-bad-base-@GST_API_VERSION@
Libs: @abs_top_builddir@/gst-libs/gst/audio/libgstbadaudio-@GST_API_VERSION@.la Libs: -L${libdir} -lgstbadaudio-@GST_API_VERSION@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,6 +1,6 @@
prefix= prefix=
exec_prefix= exec_prefix=
libdir= libdir=@abs_top_builddir@/gst-libs/gst/base/.libs
includedir=@abs_top_builddir@/gst-libs includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/base girdir=@abs_top_builddir@/gst-libs/gst/base
typelibdir=@abs_top_builddir@/gst-libs/gst/base typelibdir=@abs_top_builddir@/gst-libs/gst/base
@ -10,5 +10,5 @@ Description: Bad base classes for GStreamer elements, Not Installed
Version: @VERSION@ Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@ Requires: gstreamer-@GST_API_VERSION@
Libs: @abs_top_builddir@/gst-libs/gst/base/libgstbadbase-@GST_API_VERSION@.la Libs: -L${libdir} -lgstbadbase-@GST_API_VERSION@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,6 +1,6 @@
prefix= prefix=
exec_prefix= exec_prefix=
libdir= libdir=@abs_top_builddir@/gst-libs/gst/video/.libs
includedir=@abs_top_builddir@/gst-libs includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/video girdir=@abs_top_builddir@/gst-libs/gst/video
typelibdir=@abs_top_builddir@/gst-libs/gst/video typelibdir=@abs_top_builddir@/gst-libs/gst/video
@ -10,5 +10,5 @@ Description: Bad video library for GStreamer elements, Not Installed
Version: @VERSION@ Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@ gstreamer-bad-base-@GST_API_VERSION@ Requires: gstreamer-@GST_API_VERSION@ gstreamer-bad-base-@GST_API_VERSION@
Libs: @abs_top_builddir@/gst-libs/gst/video/libgstbadvideo-@GST_API_VERSION@.la Libs: -L${libdir} -lgstbadvideo-@GST_API_VERSION@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,12 +1,12 @@
prefix= prefix=
exec_prefix= exec_prefix=
libdir=${pcfiledir}/../gst-libs/gst/codecparsers libdir=${pcfiledir}/../gst-libs/gst/codecparsers/.libs
includedir=${pcfiledir}/../gst-libs includedir=${pcfiledir}/../gst-libs
Name: GStreamer codec parsers, Uninstalled Name: GStreamer codec parsers, Uninstalled
Description: Bitstream parsers for GStreamer elements, uninstalled Description: Bitstream parsers for GStreamer elements, uninstalled
Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@ Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} ${libdir}/libgstcodecparsers-@GST_API_VERSION@.la Libs: -L${libdir} -lgstcodecparsers-@GST_API_VERSION@
Cflags: -I${includedir} Cflags: -I${includedir}

View file

@ -1,6 +1,6 @@
prefix= prefix=
exec_prefix= exec_prefix=
libdir= libdir=@abs_top_builddir@/gst-libs/gst/gl/.libs
includedir=@abs_top_builddir@/gst-libs includedir=@abs_top_builddir@/gst-libs
girdir=@abs_top_builddir@/gst-libs/gst/base girdir=@abs_top_builddir@/gst-libs/gst/base
typelibdir=@abs_top_builddir@/gst-libs/gst/base typelibdir=@abs_top_builddir@/gst-libs/gst/base
@ -10,5 +10,6 @@ Description: Streaming media framework, OpenGL plugins libraries, uninstalled
Version: @VERSION@ Version: @VERSION@
Requires: gstreamer-base-@GST_API_VERSION@ gstreamer-@GST_API_VERSION@ Requires: gstreamer-base-@GST_API_VERSION@ gstreamer-@GST_API_VERSION@
Libs: @abs_top_builddir@/gst-libs/gst/gl/libgstgl-@GST_API_VERSION@.la Libs: -L${libdir} -lgstgl-@GST_API_VERSION@ @GL_LIBS@
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,12 +1,12 @@
prefix= prefix=
exec_prefix= exec_prefix=
libdir=${pcfiledir}/../gst-libs/gst/insertbin libdir=${pcfiledir}/../gst-libs/gst/insertbin/.libs
includedir=${pcfiledir}/../gst-libs includedir=${pcfiledir}/../gst-libs
Name: GStreamer Insert Bin, Uninstalled Name: GStreamer Insert Bin, Uninstalled
Description: Bin to automatically and insertally link elements, uninstalled Description: Bin to automatically and insertally link elements, uninstalled
Requires: gstreamer-@GST_API_VERSION@ Requires: gstreamer-@GST_API_VERSION@
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} ${libdir}/libgstinsertbin-@GST_API_VERSION@.la Libs: -L${libdir} -lgstinsertbin-@GST_API_VERSION@
Cflags: -I${includedir} Cflags: -I${includedir}

View file

@ -1,12 +1,12 @@
prefix= prefix=
exec_prefix= exec_prefix=
libdir=${pcfiledir}/../gst-libs/gst/mpegts libdir=${pcfiledir}/../gst-libs/gst/mpegts/.libs
includedir=${pcfiledir}/../gst-libs includedir=${pcfiledir}/../gst-libs
Name: GStreamer MPEG-TS, Uninstalled Name: GStreamer MPEG-TS, Uninstalled
Description: GStreamer MPEG-TS support, uninstalled Description: GStreamer MPEG-TS support, uninstalled
Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@ Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} ${libdir}/libgstmpegts-@GST_API_VERSION@.la Libs: -L${libdir} -lgstmpegts-@GST_API_VERSION@
Cflags: -I${includedir} Cflags: -I${includedir}

View file

@ -1,12 +1,12 @@
prefix= prefix=
exec_prefix= exec_prefix=
libdir=${pcfiledir}/../gst-libs/gst/player libdir=${pcfiledir}/../gst-libs/gst/player/.libs
includedir=${pcfiledir}/../gst-libs includedir=${pcfiledir}/../gst-libs
Name: GStreamer Player, Uninstalled Name: GStreamer Player, Uninstalled
Description: GStreamer Player convenience library, uninstalled Description: GStreamer Player convenience library, uninstalled
Requires: gstreamer-@GST_API_VERSION@ Requires: gstreamer-@GST_API_VERSION@
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} ${libdir}/libgstplayer-@GST_API_VERSION@.la Libs: -L${libdir} -lgstplayer-@GST_API_VERSION@
Cflags: -I${includedir} Cflags: -I${includedir}

View file

@ -10,5 +10,5 @@ Name: GStreamer Bad Plugin libraries, Uninstalled
Description: Streaming media framework, bad plugins libraries, uninstalled Description: Streaming media framework, bad plugins libraries, uninstalled
Version: @VERSION@ Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@ Requires: gstreamer-@GST_API_VERSION@
Libs: -L@abs_top_builddir@/gst-libs/gst/basecamerabinsrc -L@abs_top_builddir@/gst-libs/gst/codecparsers -L@abs_top_builddir@/gst-libs/gst/egl -L@abs_top_builddir@/gst-libs/gst/insertbin -L@abs_top_builddir@/gst-libs/gst/interfaces -L@abs_top_builddir@/gst-libs/gst/mpegts -L@abs_top_builddir@/gst-libs/gst/signalprocessor -L@abs_top_builddir@/gst-libs/gst/video Libs: -L@abs_top_builddir@/gst-libs/gst/audio/.libs -L@abs_top_builddir@/gst-libs/gst/basecamerabinsrc/.libs -L@abs_top_builddir@/gst-libs/gst/codecparsers/.libs -L@abs_top_builddir@/gst-libs/gst/gl/.libs -L@abs_top_builddir@/gst-libs/gst/insertbin/.libs -L@abs_top_builddir@/gst-libs/gst/interfaces/.libs -L@abs_top_builddir@/gst-libs/gst/mpegts/.libs -L@abs_top_builddir@/gst-libs/gst/player/.libs -L@abs_top_builddir@/gst-libs/gst/signalprocessor/.libs -L@abs_top_builddir@/gst-libs/gst/video/.libs -L@abs_top_builddir@/gst-libs/gst/wayland/.libs
Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs

View file

@ -1,12 +1,12 @@
prefix= prefix=
exec_prefix= exec_prefix=
libdir=${pcfiledir}/../gst-libs/gst/wayland libdir=${pcfiledir}/../gst-libs/gst/wayland/.libs
includedir=${pcfiledir}/../gst-libs includedir=${pcfiledir}/../gst-libs
Name: GStreamer Wayland, Uninstalled Name: GStreamer Wayland, Uninstalled
Description: GStreamer Wayland support, uninstalled Description: GStreamer Wayland support, uninstalled
Requires: gstreamer-@GST_API_VERSION@ gstreamer-video-@GST_API_VERSION@ Requires: gstreamer-@GST_API_VERSION@ gstreamer-video-@GST_API_VERSION@
Version: @VERSION@ Version: @VERSION@
Libs: -L${libdir} ${libdir}/libgstwayland-@GST_API_VERSION@.la Libs: -L${libdir} -lgstwayland-@GST_API_VERSION@
Cflags: -I${includedir} Cflags: -I${includedir}