mirror of https://github.com/axmolengine/axmol.git
fixed #919: linux template supports global variable
This commit is contained in:
parent
c2761cc84f
commit
afa8e48783
|
@ -1,36 +0,0 @@
|
|||
#!/bin/bash
|
||||
#arguments
|
||||
#1 is the config name
|
||||
#2 is the project name
|
||||
#3 is the cocos2dx sdk base folder
|
||||
|
||||
originRes="Resource"
|
||||
|
||||
if [ $# -lt 3 ]; then
|
||||
echo "usage sh postCompiled.sh confi-gname project-name cocos2dx-root"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
if [ ! -d "../../android/libs" ];then
|
||||
mkdir ../../android/libs
|
||||
fi
|
||||
|
||||
if [ ! -d "../../android/libs/armeabi" ];then
|
||||
mkdir ../../android/libs/armeabi
|
||||
fi
|
||||
#move game lib into android/libs/armeabi
|
||||
cp -f lib$2.so ../../android/libs/armeabi/
|
||||
|
||||
#move cocos2d lib into android/libs/armeabi
|
||||
cp -f $3/cocos2dx/proj.linux/$1/lib*.so ../../android/libs/armeabi/
|
||||
cp -f $3/CocosDenshion/proj.linux/$1/lib*.so ../../android/libs/armeabi/
|
||||
|
||||
#link the resource folder
|
||||
if [ -d ../../android/assets ];then
|
||||
exit
|
||||
fi
|
||||
|
||||
echo `pwd`/../../$originRes
|
||||
ln -s `pwd`/../../$originRes ../../android/assets
|
||||
|
|
@ -59,4 +59,4 @@ check_path
|
|||
create_android_project
|
||||
|
||||
# invoke template/android/copy_files.sh
|
||||
sh $`pwd`/template/linux/mycopy_files.sh `pwd` $PROJECT_NAME $NDK_ROOT_LOCAL $PACKAGE_PATH $PROREAL_DIR
|
||||
sh `pwd`/template/linux/mycopy_files.sh `pwd` $PROJECT_NAME $NDK_ROOT_LOCAL $PACKAGE_PATH $PROREAL_DIR
|
||||
|
|
|
@ -45,8 +45,6 @@ move_files_into_linux(){
|
|||
cp $file $APP_DIR/Linux
|
||||
fi
|
||||
done
|
||||
|
||||
cp $HELLOWORLD_ROOT/Linux/postCompiled.sh $APP_DIR/Linux
|
||||
}
|
||||
|
||||
#copy eclipse configures
|
||||
|
|
Loading…
Reference in New Issue