-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
2,151 additions
and
799 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
{ | ||
"version": 3, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 22, | ||
"patch": 0 | ||
}, | ||
"configurePresets": [ | ||
{ | ||
"name": "macos", | ||
"displayName": "macOS Universal", | ||
"description": "Build for macOS 11.0+ (Universal binary)", | ||
"binaryDir": "${sourceDir}/build_macos", | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Darwin" | ||
}, | ||
"generator": "Xcode", | ||
"warnings": {"dev": true, "deprecated": true}, | ||
"cacheVariables": { | ||
"QT_VERSION": "6", | ||
"CMAKE_OSX_DEPLOYMENT_TARGET": "11.0", | ||
"CODESIGN_IDENTITY": "$penv{CODESIGN_IDENT}", | ||
"CODESIGN_TEAM": "$penv{CODESIGN_TEAM}", | ||
"ENABLE_FRONTEND_API": false, | ||
"ENABLE_QT": false | ||
} | ||
}, | ||
{ | ||
"name": "macos-ci", | ||
"inherits": ["macos"], | ||
"displayName": "macOS Universal CI build", | ||
"description": "Build for macOS 11.0+ (Universal binary) for CI", | ||
"generator": "Xcode", | ||
"cacheVariables": { | ||
"CMAKE_COMPILE_WARNING_AS_ERROR": true | ||
} | ||
}, | ||
{ | ||
"name": "windows-x64", | ||
"displayName": "Windows x64", | ||
"description": "Build for Windows x64", | ||
"binaryDir": "${sourceDir}/build_x64", | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Windows" | ||
}, | ||
"generator": "Visual Studio 17 2022", | ||
"architecture": "x64", | ||
"warnings": {"dev": true, "deprecated": true}, | ||
"cacheVariables": { | ||
"QT_VERSION": "6", | ||
"CMAKE_SYSTEM_VERSION": "10.0.18363.657", | ||
"ENABLE_FRONTEND_API": false, | ||
"ENABLE_QT": false | ||
} | ||
}, | ||
{ | ||
"name": "windows-ci-x64", | ||
"inherits": ["windows-x64"], | ||
"displayName": "Windows x64 CI build", | ||
"description": "Build for Windows x64 on CI", | ||
"cacheVariables": { | ||
"CMAKE_COMPILE_WARNING_AS_ERROR": true | ||
} | ||
}, | ||
{ | ||
"name": "linux-x86_64", | ||
"displayName": "Linux x86_64", | ||
"description": "Build for Linux x86_64", | ||
"binaryDir": "${sourceDir}/build_x86_64", | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Linux" | ||
}, | ||
"generator": "Ninja", | ||
"warnings": {"dev": true, "deprecated": true}, | ||
"cacheVariables": { | ||
"QT_VERSION": "6", | ||
"CMAKE_BUILD_TYPE": "RelWithDebInfo", | ||
"ENABLE_FRONTEND_API": false, | ||
"ENABLE_QT": false | ||
} | ||
}, | ||
{ | ||
"name": "linux-ci-x86_64", | ||
"inherits": ["linux-x86_64"], | ||
"displayName": "Linux x86_64 CI build", | ||
"description": "Build for Linux x86_64 on CI", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "RelWithDebInfo", | ||
"CMAKE_COMPILE_WARNING_AS_ERROR": true | ||
} | ||
}, | ||
{ | ||
"name": "linux-aarch64", | ||
"displayName": "Linux aarch64", | ||
"description": "Build for Linux aarch64", | ||
"binaryDir": "${sourceDir}/build_aarch64", | ||
"condition": { | ||
"type": "equals", | ||
"lhs": "${hostSystemName}", | ||
"rhs": "Linux" | ||
}, | ||
"generator": "Ninja", | ||
"warnings": {"dev": true, "deprecated": true}, | ||
"cacheVariables": { | ||
"QT_VERSION": "6", | ||
"CMAKE_BUILD_TYPE": "RelWithDebInfo", | ||
"ENABLE_FRONTEND_API": false, | ||
"ENABLE_QT": false | ||
} | ||
}, | ||
{ | ||
"name": "linux-ci-aarch64", | ||
"inherits": ["linux-aarch64"], | ||
"displayName": "Linux aarch64 CI build", | ||
"description": "Build for Linux aarch64 on CI", | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "RelWithDebInfo", | ||
"CMAKE_COMPILE_WARNING_AS_ERROR": true | ||
} | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "macos", | ||
"configurePreset": "macos", | ||
"displayName": "macOS Universal", | ||
"description": "macOS build for Universal architectures", | ||
"configuration": "Release" | ||
}, | ||
{ | ||
"name": "macos-ci", | ||
"configurePreset": "macos-ci", | ||
"displayName": "macOS Universal CI", | ||
"description": "macOS CI build for Universal architectures", | ||
"configuration": "RelWithDebInfo" | ||
}, | ||
{ | ||
"name": "windows-x64", | ||
"configurePreset": "windows-x64", | ||
"displayName": "Windows x64", | ||
"description": "Windows build for x64", | ||
"configuration": "RelWithDebInfo" | ||
}, | ||
{ | ||
"name": "windows-ci-x64", | ||
"configurePreset": "windows-ci-x64", | ||
"displayName": "Windows x64 CI", | ||
"description": "Windows CI build for x64 (RelWithDebInfo configuration)", | ||
"configuration": "RelWithDebInfo" | ||
}, | ||
{ | ||
"name": "linux-x86_64", | ||
"configurePreset": "linux-x86_64", | ||
"displayName": "Linux x86_64", | ||
"description": "Linux build for x86_64", | ||
"configuration": "RelWithDebInfo" | ||
}, | ||
{ | ||
"name": "linux-ci-x86_64", | ||
"configurePreset": "linux-ci-x86_64", | ||
"displayName": "Linux x86_64 CI", | ||
"description": "Linux CI build for x86_64", | ||
"configuration": "RelWithDebInfo" | ||
}, | ||
{ | ||
"name": "linux-aarch64", | ||
"configurePreset": "linux-aarch64", | ||
"displayName": "Linux aarch64", | ||
"description": "Linux build for aarch64", | ||
"configuration": "RelWithDebInfo" | ||
}, | ||
{ | ||
"name": "linux-ci-aarch64", | ||
"configurePreset": "linux-ci-aarch64", | ||
"displayName": "Linux aarch64 CI", | ||
"description": "Linux CI build for aarch64", | ||
"configuration": "RelWithDebInfo" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
if (( ! ${+_loglevel} )) typeset -g _loglevel=1 | ||
|
||
if (( _loglevel > 2 )) print -PR -e -- "${CI:+::debug::}%F{220}DEBUG: ${@}%f" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
local icon=' ✖︎ ' | ||
|
||
print -u2 -PR "${CI:+::error::}%F{1} ${icon} %f ${@}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
autoload -Uz log_info | ||
|
||
if (( ! ${+_log_group} )) typeset -g _log_group=0 | ||
|
||
if (( ${+CI} )) { | ||
if (( _log_group )) { | ||
print "::endgroup::" | ||
typeset -g _log_group=0 | ||
} | ||
if (( # )) { | ||
print "::group::${@}" | ||
typeset -g _log_group=1 | ||
} | ||
} else { | ||
if (( # )) log_info ${@} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if (( ! ${+_loglevel} )) typeset -g _loglevel=1 | ||
|
||
if (( _loglevel > 0 )) { | ||
local icon=' =>' | ||
|
||
print -PR "%F{4} ${(r:5:)icon}%f %B${@}%b" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if (( ! ${+_loglevel} )) typeset -g _loglevel=1 | ||
|
||
if (( _loglevel > 0 )) { | ||
local icon='' | ||
|
||
print -PR " ${(r:5:)icon} ${@}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if (( ! ${+_loglevel} )) typeset -g _loglevel=1 | ||
|
||
if (( _loglevel > 0 )) { | ||
local icon=' >' | ||
|
||
print -PR "%F{2} ${(r:5:)icon}%f ${@}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if (( ! ${+_loglevel} )) typeset -g _loglevel=1 | ||
|
||
if (( _loglevel > 0 )) { | ||
local icon=' =>' | ||
|
||
print -PR "${CI:+::warning::}%F{3} ${(r:5:)icon} ${@}%f" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
autoload -Uz log_debug log_error | ||
|
||
local -r _usage="Usage: %B${0}%b <loglevel> | ||
|
||
Set log level, following levels are supported: 0 (quiet), 1 (normal), 2 (verbose), 3 (debug)" | ||
|
||
if (( ! # )); then | ||
log_error 'Called without arguments.' | ||
log_output ${_usage} | ||
return 2 | ||
elif (( ${1} >= 4 )); then | ||
log_error 'Called with loglevel > 3.' | ||
log_output ${_usage} | ||
fi | ||
|
||
typeset -g -i -r _loglevel=${1} | ||
log_debug "Log level set to '${1}'" |
Oops, something went wrong.