DIBS: build on DIBS in the same way on local
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 6 Nov 2015 02:33:32 +0000 (11:33 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Sat, 14 Nov 2015 04:22:08 +0000 (13:22 +0900)
Using TIZEN_SDK_DEV_PATH instead of overriding PKG_CONFIG_PATH.

Change-Id: Ib99c9e6149cbca93c278e84873b8a93de6f436e0
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
package/build.common
package/build.macos [new file with mode: 0755]
package/build.macos-64 [deleted file]

index a02fc98ab1374dfa47afab370a30eb93a86b07ac..9e21adc10beb1b4fa1019d6a19074579e253b14d 100644 (file)
@@ -3,12 +3,12 @@ build_common()
 {
        prepare
 
-       cd ${SRCDIR}/tizen
+       TIZEN_SDK_DEV_PATH=${ROOTDIR}
+       PATH=${TIZEN_SDK_DEV_PATH}/bin:${PATH}
 
-       PKG_CONFIG_PATH=${ROOTDIR}/lib/pkgconfig
-       PATH=${PATH}:${ROOTDIR}/bin
+       cd ${SRCDIR}/tizen
 
-       PKG_CONFIG_PATH=${PKG_CONFIG_PATH} ./emulator_configure.sh x86
+       TIZEN_SDK_DEV_PATH=${TIZEN_SDK_DEV_PATH} ./emulator_configure.sh x86
 
        make clean
        PATH=${PATH} make all_dibs -j8
diff --git a/package/build.macos b/package/build.macos
new file mode 100755 (executable)
index 0000000..b3e72fe
--- /dev/null
@@ -0,0 +1,38 @@
+#!/bin/bash -xe
+# 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
+}
+
+# clean
+clean()
+{
+    echo "nothing to do"
+}
+
+# build
+build()
+{
+    . $SRCDIR/package/build.common
+    build_common
+}
+
+# install
+install()
+{
+    . $SRCDIR/package/build.common
+    install_common
+}
+
+[ "$1" = "clean" ] && clean
+[ "$1" = "build" ] && build
+[ "$1" = "install" ] && install
+
+echo "success"
diff --git a/package/build.macos-64 b/package/build.macos-64
deleted file mode 100755 (executable)
index b3e72fe..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/bash -xe
-# 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
-}
-
-# clean
-clean()
-{
-    echo "nothing to do"
-}
-
-# build
-build()
-{
-    . $SRCDIR/package/build.common
-    build_common
-}
-
-# install
-install()
-{
-    . $SRCDIR/package/build.common
-    install_common
-}
-
-[ "$1" = "clean" ] && clean
-[ "$1" = "build" ] && build
-[ "$1" = "install" ] && install
-
-echo "success"