mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
Install Vala bindings if vala is available
This commit is contained in:
parent
60f1b91f1d
commit
628fa854f0
3 changed files with 44 additions and 3 deletions
5
bindings/Makefile.am
Normal file
5
bindings/Makefile.am
Normal file
|
@ -0,0 +1,5 @@
|
|||
SUBDIRS =
|
||||
|
||||
if WITH_VALA
|
||||
SUBDIRS += vala
|
||||
endif
|
9
bindings/vala/Makefile.am
Normal file
9
bindings/vala/Makefile.am
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
VAPI_FILES = gst-rtsp-server-0.10.deps
|
||||
DEPS_FILES = gst-rtsp-server-0.10.vapi
|
||||
|
||||
gst-rtsp-server-0.10.deps:
|
||||
cp packages/gst-rtsp-server-0.10.deps $@
|
||||
|
||||
vapidir = $(VAPIDIR)
|
||||
vapi_DATA = $(VAPI_FILES) $(DEPS_FILES)
|
33
configure.ac
33
configure.ac
|
@ -81,6 +81,24 @@ HAVE_GTK=NO
|
|||
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.8.0, HAVE_GTK=yes, HAVE_GTK=no)
|
||||
AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
|
||||
|
||||
dnl Check for vala
|
||||
PKG_CHECK_EXISTS([vala-1.0], [HAVE_VALA="yes"], [HAVE_VALA="no"])
|
||||
|
||||
AM_CONDITIONAL(WITH_VALA, [test "x$HAVE_VALA" = "xyes"])
|
||||
|
||||
AC_ARG_WITH([vapidir],
|
||||
AS_HELP_STRING([--with-vapidir], [Define where to install the VAPI files]))
|
||||
|
||||
if test "x$HAVE_VALA" = "xyes"; then
|
||||
if test "x$with_vapidir" = "x"; then
|
||||
VAPIDIR="`pkg-config --variable vapidir vala-1.0`"
|
||||
else
|
||||
VAPIDIR="$with_vapidir"
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(VAPIDIR)
|
||||
|
||||
|
||||
dnl *** checks for libraries ***
|
||||
|
||||
dnl *** checks for header files ***
|
||||
|
@ -219,11 +237,20 @@ gst/Makefile
|
|||
gst/rtsp-server/Makefile
|
||||
examples/Makefile
|
||||
bindings/Makefile
|
||||
bindings/python/Makefile
|
||||
bindings/python/codegen/Makefile
|
||||
bindings/vala/Makefile
|
||||
pkgconfig/Makefile
|
||||
pkgconfig/gst-rtsp-server.pc
|
||||
])
|
||||
AC_OUTPUT
|
||||
|
||||
echo "Gst-rtsp-server configured. Type 'make' to build."
|
||||
echo "
|
||||
|
||||
Configuration
|
||||
Version : ${VERSION}
|
||||
Source code location : ${srcdir}
|
||||
Prefix : ${prefix}
|
||||
Compiler : ${CC}
|
||||
Vala bindings : ${HAVE_VALA}
|
||||
|
||||
Gst-rtsp-server configured. Type 'make' to build.
|
||||
"
|
||||
|
|
Loading…
Reference in a new issue