Debian Codegraph @

coin/instructions/cmake_module_build_instructions.yaml

raw
1 type: Group
2 instructions:
3 - type: ChangeDirectory
4 directory: "{{.SourceDir}}"
5 - type: MakeDirectory
6 directory: .git
7 - type: MakeDirectory
8 directory: "{{.SourceDir}}_build"
9 - type: SetBuildDirectory
10 directory: "{{.SourceDir}}_build"
11 - type: ChangeDirectory
12 directory: "{{.BuildDir}}"
13
14 - type: EnvironmentVariable
15 variableName: COIN_CONFIGURE_ARGS
16 variableValue: "{{.Env.NON_QTBASE_CONFIGURE_ARGS}}"
17 - type: EnvironmentVariable
18 variableName: COIN_CMAKE_ARGS
19 variableValue: "{{.Env.NON_QTBASE_CMAKE_ARGS}} {{.Env.COMMON_NON_QTBASE_CMAKE_ARGS}}"
20 - type: AppendToEnvironmentVariable
21 variableName: CONFIGURE_ARGS
22 variableValue: " ${{ToUpper .Env.TESTED_MODULE_COIN}}_CONFIGURE_ARGS"
23 enable_if:
24 condition: runtime
25 env_var: "{{ToUpper .Env.TESTED_MODULE_COIN}}_CONFIGURE_ARGS"
26 not_equals_value: null
27 - type: AppendToEnvironmentVariable
28 variableName: COIN_CMAKE_ARGS
29 variableValue: " ${{ToUpper .Env.TESTED_MODULE_COIN}}_CMAKE_ARGS"
30 enable_if:
31 condition: runtime
32 env_var: "{{ToUpper .Env.TESTED_MODULE_COIN}}_CMAKE_ARGS"
33 not_equals_value: null
34 - type: EnvironmentVariable
35 variableName: CONFIGURE_ENV_PREFIX
36 variableValue: "{{.Env.ENV_PREFIX}}"
37 - !include "{{qt/qtbase}}/call_configure_module.yaml"
38
39 - type: EnvironmentVariable
40 variableName: CMAKE_BUILD_TIMEOUT
41 variableValue: "6000"
42 enable_if:
43 condition: runtime
44 env_var: CMAKE_BUILD_TIMEOUT
45 equals_value: null
46 - type: EnvironmentVariable
47 variableName: CMAKE_BUILD_OUTPUT_TIMEOUT
48 variableValue: "1200"
49 enable_if:
50 condition: runtime
51 env_var: CMAKE_BUILD_OUTPUT_TIMEOUT
52 equals_value: null
53 - type: ExecuteCommand
54 command: "{{.Env.CONFIGURE_ENV_PREFIX}} cmake --build . --parallel -v"
55 maxTimeInSeconds: "{{.Env.CMAKE_BUILD_TIMEOUT}}"
56 maxTimeBetweenOutput: "{{.Env.CMAKE_BUILD_OUTPUT_TIMEOUT}}"
57 userMessageOnFailure: >
58 Failed to build sources.
59 - type: EnvironmentVariable
60 variableName: COIN_CMAKE_INSTALL_DIR
61 variableValue: "{{.InstallDir}}"
62 - type: EnvironmentVariable
63 variableName: COIN_CMAKE_INSTALL_LIBEXEC_DIR
64 variableValue: "{{.Env.COIN_CMAKE_INSTALL_DIR}}{{.Env.CI_PATH_SEP}}libexec"
65 disable_if:
66 condition: and
67 conditions:
68 - condition: property
69 property: host.os
70 equals_value: Windows
71 - condition: property
72 property: target.osVersion
73 not_in_values: [WebAssembly, Android_ANY]
74 - type: EnvironmentVariable
75 variableName: COIN_CMAKE_INSTALL_LIBEXEC_DIR
76 variableValue: "{{.Env.COIN_CMAKE_INSTALL_DIR}}{{.Env.CI_PATH_SEP}}bin"
77 enable_if:
78 condition: and
79 conditions:
80 - condition: property
81 property: host.os
82 equals_value: Windows
83 - condition: property
84 property: target.osVersion
85 not_in_values: [WebAssembly, Android_ANY]
86 - !include "{{qt/qtbase}}/call_host_install.yaml"
87 - type: EnvironmentVariable
88 variableName: DESTDIR
89 variableValue: "{{.InstallRoot}}"
90 - !include "{{qt/qtbase}}/call_host_install.yaml"
91 - type: EnvironmentVariable
92 variableName: DESTDIR
93 variableValue: ""
94 - type: SignPackage
95 enable_if:
96 condition: and
97 conditions:
98 - condition: property
99 property: host.os
100 equals_value: Windows
101 - condition: property
102 property: features
103 contains_value: Packaging
104 directory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
105 maxTimeInSeconds: 1200
106 maxTimeBetweenOutput: 1200
107 - type: UploadArtifact
108 archiveDirectory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
109 transferType: UploadModuleBuildArtifact
110 maxTimeInSeconds: 1200
111 maxTimeBetweenOutput: 1200
112 - type: EnvironmentVariable
113 variableName: COIN_CONFIG_TYPE
114 variableValue: "Host"
115 - !include "{{qt/qtbase}}/cmake_build_standalone_examples_host.yaml"
116 - !include "{{qt/qtbase}}/qmake/get_qmake_location_host.yaml"
117 - !include "{{qt/qtbase}}/qmake_examples/build_qmake_examples_instructions.yaml"