[Build] (Android): map mobilegl.buildDisaggregated and mobilegl.buildDisaggregatedInproc to the CMake options so the trace APK has a split flavour beside pull and push

This commit is contained in:
2026-09-16 10:15:58 -04:00
parent fa924d34fb
commit eec0e836c6
+5
View File
@@ -29,6 +29,11 @@ subprojects {
} }
externalNativeBuild { externalNativeBuild {
cmake { cmake {
// P5 trace A/B: :MobileGL owns libMobileGL.so, not :app's replay runner.
arguments += listOf(
"-DMOBILEGL_BUILD_DISAGGREGATED=${project.findProperty("mobilegl.buildDisaggregated") ?: "OFF"}",
"-DMOBILEGL_BUILD_DISAGGREGATED_INPROC=${project.findProperty("mobilegl.buildDisaggregatedInproc") ?: "OFF"}",
)
mobileGlCmakeCompilerLauncher().takeIf(String::isNotEmpty)?.let { compilerLauncher -> mobileGlCmakeCompilerLauncher().takeIf(String::isNotEmpty)?.let { compilerLauncher ->
arguments += listOf( arguments += listOf(
"-DCMAKE_C_COMPILER_LAUNCHER=$compilerLauncher", "-DCMAKE_C_COMPILER_LAUNCHER=$compilerLauncher",