blob: 6f091e74b9e1591506c190cd2a07f7a7249cc0a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
#!/bin/sh -xe
# clean
clean()
{
prepare
cd $SRCDIR/tizen
if test -e "Makefile"
then
./emulator_configure.sh x86 -e "$BUILD_CFLAGS $BUILD_LDFLAGS"
make distclean
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
PURIFIED_ROOTDIR=`TEMP=\`echo "${ROOTDIR}" | cut -c-2 | sed "s/[:/]//g" | awk {'print tolower ($_)'}\`; echo \`echo "${ROOTDIR}" | sed "s/^../\/${TEMP}/"\``
PATH=$PATH:$PURIFIED_ROOTDIR/bin:$PURIFIED_ROOTDIR/apache-ant_1.9.2/bin:$PURIFIED_ROOTDIR/SDL_1.2.15/bin:$PURIFIED_ROOTDIR/gtk-bundle_2.24.10/bin:$PURIFIED_ROOTDIR/libcurl-4_1.0.1/bin:$PURIFIED_ROOTDIR/pixman_0.30.0/bin
export PATH
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$ROOTDIR/libav/lib/pkgconfig:$ROOTDIR/SDL_1.2.15/lib/pkgconfig:$ROOTDIR/gtk-bundle_2.24.10/lib/pkgconfig:$ROOTDIR/libcurl-4_1.0.1/lib/pkgconfig:$ROOTDIR/pixman_0.30.0/lib/pkgconfig
BUILD_CFLAGS+=--extra-cflags="-I$ROOTDIR/SDL_1.2.15/include/SDL "
BUILD_CFLAGS+=--extra-cflags="-I$ROOTDIR/gtk-bundle_2.24.10/include "
BUILD_CFLAGS+=--extra-cflags="-I$ROOTDIR/libcurl-4_1.0.1/include "
BUILD_CFLAGS+=--extra-cflags="-I$ROOTDIR/pixman_0.30.0/include/pixman-1"
BUILD_LDFLAGS+=--extra-ldflags="-L$ROOTDIR/apache-ant_1.9.2/lib "
BUILD_LDFLAGS+=--extra-ldflags="-L$ROOTDIR/SDL_1.2.15/lib "
BUILD_LDFLAGS+=--extra-ldflags="-L$ROOTDIR/gtk-bundle_2.24.10/lib "
BUILD_LDFLAGS+=--extra-ldflags="-L$ROOTDIR/libcurl-4_1.0.1/lib "
BUILD_LDFLAGS+=--extra-ldflags="-L$ROOTDIR/pixman_0.30.0/lib"
}
# build
build()
{
prepare
cd $SRCDIR/tizen
./emulator_configure.sh x86 -e "$BUILD_CFLAGS $BUILD_LDFLAGS"
make all_dibs
if [ $? -eq 0 ]
then
echo "x86 build success"
else
echo "x86 build failure"
exit 1
fi
# make install_dibs
# make clean
#
# ./emulator_configure.sh arm -e "$BUILD_CFLAGS $BUILD_LDFLAGS"
# make all_dibs
# if [ $? -eq 0 ]
# then
# echo "arm build success"
# else
# echo "arm build failure"
# exit 1
# fi
# make install_dibs
}
# install
install()
{
prepare
X86_BIN_DIR=$SRCDIR/package/emulator-qemu-x86.package.${TARGET_OS}/data/tools
# ARM_BIN_DIR=$SRCDIR/package/emulator-qemu-arm.package.${TARGET_OS}/data/tools
COMMON_BIN_DIR=$SRCDIR/package/emulator-qemu-common.package.${TARGET_OS}/data/tools
MOBILE_3_0_SKIN_RESOURCE_DIR=$SRCDIR/package/mobile-3.0-emulator-qemu-skins.package.${TARGET_OS}/data/platforms/mobile-3.0/emulator-resources/skins/
mkdir -p $X86_BIN_DIR
# mkdir -p $ARM_BIN_DIR
mkdir -p $COMMON_BIN_DIR
mkdir -p $MOBILE_3_0_SKIN_RESOURCE_DIR
cd $SRCDIR/tizen
make install_dibs
mv x86 $X86_BIN_DIR/emulator
# mv x86 $ARM_BIN_DIR/emulator
mv common $COMMON_BIN_DIR/emulator
#profile skins
cp -pPR src/skin/client/skins/mobile-general-3btn $MOBILE_3_0_SKIN_RESOURCE_DIR/
cp -pPR src/skin/client/skins/mobile-480x800-3btn $MOBILE_3_0_SKIN_RESOURCE_DIR/
cp -pPR src/skin/client/skins/mobile-720x1280-3btn $MOBILE_3_0_SKIN_RESOURCE_DIR/
}
[ "$1" = "clean" ] && clean
[ "$1" = "build" ] && build
[ "$1" = "install" ] && install
echo "success"
|