Files
MobileGL/android-plugin/build.gradle
T
swung0x48 317b3602c3 [Fix] (ci): fix matrix retrace GLES runtime
- install EGL/GLES development runtime in retrace matrix jobs

- assert libEGL.so and libGLESv2.so are available before running trace replay

- remove native build cache wiring from workflows
2026-06-20 12:40:43 +08:00

40 lines
1.2 KiB
Groovy

plugins {
id 'com.android.application' version '8.6.0' apply false
id 'com.android.library' version '8.6.0' apply false
}
def mobileGlAbiFilters = {
def abiList = (rootProject.findProperty('mobilegl.abis') ?: System.getenv('MOBILEGL_ABIS') ?: 'arm64-v8a') as String
if (abiList.equalsIgnoreCase('all')) {
return ['arm64-v8a', 'x86_64']
}
abiList
.split(',')
.collect { it.trim() }
.findAll { !it.isEmpty() }
}
def mobileGlLogActiveLevel = {
(rootProject.findProperty('mobilegl.logLevel') ?: System.getenv('MOBILEGL_LOG_ACTIVE_LEVEL') ?: 'MOBILEGL_LOG_LEVEL_INFO') as String
}
subprojects { subproject ->
subproject.plugins.withId('com.android.library') {
subproject.android {
defaultConfig {
ndk {
def abiFiltersOverride = mobileGlAbiFilters()
if (!abiFiltersOverride.isEmpty()) {
abiFilters(*abiFiltersOverride)
}
}
externalNativeBuild {
cmake {
cppFlags "-DMOBILEGL_LOG_ACTIVE_LEVEL=${mobileGlLogActiveLevel()}"
}
}
}
}
}
}