Android makefiles for triangle example (wip) (#97)
This commit is contained in:
parent
2ac9be7225
commit
92cdb2060e
5 changed files with 100 additions and 0 deletions
18
triangle/android/build.bat
Normal file
18
triangle/android/build.bat
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
cd jni
|
||||
call ndk-build
|
||||
if %ERRORLEVEL% GEQ 1 (
|
||||
echo ndk-build has failed, build cancelled
|
||||
cd..
|
||||
exit \b %errorlevel%
|
||||
)
|
||||
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