changeset 628:e50c4e111698 openvg

Disable mbaf for OpenVG
author Thinker K.F. Li <thinker@branda.to>
date Fri, 16 Jul 2010 18:44:29 +0800
parents 97bf0ff7a038
children 608f58b9b84d
files configure.ac src/Makefile.am
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Fri Jul 16 18:03:52 2010 +0800
+++ b/configure.ac	Fri Jul 16 18:44:29 2010 +0800
@@ -61,6 +61,14 @@
 AC_DEFINE([SH_STEXT])
 [fi]
 
+AC_ARG_ENABLE([mbaf],
+	[ --disable-mbaf	Turn off mbaf],
+[case "${enableval}" in
+  yes) mbaf=true ;;
+  no) mbaf=false ;;
+  *) AC_MSG_ERROR([bad value ${enableval} for --disable-mbaf]) ;;
+esac],[mbaf=true])
+
 AC_ARG_ENABLE([X_supp],
 	[  --disable-X_supp	Turn off X backend],
 [case "${enableval}" in
@@ -95,6 +103,7 @@
 [elif [ x"${openvg}" = xtrue ]; then ]
 AC_DEFINE([OPENVG_GRAPH_ENGINE])
 cairo=false
+mbaf=false
 [else]
 AC_DEFINE([CAIRO_GRAPH_ENGINE])
 cairo=true
@@ -103,6 +112,7 @@
 AM_CONDITIONAL([SKIA_GRAPH_ENGINE], [test x$skia = xtrue])
 AM_CONDITIONAL([OPENVG_GRAPH_ENGINE], [test x$openvg = xtrue])
 AM_CONDITIONAL([CAIRO_GRAPH_ENGINE], [test x"$cairo" = xtrue])
+AM_CONDITIONAL([MBAF], [test x"$mbaf" = xtrue])
 
 AC_ARG_ENABLE([nodejs],
 	[  --enable-nodejs	Turn on nodejs support],
--- a/src/Makefile.am	Fri Jul 16 18:03:52 2010 +0800
+++ b/src/Makefile.am	Fri Jul 16 18:44:29 2010 +0800
@@ -12,7 +12,7 @@
 noinst_PROGRAMS += testcase
 endif
 
-if X_SUPP
+if MBAF
 MBAF_SOURCES=mbaf/mbapp.c mbaf/mbbutton.c mbaf/mbobject.c mbaf/animated_menu.c
 else
 MBAF_SOURCES=