Added text overlay example to cmake and android build

This commit is contained in:
saschawillems 2016-05-07 15:59:08 +02:00
parent 8de82e8d0c
commit 4bef4ca134
8 changed files with 119 additions and 1 deletions

View file

@ -0,0 +1,24 @@
cd jni
call ndk-build
if %ERRORLEVEL% EQU 0 (
echo ndk-build has failed, build cancelled
cd..
mkdir "assets\shaders\textoverlay"
xcopy "..\..\data\shaders\textoverlay\*.spv" "assets\shaders\textoverlay" /Y
mkdir "assets\models"
xcopy "..\..\data\models\cube.dae" "assets\models" /Y
mkdir "assets\textures"
xcopy "..\..\data\textures\skysphere_bc3.ktx" "assets\textures" /Y
xcopy "..\..\data\textures\round_window_bc3.ktx" "assets\textures" /Y
mkdir "res\drawable"
xcopy "..\..\android\images\icon.png" "res\drawable" /Y
call ant debug -Dout.final.file=vulkanTextoverlay.apk
) ELSE (
echo error : ndk-build failed with errors!
cd..
)