coin: Tell qmake to use sccache if the platform feature is enabled

Pick-to: 6.8 6.9 6.10
Task-number: QTBUG-139139
Change-Id: I861319b9a29ff39c467c81d49c5074907294d4dc
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexandru Croitor 2025-08-14 14:50:43 +02:00
parent 4b56619614
commit 21d561106f
1 changed files with 15 additions and 1 deletions

View File

@ -59,9 +59,23 @@ instructions:
userMessageOnFailure: >
Failed to run cmake -P ensure_pro_file.cmake
- type: EnvironmentVariable
variableName: QMAKE_ARGS
variableValue: ""
- type: Group
instructions:
- type: AppendToEnvironmentVariable
variableName: QMAKE_ARGS
variableValue: "CONFIG+=ccache QMAKE_CACHE_LAUNCHER_PREFIX=sccache"
enable_if:
condition: property
property: features
contains_value: Sccache
# Run qmake to configure the examples. The env prefix is important for qemu.
- type: ExecuteCommand
command: "{{.Env.CALL_MAKE_ENV_PREFIX}} {{.Env.COIN_QMAKE_LOCATION}} {{.Env.COIN_EXAMPLES_SOURCE_LOCATION}}"
command: "{{.Env.CALL_MAKE_ENV_PREFIX}} {{.Env.COIN_QMAKE_LOCATION}} {{.Env.COIN_EXAMPLES_SOURCE_LOCATION}} {{.Env.QMAKE_ARGS}}"
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
maxTimeInSeconds: 6000
maxTimeBetweenOutput: 1200
userMessageOnFailure: >