[vlc-commits] contribs: add boostrap code for Tizen

Ludovic Fauvet git at videolan.org
Fri Jul 17 17:34:11 CEST 2015


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Fri Jul 17 17:16:33 2015 +0200| [c10e7654f515edde48d3244de0e16e4f646f7205] | committer: Ludovic Fauvet

contribs: add boostrap code for Tizen

Unfortunately the Tizen toolchain uses standard linux target triplets
(like arm-linux-gnueabi or i386-linux-gnueabi) and thus cannot be easily
detected otherwise.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c10e7654f515edde48d3244de0e16e4f646f7205
---

 contrib/bootstrap |   23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/contrib/bootstrap b/contrib/bootstrap
index ced4fe0..6331190 100755
--- a/contrib/bootstrap
+++ b/contrib/bootstrap
@@ -225,6 +225,16 @@ check_android_sdk()
 	[ ${ANDROID_ABI} = "armeabi" -a -z "${NO_ARMV6}" ] && add_make_enabled "HAVE_ARMV6"
 }
 
+check_tizen_sdk()
+{
+	[ -z "${TIZEN_SDK}" ] && echo "You must set TIZEN_SDK environment variable" && exit 1
+	add_make "TIZEN_SDK := ${TIZEN_SDK}"
+	[ -z "${TIZEN_ABI}" ] && echo "You must set TIZEN_ABI environment variable" && exit 1
+	add_make "TIZEN_ABI := ${TIZEN_ABI}"
+	[ ${TIZEN_ABI} = "armv7l" ] && add_make_enabled "HAVE_NEON"
+	[ ${TIZEN_ABI} = "armv7l" ] && add_make_enabled "HAVE_ARMV7A"
+}
+
 test -z "$PREFIX" || add_make "PREFIX := $PREFIX"
 test -z "$BUILD_DISCS" || add_make_enabled "BUILD_DISCS"
 test -z "$BUILD_ENCODERS" || add_make_enabled "BUILD_ENCODERS"
@@ -279,6 +289,19 @@ case "${OS}" in
 		esac
 		;;
 	*linux*)
+		if [ "`${CC} -v 2>&1 | grep tizen`" ]; then
+			check_tizen_sdk
+			add_make_enabled "HAVE_TIZEN"
+			case "${HOST}" in
+				*arm*)
+				add_make "PLATFORM_SHORT_ARCH := arm"
+				;;
+				*i386*)
+				add_make "PLATFORM_SHORT_ARCH := x86"
+				;;
+			esac
+		fi
+
 		add_make_enabled "HAVE_LINUX"
 		;;
 	*mingw*)



More information about the vlc-commits mailing list