[Feat] (android-plugin): add standalone trace replay profile

This commit is contained in:
2026-06-15 16:57:50 +08:00
parent d51723c153
commit c2d6134cfa
16 changed files with 1997 additions and 5 deletions
+24 -1
View File
@@ -34,13 +34,14 @@ android {
}
}
flavorDimensions 'backend'
flavorDimensions 'backend', 'profile'
productFlavors {
espryt {
dimension 'backend'
applicationId 'top.mobilegl.plugin.espryt'
def env = mobileGlEnvString('DirectGLES')
resValue 'string', 'mobilegl_default_backend', 'DirectGLES'
manifestPlaceholders = [
appLabel: 'MobileGL Espryt',
des : 'MobileGL Espryt',
@@ -53,6 +54,7 @@ android {
dimension 'backend'
applicationId 'top.mobilegl.plugin.magma'
def env = mobileGlEnvString('DirectVulkan')
resValue 'string', 'mobilegl_default_backend', 'DirectVulkan'
manifestPlaceholders = [
appLabel: 'MobileGL Magma',
des : 'MobileGL Magma',
@@ -61,6 +63,14 @@ android {
pojavEnv: env,
]
}
plugin {
dimension 'profile'
}
trace {
dimension 'profile'
applicationIdSuffix '.trace'
versionNameSuffix '-trace'
}
}
if (releaseSigningReady) {
@@ -83,6 +93,13 @@ android {
}
}
externalNativeBuild {
cmake {
path file('src/trace/cpp/CMakeLists.txt')
version '3.22.1'
}
}
packaging {
jniLibs {
useLegacyPackaging true
@@ -97,6 +114,12 @@ android.applicationVariants.configureEach { variant ->
}
}
androidComponents {
onVariants(selector().withFlavor('profile', 'plugin')) { variant ->
variant.packaging.jniLibs.excludes.add('**/libtrace_replay_runner.so')
}
}
dependencies {
implementation project(':MobileGL')
}