blob: 15271534c3f2e3045bfbd0db4b7dc72ca4e6745b (
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
|
# 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
TIZEN_SDK_DEV_PATH=${ROOTDIR}
PATH=${TIZEN_SDK_DEV_PATH}/bin:${PATH}
cd ${SRCDIR}/tizen
TIZEN_SDK_DEV_PATH=${TIZEN_SDK_DEV_PATH} ./emulator_configure.sh x86_64
make clean
PATH=${PATH} make all -j8
make install
if [ $? -eq 0 ]
then
echo "x86 build success"
else
echo "x86 build failure"
exit 1
fi
}
# install_common
install_common()
{
TIZEN_VERSIONS="4.0 3.0 2.4 2.3.2"
for VER in ${TIZEN_VERSIONS} ; do
# emulator
EMULATOR_COMMON_DIR=$SRCDIR/package/$VER-emulator-qemu-common.package.${TARGET_OS}/data/platforms/tizen-$VER/common
mkdir -p $EMULATOR_COMMON_DIR
# we have nothing for common now
EMULATOR_X86_DIR=$SRCDIR/package/$VER-emulator-qemu-x86.package.${TARGET_OS}/data/platforms/tizen-$VER/common
mkdir -p $EMULATOR_X86_DIR
cp -pPR $SRCDIR/tizen/emulator $EMULATOR_X86_DIR/emulator
# profile skins
MOBILE_SKIN_RESOURCE_DIR=$SRCDIR/package/mobile-$VER-emulator-qemu-skins.package.${TARGET_OS}/data/platforms/tizen-$VER/mobile/emulator-resources/skins
WEARABLE_SKIN_RESOURCE_DIR=$SRCDIR/package/wearable-$VER-emulator-qemu-skins.package.${TARGET_OS}/data/platforms/tizen-$VER/wearable/emulator-resources/skins
# Tizen 2.3.2 does not have the tv profile
if [ "$VER" != "2.3.2" ] ; then
TV_SKIN_RESOURCE_DIR=$SRCDIR/package/tv-$VER-emulator-qemu-skins.package.${TARGET_OS}/data/platforms/tizen-$VER/tv/emulator-resources/skins
fi
mkdir -p $MOBILE_SKIN_RESOURCE_DIR
mkdir -p $WEARABLE_SKIN_RESOURCE_DIR
if [ "$VER" != "2.3.2" ] ; then
mkdir -p $TV_SKIN_RESOURCE_DIR
fi
cp -pPR $SRCDIR/tizen/src/ui/resource/skins/mobile/* $MOBILE_SKIN_RESOURCE_DIR
cp -pPR $SRCDIR/tizen/src/ui/resource/skins/wearable/* $WEARABLE_SKIN_RESOURCE_DIR
if [ "$VER" != "2.3.2" ] ; then
cp -pPR $SRCDIR/tizen/src/ui/resource/skins/tv/* $TV_SKIN_RESOURCE_DIR
fi
# make install/remove script, depending on the version
ORIGIN_INSTALL_FILE=$SRCDIR/package/emulator-qemu-x86.install.$TARGET_OS_CATEGORY
ORIGIN_REMOVE_FILE=$SRCDIR/package/emulator-qemu-x86.remove.$TARGET_OS_CATEGORY
TARTGET_INSTALL_FILE=$SRCDIR/package/$VER-emulator-qemu-x86.install.$TARGET_OS_CATEGORY
TARTGET_REMOVE_FILE=$SRCDIR/package/$VER-emulator-qemu-x86.remove.$TARGET_OS_CATEGORY
if [ -e "$ORIGIN_INSTALL_FILE" ] ; then
cp -p "$ORIGIN_INSTALL_FILE" "$TARTGET_INSTALL_FILE"
# Replace existing version to inputted version.
# To apply some variables to 'sed' command,
# you must enclose expressions in double quotes("").
# -i'' option means that does not make backup file, it must have an extension in macOS.
sed -i'' -e "s/tizen-x.x/tizen-$VER/g" "$TARTGET_INSTALL_FILE"
fi
if [ -e "$ORIGIN_REMOVE_FILE" ] ; then
cp -p "$ORIGIN_REMOVE_FILE" "$TARTGET_REMOVE_FILE"
# Replace existing version to inputted version.
# Now it is not necessary. Uncomment the line below if necessary.
#sed -i'' -e "s/tizen-x.x/tizen-$VER/g" "$TARTGET_INSTALL_FILE"
fi
done
}
|