uninstalled.pc: add support for non libtool build systems
authorJulien Isorce <j.isorce@samsung.com>
Thu, 18 Feb 2016 15:26:11 +0000 (15:26 +0000)
committerJulien Isorce <j.isorce@samsung.com>
Thu, 18 Feb 2016 15:26:11 +0000 (15:26 +0000)
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 \
  gst-editing-services-1.0)
Previously it required to prepend libtool --mode=link

https://bugzilla.gnome.org/show_bug.cgi?id=720778

pkgconfig/gst-editing-services-uninstalled.pc.in

index f227529..25fbe32 100644 (file)
@@ -1,12 +1,12 @@
 # the standard variables don't make sense for an uninstalled copy
 prefix=
 exec_prefix=
-libdir=@abs_top_builddir@/ges
+libdir=@abs_top_builddir@/ges/.libs
 includedir=@abs_top_builddir@
 
 Name: gst-editing-services
 Description: GStreamer Editing Services
 Version: @VERSION@
 Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@ gstreamer-controller-@GST_API_VERSION@ gstreamer-pbutils-@GST_API_VERSION@
-Libs: @abs_top_builddir@/ges/libges-@GST_API_VERSION@.la
+Libs: -L${libdir} -lges-@GST_API_VERSION@
 Cflags: -I@abs_top_srcdir@ -I@abs_top_builddir@