From eec0e836c60996ed0ae6be0b992b7bae44ef0aa9 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Wed, 16 Sep 2026 10:15:58 -0400 Subject: [PATCH] [Build] (Android): map mobilegl.buildDisaggregated and mobilegl.buildDisaggregatedInproc to the CMake options so the trace APK has a split flavour beside pull and push --- android-plugin/build.gradle.kts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android-plugin/build.gradle.kts b/android-plugin/build.gradle.kts index c351d75e..f118094d 100644 --- a/android-plugin/build.gradle.kts +++ b/android-plugin/build.gradle.kts @@ -29,6 +29,11 @@ subprojects { } externalNativeBuild { 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 -> arguments += listOf( "-DCMAKE_C_COMPILER_LAUNCHER=$compilerLauncher",