Added multi threading example to cmake and android build
This commit is contained in:
parent
980d3b7d35
commit
52ffbb59bb
9 changed files with 117 additions and 3 deletions
21
android/multithreading/build.bat
Normal file
21
android/multithreading/build.bat
Normal 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..
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue