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>
33 lines
1002 B
YAML
33 lines
1002 B
YAML
type: Group
|
|
instructions:
|
|
- type: ChangeDirectory
|
|
directory: "{{.SourceDir}}"
|
|
- type: MakeDirectory
|
|
directory: "{{.SourceDir}}_standalone_examples"
|
|
- type: SetBuildDirectory
|
|
directory: "{{.SourceDir}}_standalone_examples"
|
|
- type: ChangeDirectory
|
|
directory: "{{.BuildDir}}"
|
|
- type: AppendToEnvironmentVariable
|
|
variableName: COIN_CMAKE_ARGS
|
|
variableValue: " -S {{.SourceDir}} -B ."
|
|
disable_if:
|
|
condition: runtime
|
|
env_var: COIN_CMAKE_ARGS
|
|
equals_value: null
|
|
- type: EnvironmentVariable
|
|
variableName: COIN_CMAKE_ARGS
|
|
variableValue: "-S {{.SourceDir}} -B ."
|
|
enable_if:
|
|
condition: runtime
|
|
env_var: COIN_CMAKE_ARGS
|
|
equals_value: null
|
|
|
|
- !include "{{qt/qtbase}}/call_cmake_for_standalone_examples.yaml"
|
|
- type: ExecuteCommand
|
|
command: "{{.Env.EXAMPLES_ENV_PREFIX}} cmake --build . --parallel -v"
|
|
maxTimeInSeconds: 6000
|
|
maxTimeBetweenOutput: 4800
|
|
userMessageOnFailure: >
|
|
Failed to build examples.
|