# build_common
+prepare_common()
+{
+ 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
+}
+
build_common()
{
+ prepare_common
prepare
cd ${SRCDIR}/tizen
PKG_CONFIG_PATH=${PKG_CONFIG_PATH} ./emulator_configure.sh x86_64
make clean
- # needed for building java UI
- #export SWT_PATH=${ROOTDIR}/swt_4.3
+ # needed for building java UI
+ #export SWT_PATH=${ROOTDIR}/swt_4.3
PATH=${PATH} make all -j8
make install
# check build environment
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
-
if [ "${TARGET_OS}" = "windows-32" ] || [ "${TARGET_OS}" = "windows-64" ]
then
# for Windows target (cross compiling)
# check build environment
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
+ echo "nothing to do"
}
# clean
clean()
{
- echo "nothing to do"
+ echo "nothing to do"
}
# build
build()
{
- . $SRCDIR/package/build.common
- build_common
+ . $SRCDIR/package/build.common
+ build_common
}
# install
install()
{
- . $SRCDIR/package/build.common
- install_common
+ . $SRCDIR/package/build.common
+ install_common
}
[ "$1" = "clean" ] && clean
#!/bin/sh -xe
-#prepare
+# check build environment
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!"
+ echo "and then set installed Python/bin path into PATH system variable on your PC!"
exit 1
fi
- ROOTDIR=$MSYS_ROOTDIR
+ ROOTDIR=$MSYS_ROOTDIR
}
# clean
clean()
{
- echo "nothing to do"
+ echo "nothing to do"
}
# build
build()
{
- . $SRCDIR/package/build.common
- build_common
+ . $SRCDIR/package/build.common
+ build_common
}
# install
install()
{
- . $SRCDIR/package/build.common
- install_common
+ . $SRCDIR/package/build.common
+ install_common
}
[ "$1" = "clean" ] && clean