mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-07 19:58:32 +09:00
29 lines
827 B
Groovy
29 lines
827 B
Groovy
plugins {
|
|
id 'com.android.application' version '8.6.0' apply false
|
|
id 'com.android.library' version '8.6.0' apply false
|
|
}
|
|
|
|
def mobileGlAbiFilters = {
|
|
((rootProject.findProperty('mobilegl.abis') ?: System.getenv('MOBILEGL_ABIS') ?: 'arm64-v8a') as String)
|
|
.split(',')
|
|
.collect { it.trim() }
|
|
.findAll { !it.isEmpty() }
|
|
}
|
|
|
|
subprojects { subproject ->
|
|
subproject.plugins.withId('com.android.library') {
|
|
subproject.android {
|
|
defaultConfig {
|
|
ndk {
|
|
abiFilters(*mobileGlAbiFilters())
|
|
}
|
|
externalNativeBuild {
|
|
cmake {
|
|
cppFlags '-DMOBILEGL_LOG_ACTIVE_LEVEL=MOBILEGL_LOG_LEVEL_INFO'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|