blob: f13c0a9fc84c0e2dfdfd53c581136468ec3b133d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
dnl Options to build a demo codec
AC_DEFUN([AG_GST_ARG_DEMO_PLUGIN],
[
AC_ARG_ENABLE(demo-plugin,
AC_HELP_STRING([--enable-demo-plugin],
[Build a demo plugin, the decoding or encoding will be limited]),
[DEMO_PLUGIN=yes],
[DEMO_PLUGIN=no])
AC_ARG_ENABLE(demo-percent,
AC_HELP_STRING([--enable-demo-percent[=number] Specify the percentage
of the video that can be played]),
[ if test $enableval -lt 0 -o $enableval -gt 100 ; then
DEMO_PERCENT=10
else
DEMO_PERCENT=$enableval
fi
],
[DEMO_PERCENT=10])
if test "x$DEMO_PLUGIN" = xyes; then
ENABLE_DEMO_PLUGIN=1
else
ENABLE_DEMO_PLUGIN=0
fi
AC_DEFINE_UNQUOTED(ENABLE_DEMO_PLUGIN, ${ENABLE_DEMO_PLUGIN}, [Demo plugin support])
AC_DEFINE_UNQUOTED(DEMO_PERCENT, ${DEMO_PERCENT}, [Demo plugin percentage])
AC_SUBST(ENABLE_DEMO_PLUGIN)
AC_SUBST(DEMO_PERCENT)
])
|