3 if [ -z "$TIZEN_SDK_DEV_PATH" ] ; then
4 TIZEN_SDK_DEV_PATH=${HOME}/tizen-sdk-dev
14 echo "usage: build.sh [options] [target]"
17 echo " emulator target, one of: [x86|i386|i486|i586|i686|arm|all]. Defaults to \"all\""
21 echo " build debug configuration"
22 echo "-yagl|--yagl-device"
23 echo " enable YaGL passthrough device"
24 echo "-ys|--yagl-stats"
25 echo " enable YaGL stats"
26 echo "-vigs|--vigs-device"
27 echo " enable VIGS device"
29 echo " extra options for QEMU configure"
30 echo "-u|-h|--help|--usage"
31 echo " display this help message and exit"
80 if [ ! -z "$EMUL_TARGET_LIST" ] ; then
86 x86|i386|i486|i586|i686)
87 EMUL_TARGET_LIST="i386-softmmu"
88 if [ -z "$YAGL_EN" ] ; then
91 if [ -z "$VIGS_EN" ] ; then
96 EMUL_TARGET_LIST="arm-softmmu"
97 if [ -z "$YAGL_EN" ] && [ "$targetos" != "Darwin" ] ; then
100 if [ -z "$VIGS_EN" ] && [ "$targetos" != "Darwin" ] ; then
105 # EMUL_TARGET_LIST="i386-softmmu,arm-softmmu"
106 EMUL_TARGET_LIST="i386-softmmu"
107 if [ -z "$YAGL_EN" ] ; then
110 if [ -z "$VIGS_EN" ] ; then
120 echo "##### checking for os... targetos $targetos"
122 echo "##### TIZEN_SDK_DEV_PATH: ${TIZEN_SDK_DEV_PATH}"
126 while [ "$#" -gt "0" ]
129 x86|i386|i486|i586|i686|arm|all)
133 CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-debug"
137 CONFIGURE_APPEND="$CONFIGURE_APPEND $1"
148 -u|-h|--help|--usage)
161 if [ -z "$EMUL_TARGET_LIST" ] ; then
165 CONFIGURE_APPEND="--target-list=$EMUL_TARGET_LIST $CONFIGURE_APPEND"
167 if test "$YAGL_EN" = "yes" ; then
168 CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-yagl"
170 CONFIGURE_APPEND="$CONFIGURE_APPEND --disable-yagl"
173 if test "$YAGL_STATS_EN" = "yes" ; then
174 CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-yagl-stats"
176 CONFIGURE_APPEND="$CONFIGURE_APPEND --disable-yagl-stats"
179 if test "$VIGS_EN" = "yes" ; then
180 CONFIGURE_APPEND="$CONFIGURE_APPEND --enable-vigs"
182 CONFIGURE_APPEND="$CONFIGURE_APPEND --disable-vigs"
185 # append common flags
186 CONFIGURE_APPEND="--enable-maru --enable-libav --enable-curl --disable-gtk $CONFIGURE_APPEND"
188 if [ -z ${PKG_CONFIG_PATH} ] ; then # avoid pkg-config bug on Windows
189 export PKG_CONFIG_PATH=${TIZEN_SDK_DEV_PATH}/distrib/lib/pkgconfig
191 export PKG_CONFIG_PATH=${TIZEN_SDK_DEV_PATH}/distrib/lib/pkgconfig:${PKG_CONFIG_PATH}
198 echo "##### QEMU configuring for emulator"
199 echo "##### QEMU configure append:" $CONFIGURE_APPEND
202 --audio-drv-list=alsa \
213 echo "##### QEMU configuring for emulator"
214 echo "##### QEMU configure append:" $CONFIGURE_APPEND
216 --extra-cflags=-Werror=implicit-function-declaration \
217 --extra-cflags=-Werror=implicit-int \
218 --extra-ldflags=-Wl,--large-address-aware \
220 --audio-drv-list=winwave \
229 echo "##### QEMU configuring for emulator"
230 echo "##### QEMU configure append:" $CONFIGURE_APPEND
232 --extra-cflags=-mmacosx-version-min=10.4 \
233 --audio-drv-list=coreaudio \