Android support for Vulkan demo scene (#97)
This commit is contained in:
parent
6ee70824e5
commit
edf195efb6
9 changed files with 167 additions and 25 deletions
26
android/vulkanscene/build.bat
Normal file
26
android/vulkanscene/build.bat
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
cd jni
|
||||
call ndk-build
|
||||
if %ERRORLEVEL% EQU 0 (
|
||||
echo ndk-build has failed, build cancelled
|
||||
cd..
|
||||
|
||||
mkdir "assets\shaders\vulkanscene"
|
||||
xcopy "..\..\data\shaders\vulkanscene\*.spv" "assets\shaders\vulkanscene" /Y
|
||||
|
||||
mkdir "assets\textures"
|
||||
xcopy "..\..\data\textures\cubemap_vulkan.ktx" "assets\textures" /Y
|
||||
|
||||
mkdir "assets\models"
|
||||
xcopy "..\..\data\models\vulkanscenelogos.dae" "assets\models" /Y
|
||||
xcopy "..\..\data\models\vulkanscenebackground.dae" "assets\models" /Y
|
||||
xcopy "..\..\data\models\vulkanscenemodels.dae" "assets\models" /Y
|
||||
xcopy "..\..\data\models\cube.obj" "assets\models" /Y
|
||||
|
||||
mkdir "res\drawable"
|
||||
xcopy "..\..\android\images\icon.png" "res\drawable" /Y
|
||||
|
||||
call ant debug -Dout.final.file=vulkanScene.apk
|
||||
) ELSE (
|
||||
echo error : ndk-build failed with errors!
|
||||
cd..
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue