mirror of https://github.com/axmolengine/axmol.git
support for android 4.0
This commit is contained in:
parent
735726355c
commit
4607ba8029
|
@ -29,7 +29,7 @@ namespace cocos2d {
|
|||
|
||||
const char* cocos2dVersion()
|
||||
{
|
||||
return "cocos2d v1.0.1";
|
||||
return "cocos2d-1.0.1-x-0.10.0";
|
||||
}
|
||||
|
||||
}//namespace cocos2d
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
echo 'cocos2d-x template installer'
|
||||
|
||||
COCOS2D_VER='cocos2d-1.0.1-x-0.9.1'
|
||||
COCOS2D_VER='cocos2d-1.0.1-x-0.10.0'
|
||||
BASE_TEMPLATE_DIR="/Library/Application Support/Developer/Shared/Xcode"
|
||||
BASE_TEMPLATE_USER_DIR="$HOME/Library/Application Support/Developer/Shared/Xcode"
|
||||
|
||||
|
|
|
@ -94,6 +94,16 @@ modify_layout(){
|
|||
rm -f $APP_DIR/android/res/layout/helloworld_demo.xml
|
||||
}
|
||||
|
||||
# android.bat of android 4.0 don't create res/drawable-hdpi res/drawable-ldpi and res/drawable-mdpi.
|
||||
# These work are done in ADT
|
||||
copy_icon(){
|
||||
if [ ! -d $APP_DIR/android/res/drawable-hdpi ]; then
|
||||
cp -r $HELLOWORLD_ROOT/android/res/drawable-hdpi $APP_DIR/android/res
|
||||
cp -r $HELLOWORLD_ROOT/android/res/drawable-ldpi $APP_DIR/android/res
|
||||
cp -r $HELLOWORLD_ROOT/android/res/drawable-mdpi $APP_DIR/android/res
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
move_files_into_android
|
||||
copy_cpp_h_from_helloworld
|
||||
|
@ -103,3 +113,4 @@ copy_build_native
|
|||
modify_androidmanifest
|
||||
modify_applicationdemo
|
||||
modify_layout
|
||||
copy_icon
|
||||
|
|
Loading…
Reference in New Issue