Android makefiles, manifest and icon (#97)

This commit is contained in:
saschawillems 2016-03-20 16:27:32 +01:00
parent fed45eac20
commit 0ffc005c8f
4 changed files with 31 additions and 17 deletions

View file

@ -1,18 +1,22 @@
cd jni
call ndk-build
if %ERRORLEVEL% GEQ 1 (
if %ERRORLEVEL% EQU 0 (
echo ndk-build has failed, build cancelled
cd..
exit \b %errorlevel%
mkdir "assets\shaders"
xcopy "..\..\data\shaders\triangle.vert.spv" "assets\shaders" /Y
xcopy "..\..\data\shaders\triangle.frag.spv" "assets\shaders" /Y
mkdir "res\drawable"
xcopy "..\..\android\images\icon.png" "res\drawable" /Y
call ant debug -Dout.final.file=vulkanTriangle.apk
if "%1" == "-deploy" (
adb install -r vulkanTriangle.apk
)
) ELSE (
echo error : ndk-build failed with errors!
cd..
)
cd..
mkdir "assets\shaders"
xcopy "..\..\data\shaders\triangle.vert.spv" "assets\shaders" /Y
xcopy "..\..\data\shaders\triangle.frag.spv" "assets\shaders" /Y
call ant debug -Dout.final.file=vulkanTriangle.apk
if "%1" == "-deploy" (
adb install -r vulkanTriangle.apk
)