Define `TARGET_INSTALL_DIR` in the CI

In principle it has the same value as `INSTALL_DIR_FOR_CMAKE_TESTS`, but
this is defined much earlier and guaranteed to be present next to
`HOST_INSTALL_DIR`.

Change-Id: I0c6d2109735872fc6013d91163352698d7b7bc08
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Cristian Le 2025-05-26 16:41:18 +02:00
parent 67051c779d
commit 1fc00a2a14
1 changed files with 28 additions and 0 deletions

View File

@ -769,3 +769,31 @@ instructions:
condition: property
property: host.os
equals_value: Windows
- # Default value when not cross-compiling
type: EnvironmentVariable
variableName: TARGET_INSTALL_DIR
variableValue: "{{.InstallDir}}"
- type: Group
instructions:
- # Default value when cross-compiling
type: EnvironmentVariable
variableName: TARGET_INSTALL_DIR
variableValue: "{{.InstallDir}}{{.Env.CI_PATH_SEP}}target"
- type: EnvironmentVariable
variableName: TARGET_INSTALL_DIR
variableValue: "{{$android_artifact_path:=index .Env \"QT_CI_ARTIFACT_ID_PATH_Android-x86\"}}{{index .Env $android_artifact_path}}/install/target"
enable_if:
condition: and
conditions:
- condition: property
property: target.osVersion
equals_value: Android_ANY
- condition: property
property: target.arch
equals_value: Multi
enable_if:
# Only enable if cross-compiling
condition: property
property: target.osVersion
in_values: [Android_ANY, QEMU, IOS_ANY, QNX_710, QNX_800, WebAssembly, INTEGRITY, VxWorks]