-#!/bin/sh -xe
+#!/bin/sh -x
# clean
+
clean()
{
+ prepare
+
cd $SRCDIR/tizen/
if test -e "Makefile"
then
+ ./qemu_configure.sh "$BUILD_CFLAGS $BUILD_LDFLAGS"
make clean
fi
rm -rf $SRCDIR/*.zip
rm -rf $SRCDIR/*.tar.gz
}
+#prepare
+prepare()
+{
+ if [ "$JAVA_HOME" = "" ]
+ then
+ echo "Make sure that you have installed JDK"
+ echo "and then set installed JDK/bin path into JAVA_HOME"
+ echo "as a system environment variable on your PC!!"
+ exit 1
+ fi
+
+ PYTHON_DIR=`env | grep PATH | grep Python`
+ if [ "$PYTHON_DIR" = "" ]
+ then
+ echo "Make sure that you have installed Python 2.x version"
+ echo "and then set installed Python/bin path into PATH system variable on your PC!"
+ exit 1
+ fi
+
+ PATH=$PATH:$ROOTDIR/bin:$ROOTDIR/apache-ant-1.8.3/bin
+ export PATH
+ BUILD_CFLAGS=--extra-cflags=-I$ROOTDIR/include
+ BUILD_LDFLAGS=--extra-ldflags=-L$ROOTDIR/lib
+}
+
# build
build()
{
cd $SRCDIR/tizen/
- ./qemu_configure.sh
+ ./qemu_configure.sh "$BUILD_CFLAGS $BUILD_LDFLAGS"
make
}
install()
{
BIN_DIR=$SRCDIR/package/emulator.package.windows/data
-# VTM_DIR=$BIN_DIR/Emulator/bin/emulator-manager.exe
EMUL_DIR=$BIN_DIR/Emulator/bin/emulator-x86.exe
mkdir -p $BIN_DIR
- cd $SRCDIR/tizen
- make install
+ cd $SRCDIR/tizen
+ make install
mv Emulator $BIN_DIR
-# editbin.exe /SUBSYSTEM:WINDOWS $VTM_DIR
editbin.exe /SUBSYSTEM:WINDOWS $EMUL_DIR
-# cp $SRCDIR/package/emulator.install.windows $BIN_DIR/../
-# cp $SRCDIR/package/emulator.remove.windows $BIN_DIR/../
}
[ "$1" = "clean" ] && clean
Package: emulator
-Version: 1.2.34
+Version: 1.2.43
OS: linux
Build-host-os: linux
Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
-Install-dependency: emulator-kernel [ linux ], emulator-manager [ linux ]
+Install-dependency: emulator-kernel [ linux ], emulator-manager [ linux ], emulator-dll [ linux ]
Source: emulator
Description: Tizen Emulator
Package: emulator
-Version: 1.2.34
+Version: 1.2.43
OS: windows
Build-host-os: windows
Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
+Build-dependency: SDL-1.2.14 [ windows ], SDL_gfx-2.0.22 [ windows ], SDL_image-1.2.10 [ windows ], jpeg-8b [ windows ], libpng-1.4.5 [ windows ], libxml2-2.7.8 [ windows ], apache-ant-1.8.3-bin [ windows ]
Install-dependency: emulator-kernel [ windows ], emulator-manager [ windows ], emulator-dll [ windows ]
Source: emulator
Description: Tizen Emulator