Android build files [skip ci]
This commit is contained in:
parent
5f5f0994bb
commit
f1bf03a440
30 changed files with 457 additions and 251 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
android:label="Bloom"
|
android:label="Bloom"
|
||||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
|
android:screenOrientation="landscape"
|
||||||
android:configChanges="orientation|screenSize|keyboardHidden">
|
android:configChanges="orientation|screenSize|keyboardHidden">
|
||||||
<meta-data android:name="android.app.lib_name" android:value="vulkanBloom" />
|
<meta-data android:name="android.app.lib_name" android:value="vulkanBloom" />
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
cd jni
|
|
||||||
call ndk-build
|
|
||||||
if %ERRORLEVEL% EQU 0 (
|
|
||||||
echo ndk-build has failed, build cancelled
|
|
||||||
cd..
|
|
||||||
|
|
||||||
mkdir "assets\shaders\base"
|
|
||||||
xcopy "..\..\data\shaders\base\*.spv" "assets\shaders\base" /Y
|
|
||||||
|
|
||||||
|
|
||||||
mkdir "assets\shaders\bloom"
|
|
||||||
xcopy "..\..\data\shaders\bloom\*.spv" "assets\shaders\bloom" /Y
|
|
||||||
|
|
||||||
mkdir "assets\textures"
|
|
||||||
xcopy "..\..\data\textures\cubemap_space.ktx" "assets\textures" /Y
|
|
||||||
|
|
||||||
mkdir "assets\models"
|
|
||||||
xcopy "..\..\data\models\retroufo.dae" "assets\models" /Y
|
|
||||||
xcopy "..\..\data\models\retroufo_glow.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=vulkanBloom.apk
|
|
||||||
) ELSE (
|
|
||||||
echo error : ndk-build failed with errors!
|
|
||||||
cd..
|
|
||||||
)
|
|
||||||
47
android/bloom/build.py
Normal file
47
android/bloom/build.py
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import glob
|
||||||
|
|
||||||
|
APK_NAME = "vulkanBloom"
|
||||||
|
SHADER_DIR = "bloom"
|
||||||
|
ASSETS_MODELS = ["retroufo.dae", "retroufo_glow.dae", "cube.obj"]
|
||||||
|
ASSETS_TEXTURES = ["cubemap_space.ktx"]
|
||||||
|
|
||||||
|
if subprocess.call("ndk-build", shell=True) == 0:
|
||||||
|
print("Build successful")
|
||||||
|
|
||||||
|
# Assets
|
||||||
|
os.makedirs("./assets/shaders/base", exist_ok=True)
|
||||||
|
os.makedirs("./assets/shaders/%s" % SHADER_DIR, exist_ok=True)
|
||||||
|
os.makedirs("./assets/textures", exist_ok=True)
|
||||||
|
os.makedirs("./assets/models", exist_ok=True)
|
||||||
|
os.makedirs("./res/drawable", exist_ok=True)
|
||||||
|
|
||||||
|
# Shaders
|
||||||
|
# Base
|
||||||
|
for file in glob.glob("../../data/shaders/base/*.spv"):
|
||||||
|
shutil.copy(file, "./assets/shaders/base")
|
||||||
|
# Sample
|
||||||
|
for file in glob.glob("../../data/shaders/%s/*.spv" %SHADER_DIR):
|
||||||
|
shutil.copy(file, "./assets/shaders/%s" % SHADER_DIR)
|
||||||
|
# Textures
|
||||||
|
for file in ASSETS_TEXTURES:
|
||||||
|
shutil.copy("../../data/textures/%s" % file, "./assets/textures")
|
||||||
|
# Models
|
||||||
|
for file in ASSETS_MODELS:
|
||||||
|
shutil.copy("../../data/models/%s" % file, "./assets/models")
|
||||||
|
|
||||||
|
# Icon
|
||||||
|
shutil.copy("../../android/images/icon.png", "./res/drawable")
|
||||||
|
|
||||||
|
if subprocess.call("ant debug -Dout.final.file=%s.apk" % APK_NAME, shell=True) == 0:
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
if sys.argv[1] == "-deploy":
|
||||||
|
if subprocess.call("adb install -r %s.apk" % APK_NAME, shell=True) != 0:
|
||||||
|
print("Could not deploy to device!")
|
||||||
|
else:
|
||||||
|
print("Error during build process!")
|
||||||
|
else:
|
||||||
|
print("Error building project!")
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
android:label="Debug marker"
|
android:label="Debug marker"
|
||||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
|
android:screenOrientation="landscape"
|
||||||
android:configChanges="orientation|screenSize|keyboardHidden">
|
android:configChanges="orientation|screenSize|keyboardHidden">
|
||||||
<meta-data android:name="android.app.lib_name" android:value="vulkanDebugmarker" />
|
<meta-data android:name="android.app.lib_name" android:value="vulkanDebugmarker" />
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
cd jni
|
|
||||||
call ndk-build
|
|
||||||
if %ERRORLEVEL% EQU 0 (
|
|
||||||
echo ndk-build has failed, build cancelled
|
|
||||||
cd..
|
|
||||||
|
|
||||||
mkdir "assets\shaders\base"
|
|
||||||
xcopy "..\..\data\shaders\base\*.spv" "assets\shaders\base" /Y
|
|
||||||
|
|
||||||
mkdir "assets\shaders\debugmarker"
|
|
||||||
xcopy "..\..\data\shaders\debugmarker\*.spv" "assets\shaders\debugmarker" /Y
|
|
||||||
|
|
||||||
mkdir "assets\models"
|
|
||||||
xcopy "..\..\data\models\treasure_smooth.dae" "assets\models" /Y
|
|
||||||
xcopy "..\..\data\models\treasure_glow.dae" "assets\models" /Y
|
|
||||||
|
|
||||||
mkdir "res\drawable"
|
|
||||||
xcopy "..\..\android\images\icon.png" "res\drawable" /Y
|
|
||||||
|
|
||||||
call ant debug -Dout.final.file=vulkanDebugmarker.apk
|
|
||||||
) ELSE (
|
|
||||||
echo error : ndk-build failed with errors!
|
|
||||||
cd..
|
|
||||||
)
|
|
||||||
42
android/debugmarker/build.py
Normal file
42
android/debugmarker/build.py
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import glob
|
||||||
|
|
||||||
|
APK_NAME = "vulkanDebugmarker"
|
||||||
|
SHADER_DIR = "debugmarker"
|
||||||
|
ASSETS_MODELS = ["treasure_smooth.dae", "treasure_glow.dae"]
|
||||||
|
|
||||||
|
if subprocess.call("ndk-build", shell=True) == 0:
|
||||||
|
print("Build successful")
|
||||||
|
|
||||||
|
# Assets
|
||||||
|
os.makedirs("./assets/shaders/base", exist_ok=True)
|
||||||
|
os.makedirs("./assets/shaders/%s" % SHADER_DIR, exist_ok=True)
|
||||||
|
os.makedirs("./assets/models", exist_ok=True)
|
||||||
|
os.makedirs("./res/drawable", exist_ok=True)
|
||||||
|
|
||||||
|
# Shaders
|
||||||
|
# Base
|
||||||
|
for file in glob.glob("../../data/shaders/base/*.spv"):
|
||||||
|
shutil.copy(file, "./assets/shaders/base")
|
||||||
|
# Sample
|
||||||
|
for file in glob.glob("../../data/shaders/%s/*.spv" %SHADER_DIR):
|
||||||
|
shutil.copy(file, "./assets/shaders/%s" % SHADER_DIR)
|
||||||
|
# Models
|
||||||
|
for file in ASSETS_MODELS:
|
||||||
|
shutil.copy("../../data/models/%s" % file, "./assets/models")
|
||||||
|
|
||||||
|
# Icon
|
||||||
|
shutil.copy("../../android/images/icon.png", "./res/drawable")
|
||||||
|
|
||||||
|
if subprocess.call("ant debug -Dout.final.file=%s.apk" % APK_NAME, shell=True) == 0:
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
if sys.argv[1] == "-deploy":
|
||||||
|
if subprocess.call("adb install -r %s.apk" % APK_NAME, shell=True) != 0:
|
||||||
|
print("Could not deploy to device!")
|
||||||
|
else:
|
||||||
|
print("Error during build process!")
|
||||||
|
else:
|
||||||
|
print("Error building project!")
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
android:label="Distance Field Fonts"
|
android:label="Distance Field Fonts"
|
||||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
|
android:screenOrientation="landscape"
|
||||||
android:configChanges="orientation|screenSize|keyboardHidden">
|
android:configChanges="orientation|screenSize|keyboardHidden">
|
||||||
<meta-data android:name="android.app.lib_name" android:value="vulkanDistancefieldfonts" />
|
<meta-data android:name="android.app.lib_name" android:value="vulkanDistancefieldfonts" />
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
cd jni
|
|
||||||
call ndk-build
|
|
||||||
if %ERRORLEVEL% EQU 0 (
|
|
||||||
echo ndk-build has failed, build cancelled
|
|
||||||
cd..
|
|
||||||
|
|
||||||
mkdir "assets\shaders\base"
|
|
||||||
xcopy "..\..\data\shaders\base\*.spv" "assets\shaders\base" /Y
|
|
||||||
|
|
||||||
|
|
||||||
mkdir "assets\shaders\distancefieldfonts"
|
|
||||||
xcopy "..\..\data\shaders\distancefieldfonts\*.spv" "assets\shaders\distancefieldfonts" /Y
|
|
||||||
|
|
||||||
mkdir "assets\textures"
|
|
||||||
xcopy "..\..\data\textures\font_sdf_rgba.ktx" "assets\textures" /Y
|
|
||||||
xcopy "..\..\data\textures\font_bitmap_rgba.ktx" "assets\textures" /Y
|
|
||||||
|
|
||||||
xcopy "..\..\data\font.fnt" "assets" /Y
|
|
||||||
|
|
||||||
mkdir "res\drawable"
|
|
||||||
xcopy "..\..\android\images\icon.png" "res\drawable" /Y
|
|
||||||
|
|
||||||
call ant debug -Dout.final.file=vulkanDistancefieldfonts.apk
|
|
||||||
) ELSE (
|
|
||||||
echo error : ndk-build failed with errors!
|
|
||||||
cd..
|
|
||||||
)
|
|
||||||
44
android/distancefieldfonts/build.py
Normal file
44
android/distancefieldfonts/build.py
Normal file
|
|
@ -0,0 +1,44 @@
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import glob
|
||||||
|
|
||||||
|
APK_NAME = "vulkanDistancefieldfonts"
|
||||||
|
SHADER_DIR = "distancefieldfonts"
|
||||||
|
ASSETS_TEXTURES = ["font_sdf_rgba.ktx", "font_bitmap_rgba.ktx"]
|
||||||
|
|
||||||
|
if subprocess.call("ndk-build", shell=True) == 0:
|
||||||
|
print("Build successful")
|
||||||
|
|
||||||
|
# Assets
|
||||||
|
os.makedirs("./assets/shaders/base", exist_ok=True)
|
||||||
|
os.makedirs("./assets/shaders/%s" % SHADER_DIR, exist_ok=True)
|
||||||
|
os.makedirs("./assets/textures", exist_ok=True)
|
||||||
|
os.makedirs("./res/drawable", exist_ok=True)
|
||||||
|
|
||||||
|
# Shaders
|
||||||
|
# Base
|
||||||
|
for file in glob.glob("../../data/shaders/base/*.spv"):
|
||||||
|
shutil.copy(file, "./assets/shaders/base")
|
||||||
|
# Sample
|
||||||
|
for file in glob.glob("../../data/shaders/%s/*.spv" %SHADER_DIR):
|
||||||
|
shutil.copy(file, "./assets/shaders/%s" % SHADER_DIR)
|
||||||
|
# Textures
|
||||||
|
for file in ASSETS_TEXTURES:
|
||||||
|
shutil.copy("../../data/textures/%s" % file, "./assets/textures")
|
||||||
|
# Font file
|
||||||
|
shutil.copy("../../data/font.fnt", "./assets")
|
||||||
|
|
||||||
|
# Icon
|
||||||
|
shutil.copy("../../android/images/icon.png", "./res/drawable")
|
||||||
|
|
||||||
|
if subprocess.call("ant debug -Dout.final.file=%s.apk" % APK_NAME, shell=True) == 0:
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
if sys.argv[1] == "-deploy":
|
||||||
|
if subprocess.call("adb install -r %s.apk" % APK_NAME, shell=True) != 0:
|
||||||
|
print("Could not deploy to device!")
|
||||||
|
else:
|
||||||
|
print("Error during build process!")
|
||||||
|
else:
|
||||||
|
print("Error building project!")
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
android:label="Geometry shader"
|
android:label="Geometry shader"
|
||||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
|
android:screenOrientation="landscape"
|
||||||
android:configChanges="orientation|screenSize|keyboardHidden">
|
android:configChanges="orientation|screenSize|keyboardHidden">
|
||||||
<meta-data android:name="android.app.lib_name" android:value="vulkanGeometryshader" />
|
<meta-data android:name="android.app.lib_name" android:value="vulkanGeometryshader" />
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
cd jni
|
|
||||||
call ndk-build
|
|
||||||
if %ERRORLEVEL% EQU 0 (
|
|
||||||
echo ndk-build has failed, build cancelled
|
|
||||||
cd..
|
|
||||||
|
|
||||||
mkdir "assets\shaders\base"
|
|
||||||
xcopy "..\..\data\shaders\base\*.spv" "assets\shaders\base" /Y
|
|
||||||
|
|
||||||
|
|
||||||
mkdir "assets\shaders\geometryshader"
|
|
||||||
xcopy "..\..\data\shaders\geometryshader\*.spv" "assets\shaders\geometryshader" /Y
|
|
||||||
|
|
||||||
mkdir "assets\models"
|
|
||||||
xcopy "..\..\data\models\suzanne.obj" "assets\models" /Y
|
|
||||||
|
|
||||||
mkdir "res\drawable"
|
|
||||||
xcopy "..\..\android\images\icon.png" "res\drawable" /Y
|
|
||||||
|
|
||||||
call ant debug -Dout.final.file=vulkanGeometryshader.apk
|
|
||||||
) ELSE (
|
|
||||||
echo error : ndk-build failed with errors!
|
|
||||||
cd..
|
|
||||||
)
|
|
||||||
42
android/geometryshader/build.py
Normal file
42
android/geometryshader/build.py
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import glob
|
||||||
|
|
||||||
|
APK_NAME = "vulkanGeometryshader"
|
||||||
|
SHADER_DIR = "geometryshader"
|
||||||
|
ASSETS_MODELS = ["suzanne.obj"]
|
||||||
|
|
||||||
|
if subprocess.call("ndk-build", shell=True) == 0:
|
||||||
|
print("Build successful")
|
||||||
|
|
||||||
|
# Assets
|
||||||
|
os.makedirs("./assets/shaders/base", exist_ok=True)
|
||||||
|
os.makedirs("./assets/shaders/%s" % SHADER_DIR, exist_ok=True)
|
||||||
|
os.makedirs("./assets/models", exist_ok=True)
|
||||||
|
os.makedirs("./res/drawable", exist_ok=True)
|
||||||
|
|
||||||
|
# Shaders
|
||||||
|
# Base
|
||||||
|
for file in glob.glob("../../data/shaders/base/*.spv"):
|
||||||
|
shutil.copy(file, "./assets/shaders/base")
|
||||||
|
# Sample
|
||||||
|
for file in glob.glob("../../data/shaders/%s/*.spv" %SHADER_DIR):
|
||||||
|
shutil.copy(file, "./assets/shaders/%s" % SHADER_DIR)
|
||||||
|
# Models
|
||||||
|
for file in ASSETS_MODELS:
|
||||||
|
shutil.copy("../../data/models/%s" % file, "./assets/models")
|
||||||
|
|
||||||
|
# Icon
|
||||||
|
shutil.copy("../../android/images/icon.png", "./res/drawable")
|
||||||
|
|
||||||
|
if subprocess.call("ant debug -Dout.final.file=%s.apk" % APK_NAME, shell=True) == 0:
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
if sys.argv[1] == "-deploy":
|
||||||
|
if subprocess.call("adb install -r %s.apk" % APK_NAME, shell=True) != 0:
|
||||||
|
print("Could not deploy to device!")
|
||||||
|
else:
|
||||||
|
print("Error during build process!")
|
||||||
|
else:
|
||||||
|
print("Error building project!")
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
android:label="Radial Blur"
|
android:label="Radial Blur"
|
||||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
|
android:screenOrientation="landscape"
|
||||||
android:configChanges="orientation|screenSize|keyboardHidden">
|
android:configChanges="orientation|screenSize|keyboardHidden">
|
||||||
<meta-data android:name="android.app.lib_name" android:value="vulkanRadialblur" />
|
<meta-data android:name="android.app.lib_name" android:value="vulkanRadialblur" />
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
cd jni
|
|
||||||
call ndk-build
|
|
||||||
if %ERRORLEVEL% EQU 0 (
|
|
||||||
echo ndk-build has failed, build cancelled
|
|
||||||
cd..
|
|
||||||
|
|
||||||
mkdir "assets\shaders\base"
|
|
||||||
xcopy "..\..\data\shaders\base\*.spv" "assets\shaders\base" /Y
|
|
||||||
|
|
||||||
mkdir "assets\shaders\radialblur"
|
|
||||||
xcopy "..\..\data\shaders\radialblur\*.spv" "assets\shaders\radialblur" /Y
|
|
||||||
|
|
||||||
mkdir "assets\models"
|
|
||||||
xcopy "..\..\data\models\glowsphere.dae" "assets\models" /Y
|
|
||||||
|
|
||||||
mkdir "assets\textures"
|
|
||||||
xcopy "..\..\data\textures\particle_gradient_rgba.ktx" "assets\textures" /Y
|
|
||||||
|
|
||||||
mkdir "res\drawable"
|
|
||||||
xcopy "..\..\android\images\icon.png" "res\drawable" /Y
|
|
||||||
|
|
||||||
call ant debug -Dout.final.file=vulkanRadialblur.apk
|
|
||||||
) ELSE (
|
|
||||||
echo error : ndk-build failed with errors!
|
|
||||||
cd..
|
|
||||||
)
|
|
||||||
47
android/radialblur/build.py
Normal file
47
android/radialblur/build.py
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import glob
|
||||||
|
|
||||||
|
APK_NAME = "vulkanRadialblur"
|
||||||
|
SHADER_DIR = "radialblur"
|
||||||
|
ASSETS_MODELS = ["glowsphere.dae"]
|
||||||
|
ASSETS_TEXTURES = ["particle_gradient_rgba.ktx"]
|
||||||
|
|
||||||
|
if subprocess.call("ndk-build", shell=True) == 0:
|
||||||
|
print("Build successful")
|
||||||
|
|
||||||
|
# Assets
|
||||||
|
os.makedirs("./assets/shaders/base", exist_ok=True)
|
||||||
|
os.makedirs("./assets/shaders/%s" % SHADER_DIR, exist_ok=True)
|
||||||
|
os.makedirs("./assets/textures", exist_ok=True)
|
||||||
|
os.makedirs("./assets/models", exist_ok=True)
|
||||||
|
os.makedirs("./res/drawable", exist_ok=True)
|
||||||
|
|
||||||
|
# Shaders
|
||||||
|
# Base
|
||||||
|
for file in glob.glob("../../data/shaders/base/*.spv"):
|
||||||
|
shutil.copy(file, "./assets/shaders/base")
|
||||||
|
# Sample
|
||||||
|
for file in glob.glob("../../data/shaders/%s/*.spv" %SHADER_DIR):
|
||||||
|
shutil.copy(file, "./assets/shaders/%s" % SHADER_DIR)
|
||||||
|
# Textures
|
||||||
|
for file in ASSETS_TEXTURES:
|
||||||
|
shutil.copy("../../data/textures/%s" % file, "./assets/textures")
|
||||||
|
# Models
|
||||||
|
for file in ASSETS_MODELS:
|
||||||
|
shutil.copy("../../data/models/%s" % file, "./assets/models")
|
||||||
|
|
||||||
|
# Icon
|
||||||
|
shutil.copy("../../android/images/icon.png", "./res/drawable")
|
||||||
|
|
||||||
|
if subprocess.call("ant debug -Dout.final.file=%s.apk" % APK_NAME, shell=True) == 0:
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
if sys.argv[1] == "-deploy":
|
||||||
|
if subprocess.call("adb install -r %s.apk" % APK_NAME, shell=True) != 0:
|
||||||
|
print("Could not deploy to device!")
|
||||||
|
else:
|
||||||
|
print("Error during build process!")
|
||||||
|
else:
|
||||||
|
print("Error building project!")
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
android:label="Shadow mapping"
|
android:label="Shadow mapping"
|
||||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
android:screenOrientation="landscape"
|
android:screenOrientation="landscape"
|
||||||
android:configChanges="orientation|screenSize|keyboardHidden">
|
android:configChanges="orientation|screenSize|keyboardHidden">
|
||||||
<meta-data android:name="android.app.lib_name" android:value="vulkanShadowmapping" />
|
<meta-data android:name="android.app.lib_name" android:value="vulkanShadowmapping" />
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
cd jni
|
|
||||||
call ndk-build
|
|
||||||
if %ERRORLEVEL% EQU 0 (
|
|
||||||
echo ndk-build has failed, build cancelled
|
|
||||||
cd..
|
|
||||||
|
|
||||||
mkdir "assets\shaders\base"
|
|
||||||
xcopy "..\..\data\shaders\base\*.spv" "assets\shaders\base" /Y
|
|
||||||
|
|
||||||
|
|
||||||
mkdir "assets\shaders\shadowmapping"
|
|
||||||
xcopy "..\..\data\shaders\shadowmapping\*.spv" "assets\shaders\shadowmapping" /Y
|
|
||||||
|
|
||||||
mkdir "assets\models"
|
|
||||||
xcopy "..\..\data\models\vulkanscene_shadow.dae" "assets\models" /Y
|
|
||||||
|
|
||||||
mkdir "res\drawable"
|
|
||||||
xcopy "..\..\android\images\icon.png" "res\drawable" /Y
|
|
||||||
|
|
||||||
call ant debug -Dout.final.file=vulkanShadowmapping.apk
|
|
||||||
) ELSE (
|
|
||||||
echo error : ndk-build failed with errors!
|
|
||||||
cd..
|
|
||||||
)
|
|
||||||
42
android/shadowmapping/build.py
Normal file
42
android/shadowmapping/build.py
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import glob
|
||||||
|
|
||||||
|
APK_NAME = "vulkanShadowmapping"
|
||||||
|
SHADER_DIR = "shadowmapping"
|
||||||
|
ASSETS_MODELS = ["vulkanscene_shadow.dae"]
|
||||||
|
|
||||||
|
if subprocess.call("ndk-build", shell=True) == 0:
|
||||||
|
print("Build successful")
|
||||||
|
|
||||||
|
# Assets
|
||||||
|
os.makedirs("./assets/shaders/base", exist_ok=True)
|
||||||
|
os.makedirs("./assets/shaders/%s" % SHADER_DIR, exist_ok=True)
|
||||||
|
os.makedirs("./assets/models", exist_ok=True)
|
||||||
|
os.makedirs("./res/drawable", exist_ok=True)
|
||||||
|
|
||||||
|
# Shaders
|
||||||
|
# Base
|
||||||
|
for file in glob.glob("../../data/shaders/base/*.spv"):
|
||||||
|
shutil.copy(file, "./assets/shaders/base")
|
||||||
|
# Sample
|
||||||
|
for file in glob.glob("../../data/shaders/%s/*.spv" %SHADER_DIR):
|
||||||
|
shutil.copy(file, "./assets/shaders/%s" % SHADER_DIR)
|
||||||
|
# Models
|
||||||
|
for file in ASSETS_MODELS:
|
||||||
|
shutil.copy("../../data/models/%s" % file, "./assets/models")
|
||||||
|
|
||||||
|
# Icon
|
||||||
|
shutil.copy("../../android/images/icon.png", "./res/drawable")
|
||||||
|
|
||||||
|
if subprocess.call("ant debug -Dout.final.file=%s.apk" % APK_NAME, shell=True) == 0:
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
if sys.argv[1] == "-deploy":
|
||||||
|
if subprocess.call("adb install -r %s.apk" % APK_NAME, shell=True) != 0:
|
||||||
|
print("Could not deploy to device!")
|
||||||
|
else:
|
||||||
|
print("Error during build process!")
|
||||||
|
else:
|
||||||
|
print("Error building project!")
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
android:label="Omni-directional shadow mapping"
|
android:label="Omni-directional shadow mapping"
|
||||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
|
android:screenOrientation="landscape"
|
||||||
android:configChanges="orientation|screenSize|keyboardHidden">
|
android:configChanges="orientation|screenSize|keyboardHidden">
|
||||||
<meta-data android:name="android.app.lib_name" android:value="vulkanShadowmappingomni" />
|
<meta-data android:name="android.app.lib_name" android:value="vulkanShadowmappingomni" />
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
cd jni
|
|
||||||
call ndk-build
|
|
||||||
if %ERRORLEVEL% EQU 0 (
|
|
||||||
echo ndk-build has failed, build cancelled
|
|
||||||
cd..
|
|
||||||
|
|
||||||
mkdir "assets\shaders\base"
|
|
||||||
xcopy "..\..\data\shaders\base\*.spv" "assets\shaders\base" /Y
|
|
||||||
|
|
||||||
|
|
||||||
mkdir "assets\shaders\shadowmapomni"
|
|
||||||
xcopy "..\..\data\shaders\shadowmapomni\*.spv" "assets\shaders\shadowmapomni" /Y
|
|
||||||
|
|
||||||
mkdir "assets\models"
|
|
||||||
xcopy "..\..\data\models\shadowscene_fire.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=vulkanShadowmappingomni.apk
|
|
||||||
) ELSE (
|
|
||||||
echo error : ndk-build failed with errors!
|
|
||||||
cd..
|
|
||||||
)
|
|
||||||
42
android/shadowmappingomni/build.py
Normal file
42
android/shadowmappingomni/build.py
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import glob
|
||||||
|
|
||||||
|
APK_NAME = "vulkanShadowmappingomni"
|
||||||
|
SHADER_DIR = "shadowmapomni"
|
||||||
|
ASSETS_MODELS = ["shadowscene_fire.dae", "cube.obj"]
|
||||||
|
|
||||||
|
if subprocess.call("ndk-build", shell=True) == 0:
|
||||||
|
print("Build successful")
|
||||||
|
|
||||||
|
# Assets
|
||||||
|
os.makedirs("./assets/shaders/base", exist_ok=True)
|
||||||
|
os.makedirs("./assets/shaders/%s" % SHADER_DIR, exist_ok=True)
|
||||||
|
os.makedirs("./assets/models", exist_ok=True)
|
||||||
|
os.makedirs("./res/drawable", exist_ok=True)
|
||||||
|
|
||||||
|
# Shaders
|
||||||
|
# Base
|
||||||
|
for file in glob.glob("../../data/shaders/base/*.spv"):
|
||||||
|
shutil.copy(file, "./assets/shaders/base")
|
||||||
|
# Sample
|
||||||
|
for file in glob.glob("../../data/shaders/%s/*.spv" %SHADER_DIR):
|
||||||
|
shutil.copy(file, "./assets/shaders/%s" % SHADER_DIR)
|
||||||
|
# Models
|
||||||
|
for file in ASSETS_MODELS:
|
||||||
|
shutil.copy("../../data/models/%s" % file, "./assets/models")
|
||||||
|
|
||||||
|
# Icon
|
||||||
|
shutil.copy("../../android/images/icon.png", "./res/drawable")
|
||||||
|
|
||||||
|
if subprocess.call("ant debug -Dout.final.file=%s.apk" % APK_NAME, shell=True) == 0:
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
if sys.argv[1] == "-deploy":
|
||||||
|
if subprocess.call("adb install -r %s.apk" % APK_NAME, shell=True) != 0:
|
||||||
|
print("Could not deploy to device!")
|
||||||
|
else:
|
||||||
|
print("Error during build process!")
|
||||||
|
else:
|
||||||
|
print("Error building project!")
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
android:label="Specialization constants"
|
android:label="Specialization constants"
|
||||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
|
android:screenOrientation="landscape"
|
||||||
android:configChanges="orientation|screenSize|keyboardHidden">
|
android:configChanges="orientation|screenSize|keyboardHidden">
|
||||||
<meta-data android:name="android.app.lib_name" android:value="vulkanSpecializationconstants" />
|
<meta-data android:name="android.app.lib_name" android:value="vulkanSpecializationconstants" />
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
call ndk-build
|
|
||||||
if %ERRORLEVEL% EQU 0 (
|
|
||||||
mkdir "assets\shaders\base"
|
|
||||||
xcopy "..\..\data\shaders\base\*.spv" "assets\shaders\base" /Y
|
|
||||||
|
|
||||||
mkdir "assets\shaders\specializationconstants"
|
|
||||||
xcopy "..\..\data\shaders\specializationconstants\*.spv" "assets\shaders\specializationconstants" /Y
|
|
||||||
|
|
||||||
mkdir "assets\models"
|
|
||||||
xcopy "..\..\data\models\color_teapot_spheres.dae" "assets\models" /Y
|
|
||||||
|
|
||||||
mkdir "assets\textures"
|
|
||||||
xcopy "..\..\data\textures\metalplate_nomips_rgba.ktx" "assets\textures" /Y
|
|
||||||
|
|
||||||
mkdir "res\drawable"
|
|
||||||
xcopy "..\images\icon.png" "res\drawable" /Y
|
|
||||||
|
|
||||||
call ant debug -Dout.final.file=vulkanSpecializationconstants.apk
|
|
||||||
) ELSE (
|
|
||||||
echo error : ndk-build failed with errors!
|
|
||||||
cd..
|
|
||||||
)
|
|
||||||
47
android/specializationconstants/build.py
Normal file
47
android/specializationconstants/build.py
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import glob
|
||||||
|
|
||||||
|
APK_NAME = "vulkanSpecializationconstants"
|
||||||
|
SHADER_DIR = "specializationconstants"
|
||||||
|
ASSETS_MODELS = ["color_teapot_spheres.dae"]
|
||||||
|
ASSETS_TEXTURES = ["metalplate_nomips_rgba.ktx"]
|
||||||
|
|
||||||
|
if subprocess.call("ndk-build", shell=True) == 0:
|
||||||
|
print("Build successful")
|
||||||
|
|
||||||
|
# Assets
|
||||||
|
os.makedirs("./assets/shaders/base", exist_ok=True)
|
||||||
|
os.makedirs("./assets/shaders/%s" % SHADER_DIR, exist_ok=True)
|
||||||
|
os.makedirs("./assets/textures", exist_ok=True)
|
||||||
|
os.makedirs("./assets/models", exist_ok=True)
|
||||||
|
os.makedirs("./res/drawable", exist_ok=True)
|
||||||
|
|
||||||
|
# Shaders
|
||||||
|
# Base
|
||||||
|
for file in glob.glob("../../data/shaders/base/*.spv"):
|
||||||
|
shutil.copy(file, "./assets/shaders/base")
|
||||||
|
# Sample
|
||||||
|
for file in glob.glob("../../data/shaders/%s/*.spv" %SHADER_DIR):
|
||||||
|
shutil.copy(file, "./assets/shaders/%s" % SHADER_DIR)
|
||||||
|
# Textures
|
||||||
|
for file in ASSETS_TEXTURES:
|
||||||
|
shutil.copy("../../data/textures/%s" % file, "./assets/textures")
|
||||||
|
# Models
|
||||||
|
for file in ASSETS_MODELS:
|
||||||
|
shutil.copy("../../data/models/%s" % file, "./assets/models")
|
||||||
|
|
||||||
|
# Icon
|
||||||
|
shutil.copy("../../android/images/icon.png", "./res/drawable")
|
||||||
|
|
||||||
|
if subprocess.call("ant debug -Dout.final.file=%s.apk" % APK_NAME, shell=True) == 0:
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
if sys.argv[1] == "-deploy":
|
||||||
|
if subprocess.call("adb install -r %s.apk" % APK_NAME, shell=True) != 0:
|
||||||
|
print("Could not deploy to device!")
|
||||||
|
else:
|
||||||
|
print("Error during build process!")
|
||||||
|
else:
|
||||||
|
print("Error building project!")
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
android:label="Spherical Environment Mapping"
|
android:label="Spherical Environment Mapping"
|
||||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
|
android:screenOrientation="landscape"
|
||||||
android:configChanges="orientation|screenSize|keyboardHidden">
|
android:configChanges="orientation|screenSize|keyboardHidden">
|
||||||
<meta-data android:name="android.app.lib_name" android:value="vulkanSphericalenvmapping" />
|
<meta-data android:name="android.app.lib_name" android:value="vulkanSphericalenvmapping" />
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
cd jni
|
|
||||||
call ndk-build
|
|
||||||
if %ERRORLEVEL% EQU 0 (
|
|
||||||
echo ndk-build has failed, build cancelled
|
|
||||||
cd..
|
|
||||||
|
|
||||||
mkdir "assets\shaders\base"
|
|
||||||
xcopy "..\..\data\shaders\base\*.spv" "assets\shaders\base" /Y
|
|
||||||
|
|
||||||
|
|
||||||
mkdir "assets\shaders\sphericalenvmapping"
|
|
||||||
xcopy "..\..\data\shaders\sphericalenvmapping\*.spv" "assets\shaders\sphericalenvmapping" /Y
|
|
||||||
|
|
||||||
mkdir "assets\textures"
|
|
||||||
xcopy "..\..\data\textures\matcap_array_rgba.ktx" "assets\textures" /Y
|
|
||||||
|
|
||||||
mkdir "assets\models"
|
|
||||||
xcopy "..\..\data\models\chinesedragon.dae" "assets\models" /Y
|
|
||||||
|
|
||||||
mkdir "res\drawable"
|
|
||||||
xcopy "..\..\android\images\icon.png" "res\drawable" /Y
|
|
||||||
|
|
||||||
call ant debug -Dout.final.file=vulkanSphericalenvmapping.apk
|
|
||||||
) ELSE (
|
|
||||||
echo error : ndk-build failed with errors!
|
|
||||||
cd..
|
|
||||||
)
|
|
||||||
47
android/sphericalenvmapping/build.py
Normal file
47
android/sphericalenvmapping/build.py
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import glob
|
||||||
|
|
||||||
|
APK_NAME = "vulkanSphericalenvmapping"
|
||||||
|
SHADER_DIR = "sphericalenvmapping"
|
||||||
|
ASSETS_MODELS = ["chinesedragon.dae"]
|
||||||
|
ASSETS_TEXTURES = ["matcap_array_rgba.ktx"]
|
||||||
|
|
||||||
|
if subprocess.call("ndk-build", shell=True) == 0:
|
||||||
|
print("Build successful")
|
||||||
|
|
||||||
|
# Assets
|
||||||
|
os.makedirs("./assets/shaders/base", exist_ok=True)
|
||||||
|
os.makedirs("./assets/shaders/%s" % SHADER_DIR, exist_ok=True)
|
||||||
|
os.makedirs("./assets/textures", exist_ok=True)
|
||||||
|
os.makedirs("./assets/models", exist_ok=True)
|
||||||
|
os.makedirs("./res/drawable", exist_ok=True)
|
||||||
|
|
||||||
|
# Shaders
|
||||||
|
# Base
|
||||||
|
for file in glob.glob("../../data/shaders/base/*.spv"):
|
||||||
|
shutil.copy(file, "./assets/shaders/base")
|
||||||
|
# Sample
|
||||||
|
for file in glob.glob("../../data/shaders/%s/*.spv" %SHADER_DIR):
|
||||||
|
shutil.copy(file, "./assets/shaders/%s" % SHADER_DIR)
|
||||||
|
# Textures
|
||||||
|
for file in ASSETS_TEXTURES:
|
||||||
|
shutil.copy("../../data/textures/%s" % file, "./assets/textures")
|
||||||
|
# Models
|
||||||
|
for file in ASSETS_MODELS:
|
||||||
|
shutil.copy("../../data/models/%s" % file, "./assets/models")
|
||||||
|
|
||||||
|
# Icon
|
||||||
|
shutil.copy("../../android/images/icon.png", "./res/drawable")
|
||||||
|
|
||||||
|
if subprocess.call("ant debug -Dout.final.file=%s.apk" % APK_NAME, shell=True) == 0:
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
if sys.argv[1] == "-deploy":
|
||||||
|
if subprocess.call("adb install -r %s.apk" % APK_NAME, shell=True) != 0:
|
||||||
|
print("Could not deploy to device!")
|
||||||
|
else:
|
||||||
|
print("Error during build process!")
|
||||||
|
else:
|
||||||
|
print("Error building project!")
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
cd jni
|
|
||||||
call ndk-build
|
|
||||||
if %ERRORLEVEL% EQU 0 (
|
|
||||||
cd..
|
|
||||||
|
|
||||||
mkdir "assets\shaders\base"
|
|
||||||
xcopy "..\..\data\shaders\base\*.spv" "assets\shaders\base" /Y
|
|
||||||
|
|
||||||
mkdir "assets\shaders\ssao"
|
|
||||||
xcopy "..\..\data\shaders\ssao\*.spv" "assets\shaders\ssao" /Y
|
|
||||||
|
|
||||||
mkdir "assets\models\sibenik"
|
|
||||||
xcopy "..\..\data\models\sibenik\sibenik.dae" "assets\models\sibenik" /Y
|
|
||||||
|
|
||||||
mkdir "res\drawable"
|
|
||||||
xcopy "..\..\android\images\icon.png" "res\drawable" /Y
|
|
||||||
|
|
||||||
call ant debug -Dout.final.file=vulkanSSAO.apk
|
|
||||||
) ELSE (
|
|
||||||
echo error : ndk-build failed with errors!
|
|
||||||
cd..
|
|
||||||
)
|
|
||||||
47
android/ssao/build.py
Normal file
47
android/ssao/build.py
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import glob
|
||||||
|
|
||||||
|
APK_NAME = "vulkanSSAO"
|
||||||
|
SHADER_DIR = "ssao"
|
||||||
|
|
||||||
|
if subprocess.call("ndk-build", shell=True) == 0:
|
||||||
|
print("Build successful")
|
||||||
|
|
||||||
|
# Assets
|
||||||
|
if not os.path.exists("./assets"):
|
||||||
|
os.makedirs("./assets")
|
||||||
|
|
||||||
|
# Shaders
|
||||||
|
# Base
|
||||||
|
if not os.path.exists("./assets/shaders/base"):
|
||||||
|
os.makedirs("./assets/shaders/base")
|
||||||
|
for file in glob.glob("../../data/shaders/base/*.spv"):
|
||||||
|
shutil.copy(file, "./assets/shaders/base")
|
||||||
|
# Sample
|
||||||
|
if not os.path.exists("./assets/shaders/%s" % SHADER_DIR):
|
||||||
|
os.makedirs("./assets/shaders/%s" % SHADER_DIR)
|
||||||
|
for file in glob.glob("../../data/shaders/%s/*.spv" %SHADER_DIR):
|
||||||
|
shutil.copy(file, "./assets/shaders/%s" % SHADER_DIR)
|
||||||
|
# Textures and model
|
||||||
|
if not os.path.exists("./assets/models/sibenik/"):
|
||||||
|
os.makedirs("./assets/models/sibenik/")
|
||||||
|
for file in glob.glob("../../data/models/sibenik/*.*"):
|
||||||
|
shutil.copy(file, "./assets/models/sibenik")
|
||||||
|
|
||||||
|
# Icon
|
||||||
|
if not os.path.exists("./res/drawable"):
|
||||||
|
os.makedirs("./res/drawable")
|
||||||
|
shutil.copy("../../android/images/icon.png", "./res/drawable")
|
||||||
|
|
||||||
|
if subprocess.call("ant debug -Dout.final.file=%s.apk" % APK_NAME, shell=True) == 0:
|
||||||
|
if len(sys.argv) > 1:
|
||||||
|
if sys.argv[1] == "-deploy":
|
||||||
|
if subprocess.call("adb install -r %s.apk" % APK_NAME, shell=True) != 0:
|
||||||
|
print("Could not deploy to device!")
|
||||||
|
else:
|
||||||
|
print("Error during build process!")
|
||||||
|
else:
|
||||||
|
print("Error building project!")
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
android:label="Subpasses"
|
android:label="Subpasses"
|
||||||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
|
android:screenOrientation="landscape"
|
||||||
android:configChanges="orientation|screenSize|keyboardHidden">
|
android:configChanges="orientation|screenSize|keyboardHidden">
|
||||||
<meta-data android:name="android.app.lib_name" android:value="vulkanSubpasses" />
|
<meta-data android:name="android.app.lib_name" android:value="vulkanSubpasses" />
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue