diff options
| author | Billy O'Neal <bion@microsoft.com> | 2021-09-09 01:24:04 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-09 01:24:04 -0700 |
| commit | b295670e4bab14debe88d92cd5364b21ce26232c (patch) | |
| tree | 29a1d985c11d3bb45ef6be14d524652c60b08429 /ports/qt5 | |
| parent | 7e044226c8a6f43dac7d9e0efd8edbf8ff5ecd04 (diff) | |
| download | vcpkg-b295670e4bab14debe88d92cd5364b21ce26232c.tar.gz vcpkg-b295670e4bab14debe88d92cd5364b21ce26232c.zip | |
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
```
Diffstat (limited to 'ports/qt5')
| -rw-r--r-- | ports/qt5/CONTROL | 162 | ||||
| -rw-r--r-- | ports/qt5/vcpkg.json | 344 |
2 files changed, 344 insertions, 162 deletions
diff --git a/ports/qt5/CONTROL b/ports/qt5/CONTROL deleted file mode 100644 index 085cfa17e..000000000 --- a/ports/qt5/CONTROL +++ /dev/null @@ -1,162 +0,0 @@ -Source: qt5 -Version: 5.15.2 -Homepage: https://www.qt.io/ -Description: Qt5 Application Framework -Build-Depends: qt5-base[core] -Default-Features: essentials - -Feature: essentials -Build-Depends: qt5[core, tools, networkauth, quickcontrols2, multimedia, imageformats, declarative, svg, activeqt] -Description: Build the essential qt modules - -Feature: latest -Build-Depends: qt5-base[core, latest] -Description: Build latest qt version (5.15.2) instead of LTS (Currently latest==LTS) - -Feature: all -Build-Depends: qt5[3d, webchannel, websockets, extras, xmlpatterns, sensors, serialport, speech, svg, tools, virtualkeyboard, networkauth, purchasing, quickcontrols, quickcontrols2, script, scxml, activeqt, charts, datavis3d, declarative, gamepad, graphicaleffects, imageformats, location, multimedia, mqtt, webglplugin, webview, serialbus, translations, doc, remoteobjects, connectivity], qt5[core,webengine,mysqlplugin] (!static), qt5[core,wayland] (!windows) -Description: Install all Qt5 submodules (Warning: Could take a long time and fail...) - -Feature: extras -Build-Depends: qt5-winextras (windows), qt5-macextras (osx), qt5-x11extras (linux), qt5-androidextras (android) -Description: - -Feature: 3d -Build-Depends: qt5-3d -Description: - -Feature: webchannel -Build-Depends: qt5-webchannel -Description: - -Feature: websockets -Build-Depends: qt5-websockets -Description: - -Feature: xmlpatterns -Build-Depends: qt5-xmlpatterns -Description: (deprecated) - -Feature: sensors -Build-Depends: qt5-sensors -Description: - -Feature: serialport -Build-Depends: qt5-serialport -Description: - -Feature: speech -Build-Depends: qt5-speech -Description: - -Feature: svg -Build-Depends: qt5-svg -Description: - -Feature: tools -Build-Depends: qt5-tools -Description: - -Feature: virtualkeyboard -Build-Depends: qt5-virtualkeyboard -Description: - -Feature: networkauth -Build-Depends: qt5-networkauth -Description: - -Feature: purchasing -Build-Depends: qt5-purchasing -Description: - -Feature: quickcontrols -Build-Depends: qt5-quickcontrols -Description: (deprecated) - -Feature: quickcontrols2 -Build-Depends: qt5-quickcontrols2 -Description: - -Feature: script -Build-Depends: qt5-script -Description: (deprecated) - -Feature: scxml -Build-Depends: qt5-scxml -Description: - -Feature: activeqt -Build-Depends: qt5-activeqt (windows) -Description: Windows Only - -Feature: charts -Build-Depends: qt5-charts -Description: - -Feature: datavis3d -Build-Depends: qt5-datavis3d -Description: - -Feature: declarative -Build-Depends: qt5-declarative -Description: - -Feature: gamepad -Build-Depends: qt5-gamepad -Description: - -Feature: graphicaleffects -Build-Depends: qt5-graphicaleffects -Description: - -Feature: imageformats -Build-Depends: qt5-imageformats -Description: - -Feature: location -Build-Depends: qt5-location -Description: - -Feature: multimedia -Build-Depends: qt5-multimedia -Description: - -Feature: mqtt -Build-Depends: qt5-mqtt -Description: - -Feature: webglplugin -Build-Depends: qt5-webglplugin -Description: - -Feature: webview -Build-Depends: qt5-webview -Description: - -Feature: wayland -Build-Depends: qt5-wayland -Description: - -Feature: webengine -Build-Depends: qt5-webengine -Description: - -Feature: serialbus -Build-Depends: qt5-serialbus -Description: - -Feature: translations -Build-Depends: qt5-translations -Description: - -Feature: doc -Build-Depends: qt5-doc -Description: - -Feature: remoteobjects -Build-Depends: qt5-remoteobjects -Description: - -Feature: connectivity -Build-Depends: qt5-connectivity -Description: diff --git a/ports/qt5/vcpkg.json b/ports/qt5/vcpkg.json new file mode 100644 index 000000000..bbf4197fd --- /dev/null +++ b/ports/qt5/vcpkg.json @@ -0,0 +1,344 @@ +{ + "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" + ] + } + } +} |
