mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-06 17:25:24 +08:00
qt 6.5.1 original
This commit is contained in:
55
coin/instructions/qmake/call_make.yaml
Normal file
55
coin/instructions/qmake/call_make.yaml
Normal file
@ -0,0 +1,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"
|
19
coin/instructions/qmake/ensure_pro_file.cmake
Normal file
19
coin/instructions/qmake/ensure_pro_file.cmake
Normal file
@ -0,0 +1,19 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
# CMake script to ensure that a qmake project file exists.
|
||||
#
|
||||
# Usage: cmake -DPRO_FILE=.../project.pro -P .../ensure_pro_file.cmake
|
||||
#
|
||||
# This script checks for existence of ${PRO_FILE} and creates a fake one, if needed.
|
||||
#
|
||||
|
||||
if(NOT EXISTS "${PRO_FILE}")
|
||||
get_filename_component(dir "${PRO_FILE}" DIRECTORY)
|
||||
if(NOT IS_DIRECTORY "${dir}")
|
||||
file(MAKE_DIRECTORY "${dir}")
|
||||
endif()
|
||||
|
||||
file(WRITE "${PRO_FILE}" "TEMPLATE = aux
|
||||
")
|
||||
endif()
|
16
coin/instructions/qmake/get_qmake_location_host.yaml
Normal file
16
coin/instructions/qmake/get_qmake_location_host.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
type: Group
|
||||
instructions:
|
||||
- type: EnvironmentVariable
|
||||
variableName: COIN_QMAKE_LOCATION
|
||||
variableValue: "{{.InstallDir}}\\bin\\qmake"
|
||||
enable_if:
|
||||
condition: property
|
||||
property: host.os
|
||||
equals_value: Windows
|
||||
- type: EnvironmentVariable
|
||||
variableName: COIN_QMAKE_LOCATION
|
||||
variableValue: "{{.InstallDir}}/bin/qmake"
|
||||
disable_if:
|
||||
condition: property
|
||||
property: host.os
|
||||
equals_value: Windows
|
29
coin/instructions/qmake/get_qmake_location_target.yaml
Normal file
29
coin/instructions/qmake/get_qmake_location_target.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
type: Group
|
||||
instructions:
|
||||
- type: EnvironmentVariable
|
||||
variableName: COIN_QMAKE_LOCATION
|
||||
variableValue: "{{.InstallDir}}\\target\\bin\\qmake.bat"
|
||||
enable_if:
|
||||
condition: property
|
||||
property: host.os
|
||||
equals_value: Windows
|
||||
- type: Group
|
||||
disable_if:
|
||||
condition: property
|
||||
property: host.os
|
||||
equals_value: Windows
|
||||
instructions:
|
||||
- type: EnvironmentVariable
|
||||
variableName: COIN_QMAKE_LOCATION
|
||||
variableValue: "{{.InstallDir}}/target/bin/qmake"
|
||||
disable_if:
|
||||
condition: property
|
||||
property: target.osVersion
|
||||
equals_value: QEMU
|
||||
- type: EnvironmentVariable
|
||||
variableName: COIN_QMAKE_LOCATION
|
||||
variableValue: "{{.InstallDir}}/target/bin/host-qmake"
|
||||
enable_if:
|
||||
condition: property
|
||||
property: target.osVersion
|
||||
equals_value: QEMU
|
Reference in New Issue
Block a user