aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLai Wei-Chih <Robert.Lai@mediatek.com>2013-08-08 12:09:31 +0800
committerLai Wei-Chih <Robert.Lai@mediatek.com>2013-08-08 12:19:45 +0800
commit38885b14962a43c3542e0cb5f8d55a41f2c93337 (patch)
treed1d9f8d6d47e0c206712002b0b140df6f6acc4f7
parentd5da71a438ffedf9ee77e1823801e0d50bd230ab (diff)
downloadndk-38885b14962a43c3542e0cb5f8d55a41f2c93337.tar.gz
Use python libraries that NDK provides instead of host system's.
Change-Id: Ia63ab248b91906c0c3b782faf92569f6e1fd3926
-rwxr-xr-xbuild/tools/make-standalone-toolchain.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/tools/make-standalone-toolchain.sh b/build/tools/make-standalone-toolchain.sh
index 378502ead..926400578 100755
--- a/build/tools/make-standalone-toolchain.sh
+++ b/build/tools/make-standalone-toolchain.sh
@@ -265,6 +265,7 @@ dump_extra_compile_commands () {
echo ' shift'
echo 'done'
echo 'test -z "$output" && output=a.out'
+ echo 'export PYTHONPATH=`dirname $0`/../lib/python2.7/'
echo '`dirname $0`/python `dirname $0`/ndk-bc2native.py --sysroot=`dirname $0`/../sysroot --abi='$TARGET_ABI' --platform='$PLATFORM' --file $output $output'
else
echo 'rem Call bc2native if needed'
@@ -284,6 +285,7 @@ dump_extra_compile_commands () {
echo ' if not "%output%" == "" goto :check_done'
echo ' set output=a.out'
echo ':check_done'
+ echo 'set PYTHONPATH=%~dp0\\..\\lib\\python2.7\\'
echo '%~dp0\\python'$HOST_EXE' %~dp0\\ndk-bc2native.py --sysroot=%~dp0\\..\\sysroot --abi='$TARGET_ABI' --platform='$PLATFORM' --file %output% %output%'
fi
}