Added android support for distance field fonts example (#97) Fixes (#109)

This commit is contained in:
saschawillems 2016-03-25 21:53:09 +01:00
parent 83eb3de1c0
commit 8ab69b84e0
6 changed files with 214 additions and 59 deletions

View file

@ -0,0 +1,23 @@
cd jni
call ndk-build
if %ERRORLEVEL% EQU 0 (
echo ndk-build has failed, build cancelled
cd..
mkdir "assets\shaders\distancefieldfonts"
xcopy "..\..\data\shaders\distancefieldfonts\*.spv" "assets\shaders\distancefieldfonts" /Y
mkdir "assets\textures"
xcopy "..\..\data\textures\font_sdf_rgba.ktx" "assets\textures" /Y
xcopy "..\..\data\textures\font_bitmap_rgba.ktx" "assets\textures" /Y
xcopy "..\..\data\font.fnt" "assets" /Y
mkdir "res\drawable"
xcopy "..\..\android\images\icon.png" "res\drawable" /Y
call ant debug -Dout.final.file=vulkanDistancefieldfonts.apk
) ELSE (
echo error : ndk-build failed with errors!
cd..
)