summaryrefslogtreecommitdiff
path: root/package/build.macos-64
diff options
context:
space:
mode:
authorSeokYeon Hwang <syeon.hwang@samsung.com>2015-09-04 15:14:33 +0900
committerSangho Park <sangho.p@samsung.com>2015-09-08 16:29:33 +0900
commita4b3ebc10d03f16aed2a8ca9f7a6cb64fd4978dd (patch)
tree7a18e105ea067b5f88efdc1dc21a942c8c8cd201 /package/build.macos-64
parent394eab11f88eadca868cc34de581d34903c0e59d (diff)
downloadqemu-a4b3ebc10d03f16aed2a8ca9f7a6cb64fd4978dd.tar.gz
qemu-a4b3ebc10d03f16aed2a8ca9f7a6cb64fd4978dd.tar.bz2
qemu-a4b3ebc10d03f16aed2a8ca9f7a6cb64fd4978dd.zip
dibs: cleaned-up DIBS build scripts
Change-Id: Ia72722bcca12a9d3eb88d9e8f9a57e76f22c9372 Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
Diffstat (limited to 'package/build.macos-64')
-rwxr-xr-xpackage/build.macos-64119
1 files changed, 9 insertions, 110 deletions
diff --git a/package/build.macos-64 b/package/build.macos-64
index 546a38686b..b3e72fe053 100755
--- a/package/build.macos-64
+++ b/package/build.macos-64
@@ -1,19 +1,4 @@
#!/bin/bash -xe
-# clean
-clean()
-{
- prepare
-
- cd $SRCDIR/tizen
- if test -e "Makefile"
- then
- ./emulator_configure.sh x86 -e "$BUILD_CFLAGS $BUILD_LDFLAGS"
- make clean
- fi
- rm -rf $SRCDIR/*.zip
- rm -rf $SRCDIR/*.tar.gz
-}
-
# check build environment
prepare()
{
@@ -24,112 +9,26 @@ prepare()
echo "as a system environment variable on your PC!!"
exit 1
fi
-
- PATH=$PATH:$ROOTDIR/bin
- export PATH
-
- export PKG_CONFIG_PATH=$ROOTDIR/libav/lib/pkgconfig:$ROOTDIR/lib/pkgconfig:$PKG_CONFIG_PATH
-
- BUILD_CFLAGS="--extra-cflags=-I$ROOTDIR/include "
- BUILD_LDFLAGS="--extra-ldflags=-L$ROOTDIR/lib "
}
-modify_files(){
- LIBIDN_PC=$ROOTDIR/lib/pkgconfig/libidn.pc
- GLIB_PC=$ROOTDIR/lib/pkgconfig/glib-2.0.pc
- PIXMAN_PC=$ROOTDIR/lib/pkgconfig/pixman-1.pc
-
- #modify .pc files
- ROOT_TMP=`echo $ROOTDIR | sed 's,/,\\\\\\/,g'`
- sed "s/prefix=\/opt\/local/prefix="$ROOT_TMP"\/libidn/g" $LIBIDN_PC > tmpfile
- cp -f tmpfile "$LIBIDN_PC"
- rm -f tmpfile
-
- sed "s/prefix=\/opt\/local/prefix="$ROOT_TMP"\/glib2/g" $GLIB_PC > tmpfile
- cp -f tmpfile "$GLIB_PC"
- rm -f tmpfile
-
- sed "s/prefix=\/opt\/local/prefix="$ROOT_TMP"\/pixman/g" $PIXMAN_PC > tmpfile
- cp -f tmpfile "$PIXMAN_PC"
- rm -f tmpfile
-
- #modify Makefile.target
- sed "/check-gl: check_gl.o/a \\
- export PKG_CONFIG_PATH=$PKG_CONFIG_PATH
- " $SRCDIR/Makefile.target > tmpfile
-
- sed 's/export PKG_CONFIG_PATH/ export PKG_CONFIG_PATH/g' tmpfile > $SRCDIR/Makefile.target
- rm -f tmpfile
-
- #just in case
-# sed "1 i\\
-# export PKG_CONFIG_PATH=$PKG_CONFIG_PATH
-#
-# " $SRCDIR/Makefile.target > tmp
-# cp -f tmp $SRCDIR/Makefile.target
-# rm -f tmp
-# sed 's/export PKG_CONFIG_PATH/ export PKG_CONFIG_PATH/g' $SRCDIR/Makefile.target > tmp
-# cp -f tmp $SRCDIR/Makefile.target
-# rm -f tmp
+# clean
+clean()
+{
+ echo "nothing to do"
}
+
# build
build()
{
- prepare
-
- #modify_files
-
- cd $SRCDIR/tizen/
-
- make all_dibs -j4
- if [ $? -eq 0 ]
- then
- echo "build success"
- else
- echo "build failure"
- exit 1
- fi
-
-# make install_dibs
-# make clean
-#
-# ./emulator_configure.sh arm
-# make all_dibs
-# if [ $? -eq 0 ]
-# then
-# echo "arm build success"
-# else
-# echo "arm build failure"
-# exit 1
-# fi
-# make install_dibs
+ . $SRCDIR/package/build.common
+ build_common
}
# install
install()
{
- X86_BIN_DIR=$SRCDIR/package/2.4-emulator-qemu-x86.package.${TARGET_OS}/data/platforms/tizen-2.4/common
- COMMON_BIN_DIR=$SRCDIR/package/2.4-emulator-qemu-common.package.${TARGET_OS}/data/platforms/tizen-2.4/common
- MOBILE_2_4_SKIN_RESOURCE_DIR=$SRCDIR/package/mobile-2.4-emulator-qemu-skins.package.${TARGET_OS}/data/platforms/tizen-2.4/mobile/emulator-resources/skins
- WEARABLE_2_4_SKIN_RESOURCE_DIR=$SRCDIR/package/wearable-2.4-emulator-qemu-skins.package.${TARGET_OS}/data/platforms/tizen-2.4/wearable/emulator-resources/skins
- TV_2_4_SKIN_RESOURCE_DIR=$SRCDIR/package/tv-2.4-emulator-qemu-skins.package.${TARGET_OS}/data/platforms/tizen-2.4/tv/emulator-resources/skins
-
- mkdir -p $X86_BIN_DIR
- mkdir -p $COMMON_BIN_DIR
- mkdir -p $MOBILE_2_4_SKIN_RESOURCE_DIR
- mkdir -p $WEARABLE_2_4_SKIN_RESOURCE_DIR
- mkdir -p $TV_2_4_SKIN_RESOURCE_DIR
-
- cd $SRCDIR/tizen
- make install_dibs
-
- mv x86 $X86_BIN_DIR/emulator
- mv common $COMMON_BIN_DIR/emulator
-
- #profile skins
- mv skins/mobile/* $MOBILE_2_4_SKIN_RESOURCE_DIR
- mv skins/wearable/* $WEARABLE_2_4_SKIN_RESOURCE_DIR
- mv skins/tv/* $TV_2_4_SKIN_RESOURCE_DIR
+ . $SRCDIR/package/build.common
+ install_common
}
[ "$1" = "clean" ] && clean