mirror of https://github.com/axmolengine/axmol.git
forget some files
This commit is contained in:
parent
0f7a15b1b3
commit
16b58b036c
|
@ -7,13 +7,13 @@
|
|||
# set environment paramters
|
||||
NDK_ROOT="/home/laschweinski/android/android-ndk-r5"
|
||||
ANDROID_SDK_ROOT="/home/laschweinski/android/android-sdk-linux_86"
|
||||
COCOS2DX_ROOT="/home/laschweinski/git/cocos2d-x"
|
||||
COCOS2DX_ROOT="/home/laschweinski/git/cocos2dx-ming/cocos2d-x"
|
||||
|
||||
# check if it was called by .bat file
|
||||
if [ $# -eq 5 ];then
|
||||
if [ $5 = "windows" ];then
|
||||
# called by .bat file
|
||||
sh $1/template/android/copy_files.sh $1 $2 $3 $4
|
||||
sh $1/template/linux/copy_files.sh $1 $2 $3 $4
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
|
@ -59,4 +59,4 @@ create_android_project(){
|
|||
create_android_project
|
||||
|
||||
# invoke template/android/copy_files.sh
|
||||
sh $COCOS2DX_ROOT/template/android/mycopy_files.sh $COCOS2DX_ROOT $PROJECT_NAME $NDK_ROOT $PACKAGE_PATH $PROREAL_DIR
|
||||
sh $COCOS2DX_ROOT/template/linux/mycopy_files.sh $COCOS2DX_ROOT $PROJECT_NAME $NDK_ROOT $PACKAGE_PATH $PROREAL_DIR
|
||||
|
|
43
post.sh
43
post.sh
|
@ -1,43 +0,0 @@
|
|||
#!/bin/bash
|
||||
echo $1 $2 $3
|
||||
pwd
|
||||
libDir=linux
|
||||
modeDir=Debug
|
||||
if echo $3|grep -E "Android"; then
|
||||
libDir=android
|
||||
fi
|
||||
if echo $3|grep -E "Release"; then
|
||||
modeDir=Release
|
||||
fi
|
||||
echo "mode: $modeDir"
|
||||
echo "mode: $libDir"
|
||||
|
||||
if [ ! -d "lib" ]; then
|
||||
mkdir "lib"
|
||||
fi
|
||||
|
||||
if [ ! -d "lib/linux" ]; then
|
||||
mkdir "lib/linux"
|
||||
fi
|
||||
|
||||
if [ ! -d "lib/android" ]; then
|
||||
mkdir "lib/android"
|
||||
fi
|
||||
|
||||
if [ ! -d "lib/linux/Debug" ]; then
|
||||
mkdir "lib/linux/Debug"
|
||||
fi
|
||||
|
||||
if [ ! -d "lib/linux/Release" ]; then
|
||||
mkdir "lib/linux/Release"
|
||||
fi
|
||||
|
||||
if [ ! -d "lib/android/Debug" ]; then
|
||||
mkdir "lib/android/Debug"
|
||||
fi
|
||||
|
||||
if [ ! -d "lib/android/Release" ]; then
|
||||
mkdir "lib/android/Release"
|
||||
fi
|
||||
|
||||
test -e ../$3/lib$1.so&& cp ../$3/lib$1.so ../../../lib/$libDir/$modeDir/lib$2.so
|
Loading…
Reference in New Issue