From fd0a6566581c9e50b253033c948ca5b52d2536e6 Mon Sep 17 00:00:00 2001 From: Stanislav Vorobiov Date: Mon, 17 Sep 2012 13:21:05 +0400 Subject: [PATCH] YaGL: Added YaGL stats support to build script --- tizen/build.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/tizen/build.sh b/tizen/build.sh index 1867164..08e930e 100755 --- a/tizen/build.sh +++ b/tizen/build.sh @@ -8,6 +8,7 @@ EMUL_TARGET_LIST="" VIRTIOGL_EN="" OPENGLES_EN="" YAGL_EN="" +YAGL_STATS_EN="" usage() { echo "usage: build.sh [options] [target]" @@ -26,6 +27,8 @@ usage() { echo " enable openGLES passthrough device" echo "-yagl|--yagl-device" echo " enable YaGL passthrough device" + echo "-ys|--yagl-stats" + echo " enable YaGL stats" echo "-e|--extra" echo " extra options for QEMU configure" echo "-u|-h|--help|--usage" @@ -77,6 +80,21 @@ yagl_enable() { esac } +yagl_stats_enable() { + case "$1" in + 0|no|disable) + YAGL_STATS_EN="no" + ;; + 1|yes|enable) + YAGL_STATS_EN="yes" + ;; + *) + usage + exit 1 + ;; + esac +} + set_target() { if [ ! -z "$EMUL_TARGET_LIST" ] ; then usage @@ -133,6 +151,9 @@ do -yagl|--yagl-device) yagl_enable 1 ;; + -ys|--yagl-stats) + yagl_stats_enable 1 + ;; -u|-h|--help|--usage) usage exit 0 @@ -187,6 +208,12 @@ else CONFIGURE_APPEND="$CONFIGURE_APPEND --disable-yagl" fi +if test "$YAGL_STATS_EN" = "yes" ; then + CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-yagl-stats" +else + CONFIGURE_APPEND="$CONFIGURE_APPEND --disable-yagl-stats" +fi + echo $CONFIGURE_SCRIPT $CONFIGURE_APPEND $CONFIGURE_SCRIPT "$CONFIGURE_APPEND" && make -j$NUMCPU && make install -- 2.7.4