validate: Add .pc files so applications can link against us

This commit is contained in:
Thibault Saunier 2013-09-13 15:48:56 -03:00
parent acbd02014c
commit f85983a043
5 changed files with 48 additions and 0 deletions

View file

@ -5,6 +5,7 @@ SUBDIRS = \
data \
gst \
tools \
pkgconfig \
po
DIST_SUBDIRS = $(SUBDIRS)

View file

@ -246,6 +246,9 @@ gst/Makefile
gst/validate/Makefile
tools/Makefile
data/Makefile
pkgconfig/Makefile
pkgconfig/gst-validate-uninstalled.pc
pkgconfig/gst-validate.pc
po/Makefile.in
])
AC_OUTPUT

View file

@ -0,0 +1,21 @@
pcfiles = \
gst-validate-@GST_API_VERSION@.pc
pcfiles_uninstalled = \
gst-validate-@GST_API_VERSION@-uninstalled.pc
all-local: $(pcfiles) $(pcfiles_uninstalled)
### how to generate pc files
%-@GST_API_VERSION@.pc: %.pc
cp $< $@
%-@GST_API_VERSION@-uninstalled.pc: %-uninstalled.pc
cp $< $@
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(pcfiles)
EXTRA_DIST = \
gst-validate.pc.in \
gst-validate-uninstalled.pc.in
CLEANFILES = $(pcfiles) $(pcfiles_uninstalled)

View file

@ -0,0 +1,12 @@
# the standard variables don't make sense for an uninstalled copy
prefix=
exec_prefix=
libdir=@abs_top_builddir@/ges
includedir=@abs_top_builddir@
Name: gst-validate
Description: GStreamer Validate
Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@
Libs: @abs_top_builddir@/gst/validate/libgstvalidate-@GST_API_VERSION@.la
Cflags: -I@abs_top_srcdir@ -I@abs_top_builddir@

View file

@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/gstreamer-@GST_API_VERSION@
Name: gst-validate
Description: Gstreamer Validate
Version: @VERSION@
Requires: gstreamer-@GST_API_VERSION@
Libs: -L${libdir} -lgstvalidate@GST_API_VERSION@
Cflags: -I${includedir}