Added text overlay example to cmake and android build
This commit is contained in:
parent
8de82e8d0c
commit
4bef4ca134
8 changed files with 119 additions and 1 deletions
24
android/textoverlay/build.bat
Normal file
24
android/textoverlay/build.bat
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
cd jni
|
||||
call ndk-build
|
||||
if %ERRORLEVEL% EQU 0 (
|
||||
echo ndk-build has failed, build cancelled
|
||||
cd..
|
||||
|
||||
mkdir "assets\shaders\textoverlay"
|
||||
xcopy "..\..\data\shaders\textoverlay\*.spv" "assets\shaders\textoverlay" /Y
|
||||
|
||||
mkdir "assets\models"
|
||||
xcopy "..\..\data\models\cube.dae" "assets\models" /Y
|
||||
|
||||
mkdir "assets\textures"
|
||||
xcopy "..\..\data\textures\skysphere_bc3.ktx" "assets\textures" /Y
|
||||
xcopy "..\..\data\textures\round_window_bc3.ktx" "assets\textures" /Y
|
||||
|
||||
mkdir "res\drawable"
|
||||
xcopy "..\..\android\images\icon.png" "res\drawable" /Y
|
||||
|
||||
call ant debug -Dout.final.file=vulkanTextoverlay.apk
|
||||
) ELSE (
|
||||
echo error : ndk-build failed with errors!
|
||||
cd..
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue