Permalink
Browse files

make build_native.sh accept ndk parameter

  • Loading branch information...
1 parent d2b68be commit aeec16500b3efc90f8106cdb72f35b68f5e5c0f4 @minggo minggo committed Mar 28, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 HelloLua/android/build_native.sh
  2. +2 −2 HelloWorld/android/build_native.sh
@@ -65,10 +65,10 @@ done
# build
if [[ $buildexternalsfromsource ]]; then
echo "Building external dependencies from source"
- $NDK_ROOT_LOCAL/ndk-build -C $GAME_ANDROID_ROOT \
+ $NDK_ROOT_LOCAL/ndk-build -C $GAME_ANDROID_ROOT $* \
NDK_MODULE_PATH=${COCOS2DX_ROOT_LOCAL}:${COCOS2DX_ROOT_LOCAL}/cocos2dx/platform/third_party/android/source
else
echo "Using prebuilt externals"
- $NDK_ROOT_LOCAL/ndk-build -C $GAME_ANDROID_ROOT \
+ $NDK_ROOT_LOCAL/ndk-build -C $GAME_ANDROID_ROOT $* \
NDK_MODULE_PATH=${COCOS2DX_ROOT_LOCAL}:${COCOS2DX_ROOT_LOCAL}/cocos2dx/platform/third_party/android/prebuilt
fi
@@ -62,10 +62,10 @@ done
if [[ $buildexternalsfromsource ]]; then
echo "Building external dependencies from source"
- $NDK_ROOT_LOCAL/ndk-build -C $HELLOWORLD_ROOT \
+ $NDK_ROOT_LOCAL/ndk-build -C $HELLOWORLD_ROOT $* \
NDK_MODULE_PATH=${COCOS2DX_ROOT_LOCAL}:${COCOS2DX_ROOT_LOCAL}/cocos2dx/platform/third_party/android/source
else
echo "Using prebuilt externals"
- $NDK_ROOT_LOCAL/ndk-build -C $HELLOWORLD_ROOT \
+ $NDK_ROOT_LOCAL/ndk-build -C $HELLOWORLD_ROOT $* \
NDK_MODULE_PATH=${COCOS2DX_ROOT_LOCAL}:${COCOS2DX_ROOT_LOCAL}/cocos2dx/platform/third_party/android/prebuilt
fi

0 comments on commit aeec165

Please sign in to comment.