guest_agent="yes"
libiscsi=""
-# tizen
-ffmpeg="no"
-ffmpeg_inc="distrib/ffmpeg"
-
# for TIZEN-maru
maru="no"
;;
--disable-guest-agent) guest_agent="no"
;;
- --enable-ffmpeg) ffmpeg="yes"
- ;;
- --disable-ffmpeg) ffmpeg="no"
- ;;
- --ffmpeg-inc=*) ffmpeg_inc="$optarg"
- ;;
# for TIZEN-maru
--enable-maru) maru="yes"
;;
echo " --enable-usb-redir enable usb network redirection support"
echo " --disable-guest-agent disable building of the QEMU Guest Agent"
echo " --enable-guest-agent enable building of the QEMU Guest Agent"
-echo " --disable-ffmpeg disable FFmpeg"
-echo " --enable-ffmpeg enable FFmpeg"
-echo " --ffmpeg-inc path to FFmpeg includes"
echo ""
# for TIZEN-maru
echo "TIZEN-maru options:"
fi
##########################################
-# check if we have FFmpeg libraries and headers
-if test "$ffmpeg" = "yes" ; then
-cat > $TMPC <<EOF
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdbool.h>
-
-#include <libavcodec/avcodec.h>
-#include <libavformat/avformat.h>
-
-int main(void) { AVFormatContext *pFormatCtx = NULL; av_find_stream_info(pFormatCtx); return 0; }
-EOF
- ffmpeg_cflags="-I$source_path/tizen/$ffmpeg_inc/include"
- if test "$linux" = "yes" ; then
- ffmpeg_libs="-lavformat -lavcodec -lavutil -lm"
- elif test "$mingw32" = "yes" ; then
- ffmpeg_libs="-lavformat.dll -lavcodec.dll -lavutil.dll -lm"
- fi
- ffmpeg_libpath="-L$source_path/tizen/$ffmpeg_inc/lib"
- ffmpeg_libs="$ffmpeg_libpath $ffmpeg_libs"
- if compile_prog "$ffmpeg_cflags" "$ffmpeg_libs" ; then
- ffmpeg=yes
- libs_softmmu="$ffmpeg_libs $libs_softmmu"
- else
- if test "$ffmpeg" = "yes" ; then
- feature_not_found "ffmpeg"
- exit 1;
- fi
- ffmpeg=no
- fi
-fi
-
-##########################################
# End of CC checks
# After here, no more $cc or $ld runs
echo "libiscsi support $libiscsi"
echo "build guest agent $guest_agent"
-# tizen
-echo "FFmpeg support $ffmpeg"
-
# for TIZEN-maru
echo "TIZEN-maru support $maru"
;;
esac
-# tizen FFmpeg support
-if test "$ffmpeg" = "yes" ; then
- echo "CONFIG_FFMPEG=y" >> $config_host_mak
- echo "FFMPEG_CFLAGS=$ffmpeg_cflags" >> $config_host_mak
-fi
-
-# for TIZEN-maru
-if test "$maru" = "yes" ; then
- echo "CONFIG_MARU=y" >> $config_host_mak
-fi
-
# use default implementation for tracing backend-specific routines
trace_default=yes
echo "TRACE_BACKEND=$trace_backend" >> $config_host_mak