Add Android Vulkan backend (#2711)
Co-authored-by: Bart Louwers <bart.louwers@gmail.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
apply plugin: 'com.android.application'
|
||||
//apply from: "${rootDir}/../../platform/android/gradle/download-vulkan-validation.gradle"
|
||||
|
||||
android {
|
||||
ndkVersion '27.0.12077973'
|
||||
@@ -52,6 +53,21 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
flavorDimensions += "renderer"
|
||||
productFlavors {
|
||||
create("opengl") {
|
||||
dimension = "renderer"
|
||||
}
|
||||
create("vulkan") {
|
||||
dimension = "renderer"
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
arguments "-DMLN_WITH_OPENGL=OFF", "-DMLN_WITH_VULKAN=ON"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace 'android.app'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user