[Title] add dibs build script for MAC
authorKitae Kim <kt920.kim@samsung.com>
Thu, 26 Jul 2012 02:34:56 +0000 (11:34 +0900)
committerKitae Kim <kt920.kim@samsung.com>
Thu, 26 Jul 2012 02:34:56 +0000 (11:34 +0900)
[Type]
[Module] emulator / dibs
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

package/build.macos-64 [new file with mode: 0755]
package/build.ubuntu-32
package/pkginfo.manifest

diff --git a/package/build.macos-64 b/package/build.macos-64
new file mode 100755 (executable)
index 0000000..40856e0
--- /dev/null
@@ -0,0 +1,52 @@
+#!/bin/sh -xe
+# clean
+clean()
+{
+       prepare
+
+       cd $SRCDIR/tizen/
+       if test -e "Makefile"
+       then
+               ./emulator_configure.sh
+               make clean
+       fi
+       rm -rf $SRCDIR/*.zip
+       rm -rf $SRCDIR/*.tar.gz
+}
+
+# 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
+}
+
+# build
+build()
+{
+       cd $SRCDIR/tizen/
+#      ./emulator_configure.sh
+       make all_dibs
+}
+
+# install
+install()
+{
+       BIN_DIR=$SRCDIR/package/emulator-qemu-x86.package.${TARGET_OS}/data/tools
+       mkdir -p $BIN_DIR
+
+       cd $SRCDIR/tizen
+       make install_dibs
+       mv emulator $BIN_DIR
+}
+
+[ "$1" = "clean" ] && clean
+[ "$1" = "build" ] && build
+[ "$1" = "install" ] && install
+
+echo "success"
index 741a3fc..40856e0 100755 (executable)
@@ -3,7 +3,7 @@
 clean()
 {
        prepare
-       
+
        cd $SRCDIR/tizen/
        if test -e "Makefile"
        then
index cae8793..7745167 100644 (file)
@@ -1,29 +1,31 @@
-Package: emulator-qemu-x86
 Version: 1.3.6
+Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
+Source: emulator
+
+Package: emulator-qemu-x86
 OS: ubuntu-32
 Build-host-os: ubuntu-32
-Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
-Build-dependency: emulator-lib [ ubuntu-32]
+Build-dependency: emulator-lib [ ubuntu-32 ]
 Install-dependency: emulator-kernel-x86 [ ubuntu-32 ], vgabios [ ubuntu-32 ]
-Source: emulator
 Description: Tizen Emulator
 
 Package: emulator-qemu-x86
-Version: 1.3.6
 OS: ubuntu-64
 Build-host-os: ubuntu-64
-Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
-Build-dependency: emulator-lib [ ubuntu-64]
+Build-dependency: emulator-lib [ ubuntu-64 ]
 Install-dependency: emulator-kernel-x86 [ ubuntu-64 ], vgabios [ ubuntu-64 ]
-Source: emulator
 Description: Tizen Emulator
 
 Package: emulator-qemu-x86
-Version: 1.3.6
 OS: windows-32
 Build-host-os: windows-32
-Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
 Build-dependency: SDL-1.2.14 [ windows-32 ], apache-ant-1.8.3-bin [ windows-32 ], gtk-bundle_2.16.6 [ windows-32 ], directx-dev [ windows-32 ], emulator-lib [ windows-32 ] 
 Install-dependency: emulator-kernel-x86 [ windows-32 ], vgabios [ windows-32 ]
-Source: emulator
+Description: Tizen Emulator
+
+Package: emulator-qemu-x86
+OS: macos-64
+Build-host-os: macos-64
+Build-dependency: emulator-lib [ macos-64 ]
+Install-dependency: emulator-kernel-x86 [ macos-64 ], vgabios [ macos-64 ]
 Description: Tizen Emulator