If a qt5.git configuration is marked with the StandaloneTests feature, tell CMake not to build the examples in-tree, and instead use qt-internal-configure-examples to build the examples out-of-tree. This brings a couple of improvements: - higher chance of building examples as ExternalProjects without issues - ability to use deployment api in examples, without installing the examples into a main install prefix The new coin instructions files use a copy of the standalone tests instructions as a base. Task-number: QTBUG-90820 Task-number: QTBUG-96232 Change-Id: If89e6da0b327a38b9c2738f58aa1b5b5fb9fda37 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit d644f2e02ce36520b4d101ea03fbbcf1b72e7e6f) Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
type: Group
|
|
instructions:
|
|
- type: EnvironmentVariable
|
|
variableName: EXAMPLES_ENV_PREFIX
|
|
variableValue: "{{.Env.TARGET_ENV_PREFIX}}"
|
|
- type: EnvironmentVariable
|
|
variableName: INSTALL_DIR_FOR_EXAMPLES
|
|
variableValue: "{{.InstallDir}}\\target"
|
|
enable_if:
|
|
condition: property
|
|
property: host.os
|
|
equals_value: Windows
|
|
- type: EnvironmentVariable
|
|
variableName: INSTALL_DIR_FOR_EXAMPLES
|
|
variableValue: "{{.InstallDir}}/target"
|
|
# TODO: Might need android multi-abi support whenever we decide to build examples for that
|
|
# config. See 7b9bb698b93e747e02bf6ab8310c439867318f8e in qtbase and how the instructions
|
|
# were modified for multi-abi android tests.
|
|
disable_if:
|
|
condition: property
|
|
property: host.os
|
|
equals_value: Windows
|
|
- type: EnvironmentVariable
|
|
variableName: COIN_CMAKE_ARGS
|
|
variableValue: "{{.Env.COMMON_TARGET_EXAMPLES_CMAKE_ARGS}}"
|
|
- !include "{{qt/qtbase}}/cmake_build_standalone_examples.yaml"
|
|
enable_if:
|
|
condition: property
|
|
property: features
|
|
contains_value: StandaloneExamples
|