Added multi threading example to cmake and android build

This commit is contained in:
saschawillems 2016-04-02 12:08:19 +02:00
parent 980d3b7d35
commit 52ffbb59bb
9 changed files with 117 additions and 3 deletions

View file

@ -0,0 +1,21 @@
cd jni
call ndk-build
if %ERRORLEVEL% EQU 0 (
echo ndk-build has failed, build cancelled
cd..
mkdir "assets\shaders\multithreading"
xcopy "..\..\data\shaders\multithreading\*.spv" "assets\shaders\multithreading" /Y
mkdir "assets\models"
xcopy "..\..\data\models\retroufo_red.dae" "assets\models" /Y
xcopy "..\..\data\models\sphere.obj" "assets\models" /Y
mkdir "res\drawable"
xcopy "..\..\android\images\icon.png" "res\drawable" /Y
call ant debug -Dout.final.file=vulkanMultithreading.apk
) ELSE (
echo error : ndk-build failed with errors!
cd..
)