summaryrefslogtreecommitdiffstats
path: root/coin/instructions/qmake_module_build.yaml
blob: 3a7801b20a2b731b9865be0f02838fc4d940a466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
type: Group
instructions:
  - type: MakeDirectory
    directory: ".git"

  - type: Group
    instructions:
      - type: InstallSourceArchive
        maxTimeInSeconds: 600
        maxTimeBetweenOutput: 600
        project: qtsdk/tqtc-qtsdk
        ref: production
        directory: qtsdk/tqtc-qtsdk
        userMessageOnFailure: "Could not install qtsdk/tqtc-qtsdk source archive. Please investigate why."

  - type: SetBuildDirectory
    directory: "{{.SourceDir}}"
    disable_if:
      condition: property
      property: features
      contains_value: OutOfSourceBuild
  - type: Group
    instructions:
      - type: SetBuildDirectory
        directory: "{{.AgentWorkingDir}}/build"
      - type: MakeDirectory
        directory: "{{.BuildDir}}"
    enable_if:
      condition: property
      property: features
      contains_value: OutOfSourceBuild
  - type: ChangeDirectory
    directory: "{{.BuildDir}}"

  - type: ExecuteCommand
    command: ["{{.InstallDir}}/bin/qmake", "CONFIG+=libarchive", "QTPLUGIN.platforms = qminimal qxcb", "INSTALL_PREFIX={{.InstallDir}}", "{{.SourceDir}}"]
    maxTimeInSeconds: 1800
    maxTimeBetweenOutput: 600
    userMessageOnFailure: "Failed to run qmake, check logs."
    enable_if:
      condition: property
      property: host.os
      equals_value: Linux

  - type: ExecuteCommand
    command: ["{{.InstallDir}}/bin/qmake", "CONFIG+=libarchive", "INSTALL_PREFIX={{.InstallDir}}", "{{.SourceDir}}"]
    maxTimeInSeconds: 1800
    maxTimeBetweenOutput: 600
    userMessageOnFailure: "Failed to run qmake, check logs."
    enable_if:
      condition: property
      property: host.os
      not_equals_value: Linux
  - !include "{{installer-framework/installer-framework}}/make_instructions.yaml"
  - !include "{{installer-framework/installer-framework}}/make_documentation.yaml"