Android support for mesh example, some fixes for other android projects (#97)

This commit is contained in:
saschawillems 2016-03-22 22:28:08 +01:00
parent 01c12ef327
commit 8ef51855eb
30 changed files with 175 additions and 13275 deletions

22
android/mesh/build.bat Normal file
View file

@ -0,0 +1,22 @@
cd jni
call ndk-build
if %ERRORLEVEL% EQU 0 (
echo ndk-build has failed, build cancelled
cd..
mkdir "assets\shaders\mesh"
xcopy "..\..\data\shaders\mesh\mesh.vert.spv" "assets\shaders\mesh" /Y
xcopy "..\..\data\shaders\mesh\mesh.frag.spv" "assets\shaders\mesh" /Y
mkdir "assets\models\voyager"
xcopy "..\..\data\models\voyager\voyager.ktx" "assets\models\voyager" /Y
xcopy "..\..\data\models\voyager\voyager.obj" "assets\models\voyager" /Y
mkdir "res\drawable"
xcopy "..\..\android\images\icon.png" "res\drawable" /Y
call ant debug -Dout.final.file=vulkanMesh.apk
) ELSE (
echo error : ndk-build failed with errors!
cd..
)