mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-10 21:28:32 +09:00
[Feat] (android-plugin): add standalone trace replay profile
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user