mirror of https://github.com/axmolengine/axmol.git
Android template's build_native.sh automatically copies new icons from your assets directory.
This commit is contained in:
parent
472c98b652
commit
8b6026f932
|
@ -50,6 +50,21 @@ do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# copy icons (if they exist)
|
||||||
|
file=$GAME_ANDROID_ROOT/assets/Icon-72.png
|
||||||
|
if [ -f "$file" ]; then
|
||||||
|
cp $file $GAME_ANDROID_ROOT/res/drawable-hdpi/icon.png
|
||||||
|
fi
|
||||||
|
file=$GAME_ANDROID_ROOT/assets/Icon-48.png
|
||||||
|
if [ -f "$file" ]; then
|
||||||
|
cp $file $GAME_ANDROID_ROOT/res/drawable-mdpi/icon.png
|
||||||
|
fi
|
||||||
|
file=$GAME_ANDROID_ROOT/assets/Icon-32.png
|
||||||
|
if [ -f "$file" ]; then
|
||||||
|
cp $file $GAME_ANDROID_ROOT/res/drawable-ldpi/icon.png
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [[ $buildexternalsfromsource ]]; then
|
if [[ $buildexternalsfromsource ]]; then
|
||||||
echo "Building external dependencies from source"
|
echo "Building external dependencies from source"
|
||||||
$NDK_ROOT/ndk-build -C $GAME_ANDROID_ROOT \
|
$NDK_ROOT/ndk-build -C $GAME_ANDROID_ROOT \
|
||||||
|
|
Loading…
Reference in New Issue