support for android 4.0

This commit is contained in:
minggo 2011-11-30 15:30:11 +08:00
parent 735726355c
commit 4607ba8029
3 changed files with 13 additions and 2 deletions

View File

@ -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

View File

@ -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"

View File

@ -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