b3ec373e2f
This part originates from when the CMake was being introduced and now things are stable enough that the bug rarely is everywhere. Pick-to: 6.2 6.3 Task-number: COIN-828 Change-Id: Ifb7b5ce82740f5ae49f712f9666870993ce00b15 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
99 lines
3.5 KiB
YAML
99 lines
3.5 KiB
YAML
type: Group
|
|
instructions:
|
|
- type: MakeDirectory
|
|
directory: .git
|
|
- type: MakeDirectory
|
|
directory: build
|
|
- type: ChangeDirectory
|
|
directory: "{{.BuildDir}}/build"
|
|
- type: MakeDirectory
|
|
directory: target
|
|
- type: Group
|
|
instructions:
|
|
- type: MakeDirectory
|
|
directory: host
|
|
- type: SetBuildDirectory
|
|
directory: "{{.SourceDir}}/build/host"
|
|
- type: ChangeDirectory
|
|
directory: "{{.BuildDir}}"
|
|
- type: ExecuteCommand
|
|
command: "{{.Env.ENV_PREFIX}} cmake {{.Env.CONFIGURE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{.InstallDir}}/host {{.SourceDir}}"
|
|
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
|
maxTimeInSeconds: 6000
|
|
maxTimeBetweenOutput: 1200
|
|
userMessageOnFailure: >
|
|
Failed to call cmake.
|
|
- type: ExecuteCommand
|
|
command: "{{.Env.ENV_PREFIX}} cmake --build . --parallel -v"
|
|
maxTimeInSeconds: 6000
|
|
maxTimeBetweenOutput: 4800
|
|
userMessageOnFailure: >
|
|
Failed to build sources.
|
|
- type: EnvironmentVariable
|
|
variableName: COIN_CMAKE_INSTALL_SCRIPT_PATH
|
|
variableValue: "{{.BuildDir}}"
|
|
- !include "{{qt/qtbase}}/call_host_install.yaml"
|
|
- type: EnvironmentVariable
|
|
variableName: DESTDIR
|
|
variableValue: "{{.InstallRoot}}"
|
|
- !include "{{qt/qtbase}}/call_host_install.yaml"
|
|
enable_if:
|
|
condition: property
|
|
property: platformDependency
|
|
equals_value: null
|
|
- type: EnvironmentVariable
|
|
variableName: DESTDIR
|
|
variableValue: ""
|
|
- type: SetBuildDirectory
|
|
directory: "{{.SourceDir}}/build/target"
|
|
- type: ChangeDirectory
|
|
directory: "{{.BuildDir}}"
|
|
- type: AppendToEnvironmentVariable
|
|
variableName: TARGET_CONFIGURE_ARGS
|
|
variableValue: " -DQT_HOST_PATH={{.AgentWorkingDir}}/install"
|
|
disable_if:
|
|
condition: property
|
|
property: platformDependency
|
|
equals_value: null
|
|
- type: AppendToEnvironmentVariable
|
|
variableName: TARGET_CONFIGURE_ARGS
|
|
variableValue: " -DQT_HOST_PATH={{.InstallDir}}/host"
|
|
enable_if:
|
|
condition: property
|
|
property: platformDependency
|
|
equals_value: null
|
|
- type: ExecuteCommand
|
|
command: "{{.Env.TARGET_ENV_PREFIX}} cmake {{.Env.TARGET_CONFIGURE_ARGS}} -DCMAKE_STAGING_PREFIX:PATH={{.InstallDir}}/target {{.SourceDir}}"
|
|
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
|
maxTimeInSeconds: 6000
|
|
maxTimeBetweenOutput: 1200
|
|
userMessageOnFailure: >
|
|
Failed to call cmake.
|
|
- type: ExecuteCommand
|
|
command: "{{.Env.TARGET_ENV_PREFIX}} cmake --build . --parallel -v"
|
|
maxTimeInSeconds: 6000
|
|
maxTimeBetweenOutput: 4800
|
|
userMessageOnFailure: >
|
|
Failed to build sources.
|
|
- type: EnvironmentVariable
|
|
variableName: COIN_CMAKE_INSTALL_SCRIPT_PATH
|
|
variableValue: "{{.BuildDir}}"
|
|
- !include "{{qt/qtbase}}/call_target_install.yaml"
|
|
- type: EnvironmentVariable
|
|
variableName: DESTDIR
|
|
variableValue: "{{.InstallRoot}}"
|
|
- !include "{{qt/qtbase}}/call_target_install.yaml"
|
|
- type: EnvironmentVariable
|
|
variableName: DESTDIR
|
|
variableValue: ""
|
|
- type: UploadArtifact
|
|
archiveDirectory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
|
|
transferType: UploadModuleBuildArtifact
|
|
maxTimeInSeconds: 1200
|
|
maxTimeBetweenOutput: 1200
|
|
- type: EnvironmentVariable
|
|
variableName: COIN_CONFIG_TYPE
|
|
variableValue: "Target"
|
|
- !include "{{qt/qtbase}}/qmake/get_qmake_location_target.yaml"
|
|
- !include "{{qt/qtbase}}/qmake_examples/build_qmake_examples_instructions.yaml"
|