Android makefiles, manifest and icon (#97)
This commit is contained in:
parent
fed45eac20
commit
0ffc005c8f
4 changed files with 31 additions and 17 deletions
|
|
@ -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
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue