2019-10-11 13:13:48 +00:00
|
|
|
type: Group
|
|
|
|
instructions:
|
2021-07-02 08:55:17 +00:00
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: CMAKE_BUILD_TIMEOUT
|
|
|
|
variableValue: "6000"
|
|
|
|
enable_if:
|
|
|
|
condition: runtime
|
|
|
|
env_var: CMAKE_BUILD_TIMEOUT
|
|
|
|
equals_value: null
|
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: CMAKE_BUILD_OUTPUT_TIMEOUT
|
|
|
|
variableValue: "1200"
|
|
|
|
enable_if:
|
|
|
|
condition: runtime
|
|
|
|
env_var: CMAKE_BUILD_OUTPUT_TIMEOUT
|
|
|
|
equals_value: null
|
2019-10-11 13:13:48 +00:00
|
|
|
- type: MakeDirectory
|
|
|
|
directory: .git
|
|
|
|
- type: MakeDirectory
|
|
|
|
directory: build
|
|
|
|
- type: ChangeDirectory
|
|
|
|
directory: "{{.BuildDir}}/build"
|
|
|
|
- type: MakeDirectory
|
|
|
|
directory: target
|
2020-05-27 13:24:24 +00:00
|
|
|
- type: Group
|
|
|
|
instructions:
|
|
|
|
- type: MakeDirectory
|
|
|
|
directory: host
|
|
|
|
- type: SetBuildDirectory
|
|
|
|
directory: "{{.SourceDir}}/build/host"
|
|
|
|
- type: ChangeDirectory
|
|
|
|
directory: "{{.BuildDir}}"
|
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: COIN_CMAKE_ARGS
|
|
|
|
# The lack of space between the non qtbase configure args and the rest of the args is important!
|
2020-10-19 11:35:15 +00:00
|
|
|
variableValue: "{{.Env.NON_QTBASE_CONFIGURE_ARGS}} -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=ON {{.SourceDir}}"
|
2020-05-27 13:24:24 +00:00
|
|
|
- !include "{{qt/qtbase}}/call_host_cmake.yaml"
|
|
|
|
- type: ExecuteCommand
|
|
|
|
command: "{{.Env.ENV_PREFIX}} cmake --build . --parallel -v"
|
2021-07-02 08:55:17 +00:00
|
|
|
maxTimeInSeconds: "{{.Env.CMAKE_BUILD_TIMEOUT}}"
|
|
|
|
maxTimeBetweenOutput: "{{.Env.CMAKE_BUILD_OUTPUT_TIMEOUT}}"
|
2020-05-27 13:24:24 +00:00
|
|
|
userMessageOnFailure: >
|
|
|
|
Failed to build sources. In the current state bug can be everywhere.
|
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: COIN_CMAKE_INSTALL_SCRIPT_PATH
|
|
|
|
variableValue: "{{.InstallDir}}/host"
|
|
|
|
- !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
|
2019-11-14 10:51:11 +00:00
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: DESTDIR
|
|
|
|
variableValue: ""
|
2019-10-11 13:13:48 +00:00
|
|
|
- type: SetBuildDirectory
|
|
|
|
directory: "{{.SourceDir}}/build/target"
|
|
|
|
- type: ChangeDirectory
|
|
|
|
directory: "{{.BuildDir}}"
|
2019-11-14 10:51:11 +00:00
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: COIN_CMAKE_ARGS
|
2020-07-09 07:59:21 +00:00
|
|
|
# The lack of space between the non qtbase configure args and the rest of the args is important!
|
2020-10-19 11:35:15 +00:00
|
|
|
variableValue: "{{.Env.NON_QTBASE_TARGET_CONFIGURE_ARGS}} -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=ON {{.SourceDir}}"
|
2019-11-14 10:51:11 +00:00
|
|
|
- !include "{{qt/qtbase}}/call_target_cmake.yaml"
|
2019-10-11 13:13:48 +00:00
|
|
|
- type: ExecuteCommand
|
2020-04-28 09:58:06 +00:00
|
|
|
command: "{{.Env.TARGET_ENV_PREFIX}} cmake --build . --parallel -v"
|
2021-07-02 08:55:17 +00:00
|
|
|
maxTimeInSeconds: "{{.Env.CMAKE_BUILD_TIMEOUT}}"
|
|
|
|
maxTimeBetweenOutput: "{{.Env.CMAKE_BUILD_OUTPUT_TIMEOUT}}"
|
2019-10-11 13:13:48 +00:00
|
|
|
userMessageOnFailure: >
|
2020-02-13 09:40:41 +00:00
|
|
|
Failed to build sources. In the current state bug can be everywhere.
|
2020-05-15 09:38:53 +00:00
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: COIN_CMAKE_INSTALL_SCRIPT_PATH
|
|
|
|
variableValue: "{{.InstallDir}}/target"
|
|
|
|
- !include "{{qt/qtbase}}/call_target_install.yaml"
|
2019-11-14 10:51:11 +00:00
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: DESTDIR
|
|
|
|
variableValue: "{{.InstallRoot}}"
|
2020-05-15 09:38:53 +00:00
|
|
|
- !include "{{qt/qtbase}}/call_target_install.yaml"
|
2019-11-14 10:51:11 +00:00
|
|
|
- type: EnvironmentVariable
|
|
|
|
variableName: DESTDIR
|
|
|
|
variableValue: ""
|
|
|
|
- type: UploadArtifact
|
|
|
|
archiveDirectory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
|
|
|
|
transferType: UploadModuleBuildArtifact
|
|
|
|
maxTimeInSeconds: 1200
|
|
|
|
maxTimeBetweenOutput: 1200
|
2020-08-18 16:13:03 +00:00
|
|
|
- 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"
|