summaryrefslogtreecommitdiffstats
path: root/coin/instructions/qmake/call_make.yaml
blob: 59babe9e0c0bf0de854f4821cca6f93d57840fcb (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:
  # Call jom when host os is Windows + MSVC
  - type: Group
    instructions:
    # Clear the automatically set MAKEFLAGS variable
    - type: EnvironmentVariable
      variableName: MAKEFLAGS
      variableValue: ""
    # Call jom
    - type: ExecuteCommand
      command: "{{.Env.ENV_PREFIX}} {{.Env.CI_JOM_PATH}}\\jom.exe"
      executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
      maxTimeInSeconds: 6000
      maxTimeBetweenOutput: 1200
      userMessageOnFailure: >
        Failed to call jom.
    enable_if:
      condition: and
      conditions:
        - condition: property
          property: host.os
          equals_value: Windows
        - condition: property
          property: host.compiler
          not_contains_value: "Mingw"
  # Call make when host os is not Windows (Linux, macOS)
  - type: ExecuteCommand
    command: "{{.Env.CALL_MAKE_ENV_PREFIX}} make"
    executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
    maxTimeInSeconds: 6000
    maxTimeBetweenOutput: 1200
    userMessageOnFailure: >
      Failed to call make.
    enable_if:
      condition: property
      property: target.os
      not_equals_value: Windows
  # Call mingw32-make when host os is Windows + MinGW (this includes building for Android)
  - type: ExecuteCommand
    command: "{{.Env.CALL_MAKE_ENV_PREFIX}} mingw32-make"
    executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
    maxTimeInSeconds: 6000
    maxTimeBetweenOutput: 1200
    userMessageOnFailure: >
      Failed to call mingw32-make.
    enable_if:
      condition: and
      conditions:
        - condition: property
          property: host.os
          equals_value: Windows
        - condition: property
          property: host.compiler
          contains_value: "Mingw"