mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-07 19:58:32 +09:00
[Fix] (Build): compile fordebug native code as RelWithDebInfo (debuggable APK was shipping an -O0 libMobileGL.so, invalidating all performance measurements on this flavor)
This commit is contained in:
@@ -31,6 +31,15 @@ android {
|
||||
}
|
||||
fordebug {
|
||||
debuggable true
|
||||
// Keep the APK debuggable (simpleperf --app, JDWP) but build the
|
||||
// native library like a release: AGP maps debuggable build types to
|
||||
// CMAKE_BUILD_TYPE=Debug, which compiles MobileGL at -O0 and makes
|
||||
// every performance measurement on this flavor meaningless.
|
||||
externalNativeBuild {
|
||||
cmake {
|
||||
arguments "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (standalonePluginBuild) {
|
||||
|
||||
Reference in New Issue
Block a user