diff options
author | Lai Wei-Chih <Robert.Lai@mediatek.com> | 2013-08-08 12:09:31 +0800 |
---|---|---|
committer | Lai Wei-Chih <Robert.Lai@mediatek.com> | 2013-08-08 12:19:45 +0800 |
commit | 38885b14962a43c3542e0cb5f8d55a41f2c93337 (patch) | |
tree | d1d9f8d6d47e0c206712002b0b140df6f6acc4f7 | |
parent | d5da71a438ffedf9ee77e1823801e0d50bd230ab (diff) | |
download | ndk-38885b14962a43c3542e0cb5f8d55a41f2c93337.tar.gz |
Use python libraries that NDK provides instead of host system's.
Change-Id: Ia63ab248b91906c0c3b782faf92569f6e1fd3926
-rwxr-xr-x | build/tools/make-standalone-toolchain.sh | 2 |
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 } |