Android build files for texture mip map generation example

This commit is contained in:
saschawillems 2016-08-15 16:49:40 +02:00
parent dad0a4d661
commit b4ee6e31d9
7 changed files with 118 additions and 1 deletions

View file

@ -0,0 +1,25 @@
cd jni
call ndk-build
if %ERRORLEVEL% EQU 0 (
cd..
mkdir "assets\shaders\base"
xcopy "..\..\data\shaders\base\*.spv" "assets\shaders\base" /Y
mkdir "assets\shaders\texturemipmapgen"
xcopy "..\..\data\shaders\texturemipmapgen\*.spv" "assets\shaders\texturemipmapgen" /Y
mkdir "assets\textures"
xcopy "..\..\data\textures\checkerboard_nomips_rgba.ktx" "assets\textures" /Y
mkdir "assets\models"
xcopy "..\..\data\models\tunnel.dae" "assets\models" /Y
mkdir "res\drawable"
xcopy "..\..\android\images\icon.png" "res\drawable" /Y
call ant debug -Dout.final.file=vulkanTexturemipmapgen.apk
) ELSE (
echo error : ndk-build failed with errors!
cd..
)