mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
build: indent and add square braces
Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
This commit is contained in:
parent
2cc3f47f6a
commit
19945763de
1 changed files with 95 additions and 98 deletions
83
configure.ac
83
configure.ac
|
@ -44,8 +44,8 @@ m4_define([va_api_wld_version], [0.33.0])
|
|||
m4_define([gtkdoc_version], [1.12])
|
||||
|
||||
AC_PREREQ([2.69])
|
||||
AC_INIT([gst_vaapi], [gst_vaapi_version],
|
||||
[gwenole.beauchesne@intel.com, sreerenj.balachandran@intel.com],
|
||||
AC_INIT([GStreamer VA-API Plug-ins], [gst_vaapi_version],
|
||||
[http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer],
|
||||
[gstreamer-vaapi])
|
||||
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
|
@ -77,22 +77,22 @@ AC_ARG_ENABLE([encoders],
|
|||
[enable video encoders @<:@default=yes@:>@]),
|
||||
[], [enable_encoders="yes"])
|
||||
|
||||
AC_ARG_ENABLE(drm,
|
||||
AC_ARG_ENABLE([drm],
|
||||
AS_HELP_STRING([--enable-drm],
|
||||
[enable DRM backend @<:@default=yes@:>@]),
|
||||
[], [enable_drm="yes"])
|
||||
|
||||
AC_ARG_ENABLE(x11,
|
||||
AC_ARG_ENABLE([x11],
|
||||
AS_HELP_STRING([--enable-x11],
|
||||
[enable X11 output @<:@default=yes@:>@]),
|
||||
[], [enable_x11="yes"])
|
||||
|
||||
AC_ARG_ENABLE(glx,
|
||||
AC_ARG_ENABLE([glx],
|
||||
AS_HELP_STRING([--enable-glx],
|
||||
[enable OpenGL/X11 output @<:@default=yes@:>@]),
|
||||
[], [enable_glx="yes"])
|
||||
|
||||
AC_ARG_ENABLE(wayland,
|
||||
AC_ARG_ENABLE([wayland],
|
||||
AC_HELP_STRING([--enable-wayland],
|
||||
[enable Wayland output @<:@default=yes@:>@]),
|
||||
[], [enable_wayland="yes"])
|
||||
|
@ -108,7 +108,7 @@ AC_ARG_WITH([glapi],
|
|||
[GLAPI="$with_glapi"], [GLAPI=default_glapi])
|
||||
|
||||
dnl Check for basic libraries
|
||||
AC_CHECK_LIB(m, tan)
|
||||
AC_CHECK_LIB([m], [tan])
|
||||
|
||||
dnl Check for Gtk doc
|
||||
GTKDOC_VERSION=gtkdoc_version
|
||||
|
@ -223,7 +223,6 @@ if test $HAVE_GSTGL -eq 1; then
|
|||
])
|
||||
fi
|
||||
AM_CONDITIONAL([USE_GST_GL_HELPERS], [test $HAVE_GSTGL -eq 1])
|
||||
|
||||
AC_DEFINE_UNQUOTED([USE_GST_GL_HELPERS], [$HAVE_GSTGL],
|
||||
[Defined to 1 if GStreamer OpenGL helper libraries are available])
|
||||
|
||||
|
@ -240,16 +239,17 @@ dnl GST_ALL_LDFLAGS:
|
|||
dnl LDFLAGS really should only contain flags, not libs - they get added before
|
||||
dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
|
||||
GST_ALL_LDFLAGS="-no-undefined"
|
||||
AC_SUBST(GST_ALL_LDFLAGS)
|
||||
AC_SUBST([GST_ALL_LDFLAGS])
|
||||
|
||||
dnl GST_PLUGIN_LDFLAGS:
|
||||
dnl this really should only contain flags, not libs - they get added before
|
||||
dnl whatevertarget_LIBS and -L flags here affect the rest of the linking
|
||||
GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^([_]*gst_plugin_desc|gst_.*_get_type)\$\$' $GST_ALL_LDFLAGS"
|
||||
AC_SUBST(GST_PLUGIN_LDFLAGS)
|
||||
AC_SUBST([GST_PLUGIN_LDFLAGS])
|
||||
|
||||
dnl Check for the GStreamer plugins directory
|
||||
AC_ARG_VAR([GST_PLUGIN_PATH_1_0], [installation path for gstreamer-vaapi plugin elements for GStreamer 1.0])
|
||||
AC_ARG_VAR([GST_PLUGIN_PATH_1_0],
|
||||
[installation path for gstreamer-vaapi plugin elements for GStreamer 1.0])
|
||||
AC_MSG_CHECKING([for GStreamer plugins directory])
|
||||
if test -n "$GST_PLUGIN_PATH_1_0"; then
|
||||
GST_PLUGINS_DIR="$GST_PLUGIN_PATH_1_0"
|
||||
|
@ -261,7 +261,7 @@ else
|
|||
fi
|
||||
AC_MSG_RESULT([$GST_PLUGINS_DIR])
|
||||
plugindir="$GST_PLUGINS_DIR"
|
||||
AC_SUBST(plugindir)
|
||||
AC_SUBST([plugindir])
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl -- Renderers --
|
||||
|
@ -751,7 +751,7 @@ fi
|
|||
dnl VA/Wayland API
|
||||
if test "x$enable_wayland" = "xyes"; then
|
||||
PKG_CHECK_MODULES([LIBVA_WAYLAND], [libva-wayland >= va_api_wld_version],
|
||||
[:], [USE_WAYLAND=0])
|
||||
[], [USE_WAYLAND=0])
|
||||
fi
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
@ -759,60 +759,57 @@ dnl -- Generate files and summary --
|
|||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
case ":$USE_X11:$USE_GLX:$USE_EGL:$USE_WAYLAND:$USE_DRM:" in
|
||||
*:1:*)
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([No renderer is enabled])
|
||||
;;
|
||||
*:1:*) ;;
|
||||
*) AC_MSG_ERROR([No renderer is enabled]) ;;
|
||||
esac
|
||||
|
||||
AC_DEFINE_UNQUOTED([USE_ENCODERS], $USE_ENCODERS,
|
||||
AC_DEFINE_UNQUOTED([USE_ENCODERS], [$USE_ENCODERS],
|
||||
[Defined to 1 if video encoders are used])
|
||||
AM_CONDITIONAL([USE_ENCODERS], [test $USE_ENCODERS -eq 1])
|
||||
|
||||
AC_DEFINE_UNQUOTED(USE_JPEG_ENCODER, $USE_JPEG_ENCODER,
|
||||
AC_DEFINE_UNQUOTED([USE_JPEG_ENCODER], [$USE_JPEG_ENCODER],
|
||||
[Defined to 1 if JPEG encoder is used])
|
||||
AM_CONDITIONAL(USE_JPEG_ENCODER, test $USE_JPEG_ENCODER -eq 1)
|
||||
AM_CONDITIONAL([USE_JPEG_ENCODER], [test $USE_JPEG_ENCODER -eq 1])
|
||||
|
||||
AC_DEFINE_UNQUOTED(USE_VP8_ENCODER, $USE_VP8_ENCODER,
|
||||
AC_DEFINE_UNQUOTED([USE_VP8_ENCODER], [$USE_VP8_ENCODER],
|
||||
[Defined to 1 if VP8 encoder is used])
|
||||
AM_CONDITIONAL(USE_VP8_ENCODER, test $USE_VP8_ENCODER -eq 1)
|
||||
AM_CONDITIONAL([USE_VP8_ENCODER], [test $USE_VP8_ENCODER -eq 1])
|
||||
|
||||
AC_DEFINE_UNQUOTED(USE_H265_ENCODER, $USE_H265_ENCODER,
|
||||
AC_DEFINE_UNQUOTED([USE_H265_ENCODER], [$USE_H265_ENCODER],
|
||||
[Defined to 1 if H265 encoder is used])
|
||||
AM_CONDITIONAL(USE_H265_ENCODER, test $USE_H265_ENCODER -eq 1)
|
||||
AM_CONDITIONAL([USE_H265_ENCODER], [test $USE_H265_ENCODER -eq 1])
|
||||
|
||||
AC_DEFINE_UNQUOTED(USE_VA_VPP, $USE_VA_VPP,
|
||||
AC_DEFINE_UNQUOTED([USE_VA_VPP], [$USE_VA_VPP],
|
||||
[Defined to 1 if video post-processing is used])
|
||||
AM_CONDITIONAL(USE_VA_VPP, test $USE_VA_VPP -eq 1)
|
||||
AM_CONDITIONAL([USE_VA_VPP], [test $USE_VA_VPP -eq 1])
|
||||
|
||||
AC_DEFINE_UNQUOTED(USE_JPEG_DECODER, $USE_JPEG_DECODER,
|
||||
AC_DEFINE_UNQUOTED([USE_JPEG_DECODER], [$USE_JPEG_DECODER],
|
||||
[Defined to 1 if JPEG decoder is used])
|
||||
AM_CONDITIONAL(USE_JPEG_DECODER, test $USE_JPEG_DECODER -eq 1)
|
||||
AM_CONDITIONAL([USE_JPEG_DECODER], [test $USE_JPEG_DECODER -eq 1])
|
||||
|
||||
AC_DEFINE_UNQUOTED(USE_VP8_DECODER, $USE_VP8_DECODER,
|
||||
AC_DEFINE_UNQUOTED([USE_VP8_DECODER], [$USE_VP8_DECODER],
|
||||
[Defined to 1 if VP8 decoder is used])
|
||||
AM_CONDITIONAL(USE_VP8_DECODER, test $USE_VP8_DECODER -eq 1)
|
||||
AM_CONDITIONAL([USE_VP8_DECODER], [test $USE_VP8_DECODER -eq 1])
|
||||
|
||||
AC_DEFINE_UNQUOTED(USE_VP9_DECODER, $USE_VP9_DECODER,
|
||||
AC_DEFINE_UNQUOTED([USE_VP9_DECODER], [$USE_VP9_DECODER],
|
||||
[Defined to 1 if VP9 decoder is used])
|
||||
AM_CONDITIONAL(USE_VP9_DECODER, test $USE_VP9_DECODER -eq 1)
|
||||
AM_CONDITIONAL([USE_VP9_DECODER], [test $USE_VP9_DECODER -eq 1])
|
||||
|
||||
AC_DEFINE_UNQUOTED(USE_HEVC_DECODER, $USE_HEVC_DECODER,
|
||||
AC_DEFINE_UNQUOTED([USE_HEVC_DECODER], [$USE_HEVC_DECODER],
|
||||
[Defined to 1 if HEVC decoder is used])
|
||||
AM_CONDITIONAL(USE_HEVC_DECODER, test $USE_HEVC_DECODER -eq 1)
|
||||
AM_CONDITIONAL([USE_HEVC_DECODER], [test $USE_HEVC_DECODER -eq 1])
|
||||
|
||||
AC_DEFINE_UNQUOTED(USE_DRM, $USE_DRM,
|
||||
AC_DEFINE_UNQUOTED([USE_DRM], [$USE_DRM],
|
||||
[Defined to 1 if DRM is enabled])
|
||||
AM_CONDITIONAL(USE_DRM, test $USE_DRM -eq 1)
|
||||
AM_CONDITIONAL([USE_DRM], [test $USE_DRM -eq 1])
|
||||
|
||||
AC_DEFINE_UNQUOTED(USE_X11, $USE_X11,
|
||||
AC_DEFINE_UNQUOTED([USE_X11], [$USE_X11],
|
||||
[Defined to 1 if X11 is enabled])
|
||||
AM_CONDITIONAL(USE_X11, test $USE_X11 -eq 1)
|
||||
AM_CONDITIONAL([USE_X11], [test $USE_X11 -eq 1])
|
||||
|
||||
AC_DEFINE_UNQUOTED(USE_GLX, $USE_GLX,
|
||||
AC_DEFINE_UNQUOTED([USE_GLX], [$USE_GLX],
|
||||
[Defined to 1 if GLX is enabled])
|
||||
AM_CONDITIONAL(USE_GLX, test $USE_GLX -eq 1)
|
||||
AM_CONDITIONAL([USE_GLX], [test $USE_GLX -eq 1])
|
||||
|
||||
AC_DEFINE_UNQUOTED([USE_EGL], [$USE_EGL],
|
||||
[Defined to 1 if EGL is enabled])
|
||||
|
@ -821,9 +818,9 @@ AM_CONDITIONAL([USE_EGL], [test $USE_EGL -eq 1])
|
|||
AC_DEFINE_UNQUOTED([USE_GLES_VERSION_MASK], [$GLES_VERSION_MASK],
|
||||
[Defined to the set of enabled OpenGL ES APIs])
|
||||
|
||||
AC_DEFINE_UNQUOTED(USE_WAYLAND, $USE_WAYLAND,
|
||||
AC_DEFINE_UNQUOTED([USE_WAYLAND], [$USE_WAYLAND],
|
||||
[Defined to 1 if WAYLAND is enabled])
|
||||
AM_CONDITIONAL(USE_WAYLAND, test $USE_WAYLAND -eq 1)
|
||||
AM_CONDITIONAL([USE_WAYLAND], [test $USE_WAYLAND -eq 1])
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
|
|
Loading…
Reference in a new issue