| 1 |
type: Group |
| 2 |
instructions: |
| 3 |
- type: EnvironmentVariable |
| 4 |
variableName: CMAKE_BUILD_TIMEOUT |
| 5 |
variableValue: "6000" |
| 6 |
enable_if: |
| 7 |
condition: runtime |
| 8 |
env_var: CMAKE_BUILD_TIMEOUT |
| 9 |
equals_value: null |
| 10 |
- type: EnvironmentVariable |
| 11 |
variableName: CMAKE_BUILD_OUTPUT_TIMEOUT |
| 12 |
variableValue: "1200" |
| 13 |
enable_if: |
| 14 |
condition: runtime |
| 15 |
env_var: CMAKE_BUILD_OUTPUT_TIMEOUT |
| 16 |
equals_value: null |
| 17 |
- type: MakeDirectory |
| 18 |
directory: .git |
| 19 |
- type: MakeDirectory |
| 20 |
directory: "{{.SourceDir}}_build" |
| 21 |
- type: ChangeDirectory |
| 22 |
directory: "{{.SourceDir}}_build" |
| 23 |
- type: MakeDirectory |
| 24 |
directory: target |
| 25 |
- type: EnvironmentVariable |
| 26 |
variableName: DESTDIR |
| 27 |
variableValue: "" |
| 28 |
- type: SetBuildDirectory |
| 29 |
directory: "{{.SourceDir}}_build/target" |
| 30 |
- type: ChangeDirectory |
| 31 |
directory: "{{.BuildDir}}" |
| 32 |
|
| 33 |
- type: EnvironmentVariable |
| 34 |
variableName: COIN_CONFIGURE_ARGS |
| 35 |
variableValue: "{{.Env.NON_QTBASE_TARGET_CONFIGURE_ARGS}}" |
| 36 |
- type: EnvironmentVariable |
| 37 |
variableName: COIN_CMAKE_ARGS |
| 38 |
variableValue: "{{.Env.NON_QTBASE_TARGET_CMAKE_ARGS}} {{.Env.COMMON_NON_QTBASE_TARGET_CMAKE_ARGS}}" |
| 39 |
- type: AppendToEnvironmentVariable |
| 40 |
variableName: COIN_CONFIGURE_ARGS |
| 41 |
variableValue: " ${{ToUpper .Env.TESTED_MODULE_COIN}}_TARGET_CONFIGURE_ARGS" |
| 42 |
enable_if: |
| 43 |
condition: runtime |
| 44 |
env_var: "{{ToUpper .Env.TESTED_MODULE_COIN}}_TARGET_CONFIGURE_ARGS" |
| 45 |
not_equals_value: null |
| 46 |
- type: AppendToEnvironmentVariable |
| 47 |
variableName: COIN_CMAKE_ARGS |
| 48 |
variableValue: " ${{ToUpper .Env.TESTED_MODULE_COIN}}_TARGET_CMAKE_ARGS" |
| 49 |
enable_if: |
| 50 |
condition: runtime |
| 51 |
env_var: "{{ToUpper .Env.TESTED_MODULE_COIN}}_TARGET_CMAKE_ARGS" |
| 52 |
not_equals_value: null |
| 53 |
- type: EnvironmentVariable |
| 54 |
variableName: CONFIGURE_ENV_PREFIX |
| 55 |
variableValue: "{{.Env.TARGET_ENV_PREFIX}}" |
| 56 |
- !include "{{qt/qtbase}}/prepare_install_dir_suffix_target.yaml" |
| 57 |
- !include "{{qt/qtbase}}/call_configure_module.yaml" |
| 58 |
|
| 59 |
- type: ExecuteCommand |
| 60 |
command: "{{.Env.CONFIGURE_ENV_PREFIX}} cmake --build . --parallel -v" |
| 61 |
maxTimeInSeconds: "{{.Env.CMAKE_BUILD_TIMEOUT}}" |
| 62 |
maxTimeBetweenOutput: "{{.Env.CMAKE_BUILD_OUTPUT_TIMEOUT}}" |
| 63 |
userMessageOnFailure: > |
| 64 |
Failed to build sources. |
| 65 |
- type: EnvironmentVariable |
| 66 |
variableName: COIN_CMAKE_INSTALL_DIR |
| 67 |
variableValue: "{{.InstallDir}}{{.Env.CI_PATH_SEP}}target" |
| 68 |
- type: EnvironmentVariable |
| 69 |
variableName: COIN_CMAKE_INSTALL_LIBEXEC_DIR |
| 70 |
variableValue: "{{.Env.COIN_CMAKE_INSTALL_DIR}}{{.Env.CI_PATH_SEP}}libexec" |
| 71 |
disable_if: |
| 72 |
condition: and |
| 73 |
conditions: |
| 74 |
- condition: property |
| 75 |
property: host.os |
| 76 |
equals_value: Windows |
| 77 |
- condition: and |
| 78 |
conditions: |
| 79 |
- condition: property |
| 80 |
property: target.os |
| 81 |
not_equals_value: QNX |
| 82 |
- condition: property |
| 83 |
property: target.osVersion |
| 84 |
not_in_values: [WebAssembly, Android_ANY] |
| 85 |
- type: EnvironmentVariable |
| 86 |
variableName: COIN_CMAKE_INSTALL_LIBEXEC_DIR |
| 87 |
variableValue: "{{.InstallDir}}{{.Env.CI_PATH_SEP}}target{{.Env.CI_PATH_SEP}}bin" |
| 88 |
enable_if: |
| 89 |
condition: and |
| 90 |
conditions: |
| 91 |
- condition: property |
| 92 |
property: host.os |
| 93 |
equals_value: Windows |
| 94 |
- condition: and |
| 95 |
conditions: |
| 96 |
- condition: property |
| 97 |
property: target.os |
| 98 |
not_equals_value: QNX |
| 99 |
- condition: property |
| 100 |
property: target.osVersion |
| 101 |
not_in_values: [WebAssembly, Android_ANY] |
| 102 |
- !include "{{qt/qtbase}}/call_target_install.yaml" |
| 103 |
- type: EnvironmentVariable |
| 104 |
variableName: DESTDIR |
| 105 |
variableValue: "{{.InstallRoot}}" |
| 106 |
- !include "{{qt/qtbase}}/call_target_install.yaml" |
| 107 |
- type: EnvironmentVariable |
| 108 |
variableName: DESTDIR |
| 109 |
variableValue: "" |
| 110 |
- type: SignPackage |
| 111 |
directory: "{{.InstallRoot}}/{{.AgentWorkingDir}}" |
| 112 |
maxTimeInSeconds: 1200 |
| 113 |
maxTimeBetweenOutput: 1200 |
| 114 |
enable_if: |
| 115 |
condition: and |
| 116 |
conditions: |
| 117 |
- condition: property |
| 118 |
property: host.os |
| 119 |
equals_value: Windows |
| 120 |
- condition: property |
| 121 |
property: features |
| 122 |
contains_value: Packaging |
| 123 |
- type: UploadArtifact |
| 124 |
archiveDirectory: "{{.InstallRoot}}/{{.AgentWorkingDir}}" |
| 125 |
transferType: UploadModuleBuildArtifact |
| 126 |
maxTimeInSeconds: 1200 |
| 127 |
maxTimeBetweenOutput: 1200 |
| 128 |
- type: EnvironmentVariable |
| 129 |
variableName: COIN_CONFIG_TYPE |
| 130 |
variableValue: "Target" |
| 131 |
- !include "{{qt/qtbase}}/cmake_build_standalone_examples_target.yaml" |
| 132 |
- !include "{{qt/qtbase}}/qmake/get_qmake_location_target.yaml" |
| 133 |
- !include "{{qt/qtbase}}/qmake_examples/build_qmake_examples_instructions.yaml" |
| 134 |
|
| 135 |
- type: Group |
| 136 |
instructions: |
| 137 |
- !include "{{qt/qtbase}}/build_android_javadocs.yaml" |
| 138 |
enable_if: |
| 139 |
condition: and |
| 140 |
conditions: |
| 141 |
- condition: property |
| 142 |
property: features |
| 143 |
contains_value: JavaDocs |
| 144 |
- condition: property |
| 145 |
property: target.osVersion |
| 146 |
equals_value: "Android_ANY" |
| 147 |
- condition: runtime |
| 148 |
env_var: TESTED_MODULE_COIN |
| 149 |
equals_value: "qtdeclarative" |