[Fix] (ci): force info MobileGL log level

This commit is contained in:
2026-06-17 13:59:38 +08:00
parent c82062a51b
commit 42e3cce8c3
4 changed files with 12 additions and 3 deletions
+5 -1
View File
@@ -14,6 +14,10 @@ def mobileGlAbiFilters = {
.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 {
@@ -26,7 +30,7 @@ subprojects { subproject ->
}
externalNativeBuild {
cmake {
cppFlags '-DMOBILEGL_LOG_ACTIVE_LEVEL=MOBILEGL_LOG_LEVEL_INFO'
cppFlags "-DMOBILEGL_LOG_ACTIVE_LEVEL=${mobileGlLogActiveLevel()}"
}
}
}