Plugin build: honour the MOBILEGL_BUILD_DISAGGREGATED env fallbacks.

This commit is contained in:
2026-10-09 14:25:56 -04:00
parent e072176c24
commit 0b536de3fb
+7 -4
View File
@@ -31,12 +31,15 @@ subprojects {
cmake {
// P5 trace A/B: :MobileGL owns libMobileGL.so, not :app's replay runner.
// Both flavors ship the render server, so the split shape is on by default
// (-Pmobilegl.buildDisaggregated=OFF opts out); INPROC follows it, as in
// MobileGL/build.gradle.
val disaggregated = project.findProperty("mobilegl.buildDisaggregated") ?: "ON"
// (-Pmobilegl.buildDisaggregated=OFF or MOBILEGL_BUILD_DISAGGREGATED=OFF opts
// out); INPROC follows it, as in MobileGL/build.gradle.
val disaggregated = project.findProperty("mobilegl.buildDisaggregated")
?: System.getenv("MOBILEGL_BUILD_DISAGGREGATED") ?: "ON"
val disaggregatedInproc = project.findProperty("mobilegl.buildDisaggregatedInproc")
?: System.getenv("MOBILEGL_BUILD_DISAGGREGATED_INPROC") ?: disaggregated
arguments += listOf(
"-DMOBILEGL_BUILD_DISAGGREGATED=$disaggregated",
"-DMOBILEGL_BUILD_DISAGGREGATED_INPROC=${project.findProperty("mobilegl.buildDisaggregatedInproc") ?: disaggregated}",
"-DMOBILEGL_BUILD_DISAGGREGATED_INPROC=$disaggregatedInproc",
)
mobileGlCmakeCompilerLauncher().takeIf(String::isNotEmpty)?.let { compilerLauncher ->
arguments += listOf(