mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-07 01:53:24 +09:00
Plugin build: honour the MOBILEGL_BUILD_DISAGGREGATED env fallbacks.
This commit is contained in:
@@ -31,12 +31,15 @@ subprojects {
|
|||||||
cmake {
|
cmake {
|
||||||
// P5 trace A/B: :MobileGL owns libMobileGL.so, not :app's replay runner.
|
// 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
|
// Both flavors ship the render server, so the split shape is on by default
|
||||||
// (-Pmobilegl.buildDisaggregated=OFF opts out); INPROC follows it, as in
|
// (-Pmobilegl.buildDisaggregated=OFF or MOBILEGL_BUILD_DISAGGREGATED=OFF opts
|
||||||
// MobileGL/build.gradle.
|
// out); INPROC follows it, as in MobileGL/build.gradle.
|
||||||
val disaggregated = project.findProperty("mobilegl.buildDisaggregated") ?: "ON"
|
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(
|
arguments += listOf(
|
||||||
"-DMOBILEGL_BUILD_DISAGGREGATED=$disaggregated",
|
"-DMOBILEGL_BUILD_DISAGGREGATED=$disaggregated",
|
||||||
"-DMOBILEGL_BUILD_DISAGGREGATED_INPROC=${project.findProperty("mobilegl.buildDisaggregatedInproc") ?: disaggregated}",
|
"-DMOBILEGL_BUILD_DISAGGREGATED_INPROC=$disaggregatedInproc",
|
||||||
)
|
)
|
||||||
mobileGlCmakeCompilerLauncher().takeIf(String::isNotEmpty)?.let { compilerLauncher ->
|
mobileGlCmakeCompilerLauncher().takeIf(String::isNotEmpty)?.let { compilerLauncher ->
|
||||||
arguments += listOf(
|
arguments += listOf(
|
||||||
|
|||||||
Reference in New Issue
Block a user