vcpkg/ports/qt5/vcpkg.json

345 lines
6.6 KiB
JSON
Raw Normal View History

Bulk convert control files. (#19986) ``` function Convert-Control { Param($full) .\vcpkg.exe format-manifest $full $root = $full.Substring(0, $full.Length - 7) # CONTROL $new = $root + 'vcpkg.json' $content = Get-Content -Raw $new $asJson = ConvertFrom-Json $content -AsHashtable -Depth 100 $oldVersion = $asJson['port-version'] if ($null -eq $oldVersion) { $oldVersionFull = $asJson['version-string'] Write-Host "Got version $oldVersionFull" $match = [System.Text.RegularExpressions.Regex]::Match($oldVersionFull, '^(.+)-(\d+)$') if ($match.Success -and -not [System.Text.RegularExpressions.Regex]::IsMatch($oldVersionFull, '^\d\d\d\d-\d\d-\d\d$')) { $newFullVersion = [string]$match.Groups[1].Value $oldVersion = [int]$match.Groups[2].Value Write-Host "newFullVersion $newFullVersion oldVersion $oldVersion" $newVersion = $oldVersion + 1 $asJson['version-string'] = $newFullVersion Write-Host "Previous version for $full extracted from version field -- setting version-string $newFullVersion and port-version $newVersion" } else { Write-Host "No previous version for $full -- setting 1" $newVersion = 1 } } else { $newVersion = [int]$oldVersion + 1 Write-Host "New version for $full : $newVersion" } $asJson['port-version'] = $newVersion $content = ConvertTo-Json $asJson -Depth 100 Set-Content -Path $new -Value $content .\vcpkg.exe format-manifest $new } Get-ChildItem ports\CONTROL -Recurse | Foreach-Object { Convert-Control $_.FullName } git commit -am "this message" .\vcpkg.exe x-add-version -all git commit -a --amend ```
2021-09-09 16:24:04 +08:00
{
"name": "qt5",
"version-string": "5.15.2",
"port-version": 1,
"description": "Qt5 Application Framework",
"homepage": "https://www.qt.io/",
"dependencies": [
{
"name": "qt5-base",
"default-features": false
}
],
"default-features": [
"essentials"
],
"features": {
"3d": {
"description": [],
"dependencies": [
"qt5-3d"
]
},
"activeqt": {
"description": "Windows Only",
"dependencies": [
{
"name": "qt5-activeqt",
"platform": "windows"
}
]
},
"all": {
"description": "Install all Qt5 submodules (Warning: Could take a long time and fail...)",
"dependencies": [
{
"name": "qt5",
"features": [
"3d",
"activeqt",
"charts",
"connectivity",
"datavis3d",
"declarative",
"doc",
"extras",
"gamepad",
"graphicaleffects",
"imageformats",
"location",
"mqtt",
"multimedia",
"networkauth",
"purchasing",
"quickcontrols",
"quickcontrols2",
"remoteobjects",
"script",
"scxml",
"sensors",
"serialbus",
"serialport",
"speech",
"svg",
"tools",
"translations",
"virtualkeyboard",
"webchannel",
"webglplugin",
"websockets",
"webview",
"xmlpatterns"
]
},
{
"name": "qt5",
"default-features": false,
"features": [
"mysqlplugin",
"webengine"
],
"platform": "!static"
},
{
"name": "qt5",
"default-features": false,
"features": [
"wayland"
],
"platform": "!windows"
}
]
},
"charts": {
"description": [],
"dependencies": [
"qt5-charts"
]
},
"connectivity": {
"description": [],
"dependencies": [
"qt5-connectivity"
]
},
"datavis3d": {
"description": [],
"dependencies": [
"qt5-datavis3d"
]
},
"declarative": {
"description": [],
"dependencies": [
"qt5-declarative"
]
},
"doc": {
"description": [],
"dependencies": [
"qt5-doc"
]
},
"essentials": {
"description": "Build the essential qt modules",
"dependencies": [
{
"name": "qt5",
"default-features": false,
"features": [
"activeqt",
"declarative",
"imageformats",
"multimedia",
"networkauth",
"quickcontrols2",
"svg",
"tools"
]
}
]
},
"extras": {
"description": [],
"dependencies": [
{
"name": "qt5-androidextras",
"platform": "android"
},
{
"name": "qt5-macextras",
"platform": "osx"
},
{
"name": "qt5-winextras",
"platform": "windows"
},
{
"name": "qt5-x11extras",
"platform": "linux"
}
]
},
"gamepad": {
"description": [],
"dependencies": [
"qt5-gamepad"
]
},
"graphicaleffects": {
"description": [],
"dependencies": [
"qt5-graphicaleffects"
]
},
"imageformats": {
"description": [],
"dependencies": [
"qt5-imageformats"
]
},
"latest": {
"description": "Build latest qt version (5.15.2) instead of LTS (Currently latest==LTS)",
"dependencies": [
{
"name": "qt5-base",
"default-features": false,
"features": [
"latest"
]
}
]
},
"location": {
"description": [],
"dependencies": [
"qt5-location"
]
},
"mqtt": {
"description": [],
"dependencies": [
"qt5-mqtt"
]
},
"multimedia": {
"description": [],
"dependencies": [
"qt5-multimedia"
]
},
"networkauth": {
"description": [],
"dependencies": [
"qt5-networkauth"
]
},
"purchasing": {
"description": [],
"dependencies": [
"qt5-purchasing"
]
},
"quickcontrols": {
"description": "(deprecated)",
"dependencies": [
"qt5-quickcontrols"
]
},
"quickcontrols2": {
"description": [],
"dependencies": [
"qt5-quickcontrols2"
]
},
"remoteobjects": {
"description": [],
"dependencies": [
"qt5-remoteobjects"
]
},
"script": {
"description": "(deprecated)",
"dependencies": [
"qt5-script"
]
},
"scxml": {
"description": [],
"dependencies": [
"qt5-scxml"
]
},
"sensors": {
"description": [],
"dependencies": [
"qt5-sensors"
]
},
"serialbus": {
"description": [],
"dependencies": [
"qt5-serialbus"
]
},
"serialport": {
"description": [],
"dependencies": [
"qt5-serialport"
]
},
"speech": {
"description": [],
"dependencies": [
"qt5-speech"
]
},
"svg": {
"description": [],
"dependencies": [
"qt5-svg"
]
},
"tools": {
"description": [],
"dependencies": [
"qt5-tools"
]
},
"translations": {
"description": [],
"dependencies": [
"qt5-translations"
]
},
"virtualkeyboard": {
"description": [],
"dependencies": [
"qt5-virtualkeyboard"
]
},
"wayland": {
"description": [],
"dependencies": [
"qt5-wayland"
]
},
"webchannel": {
"description": [],
"dependencies": [
"qt5-webchannel"
]
},
"webengine": {
"description": [],
"dependencies": [
"qt5-webengine"
]
},
"webglplugin": {
"description": [],
"dependencies": [
"qt5-webglplugin"
]
},
"websockets": {
"description": [],
"dependencies": [
"qt5-websockets"
]
},
"webview": {
"description": [],
"dependencies": [
"qt5-webview"
]
},
"xmlpatterns": {
"description": "(deprecated)",
"dependencies": [
"qt5-xmlpatterns"
]
}
}
}