mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-06 04:49:06 +08:00
b295670e4b
``` 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 ```
530 lines
11 KiB
JSON
530 lines
11 KiB
JSON
{
|
|
"name": "magnum",
|
|
"version-string": "2020.06",
|
|
"port-version": 7,
|
|
"description": "C++11/C++14 graphics middleware for games and data visualization",
|
|
"homepage": "https://magnum.graphics/",
|
|
"dependencies": [
|
|
{
|
|
"name": "corrade",
|
|
"features": [
|
|
"utility"
|
|
]
|
|
}
|
|
],
|
|
"default-features": [
|
|
"anyaudioimporter",
|
|
"anyimageconverter",
|
|
"anyimageimporter",
|
|
"anysceneconverter",
|
|
"anysceneimporter",
|
|
"anyshaderconverter",
|
|
"debugtools",
|
|
"gl",
|
|
"meshtools",
|
|
"primitives",
|
|
"scenegraph",
|
|
"sdl2application",
|
|
"shaders",
|
|
"shadertools",
|
|
"text",
|
|
"texturetools",
|
|
"trade"
|
|
],
|
|
"features": {
|
|
"al-info": {
|
|
"description": "magnum-al-info utility",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"audio"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"anyaudioimporter": {
|
|
"description": "AnyAudioImporter plugin",
|
|
"dependencies": [
|
|
{
|
|
"name": "corrade",
|
|
"features": [
|
|
"pluginmanager"
|
|
]
|
|
},
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"audio"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"anyimageconverter": {
|
|
"description": "AnyImageConverter plugin",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"trade"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"anyimageimporter": {
|
|
"description": "AnyImageImporter plugin",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"trade"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"anysceneconverter": {
|
|
"description": "AnySceneConverter plugin",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"trade"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"anysceneimporter": {
|
|
"description": "AnySceneImporter plugin",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"trade"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"anyshaderconverter": {
|
|
"description": "AnyShaderConverter plugin",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"shadertools"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"audio": {
|
|
"description": "Audio library",
|
|
"dependencies": [
|
|
"openal-soft"
|
|
]
|
|
},
|
|
"cglcontext": {
|
|
"description": "CglContext library",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"gl"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"debugtools": {
|
|
"description": "DebugTools library"
|
|
},
|
|
"distancefieldconverter": {
|
|
"description": "magnum-distancefieldconverter utility",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"gl"
|
|
]
|
|
},
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"texturetools"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"eglcontext": {
|
|
"description": "EglContext library",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"gl"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"fontconverter": {
|
|
"description": "magnum-fontconverter utility",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"gl"
|
|
]
|
|
},
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"text"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"gl": {
|
|
"description": "GL library"
|
|
},
|
|
"gl-info": {
|
|
"description": "gl-info utility",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"gl"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"glfwapplication": {
|
|
"description": "GlfwApplication library",
|
|
"dependencies": [
|
|
"glfw3"
|
|
]
|
|
},
|
|
"glxcontext": {
|
|
"description": "GlxContext library",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"gl"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"imageconverter": {
|
|
"description": "magnum-imageconverter utility",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"trade"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"magnumfont": {
|
|
"description": "MagnumFont plugin",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"text"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"magnumfontconverter": {
|
|
"description": "MagnumFontConverter plugin",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"text"
|
|
]
|
|
},
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"tgaimageconverter"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"meshtools": {
|
|
"description": "MeshTools library",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"trade"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"objimporter": {
|
|
"description": "ObjImporter plugin",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"trade"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"opengltester": {
|
|
"description": "OpenGLTester library",
|
|
"dependencies": [
|
|
{
|
|
"name": "corrade",
|
|
"features": [
|
|
"testsuite"
|
|
]
|
|
},
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"gl"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"primitives": {
|
|
"description": "Primitives library",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"trade"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"sceneconverter": {
|
|
"description": "magnum-sceneconverter utility",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"anysceneconverter"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"scenegraph": {
|
|
"description": "SceneGraph library"
|
|
},
|
|
"sdl2application": {
|
|
"description": "Sdl2Application library",
|
|
"dependencies": [
|
|
"sdl2"
|
|
]
|
|
},
|
|
"shaderconverter": {
|
|
"description": "magnum-shaderconverter utility",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"anyshaderconverter",
|
|
"shadertools"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"shaders": {
|
|
"description": "Shaders library",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"gl"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"shadertools": {
|
|
"description": "ShaderTools library"
|
|
},
|
|
"text": {
|
|
"description": "Text library",
|
|
"dependencies": [
|
|
{
|
|
"name": "corrade",
|
|
"features": [
|
|
"pluginmanager"
|
|
]
|
|
},
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"gl"
|
|
]
|
|
},
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"texturetools"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"texturetools": {
|
|
"description": "TextureTools library"
|
|
},
|
|
"tgaimageconverter": {
|
|
"description": "TgaImageConverter plugin",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"trade"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"tgaimporter": {
|
|
"description": "TgaImporter plugin",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"trade"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"trade": {
|
|
"description": "Trade library",
|
|
"dependencies": [
|
|
{
|
|
"name": "corrade",
|
|
"features": [
|
|
"pluginmanager"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"vk": {
|
|
"description": "Vk library",
|
|
"dependencies": [
|
|
"vulkan"
|
|
]
|
|
},
|
|
"vk-info": {
|
|
"description": "vk-info utility",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"vk"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"wavaudioimporter": {
|
|
"description": "WavAudioImporter plugin",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"audio"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"wglcontext": {
|
|
"description": "WglContext library",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"gl"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"windowlesscglapplication": {
|
|
"description": "WindowlessCglApplication library",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"gl"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"windowlesseglapplication": {
|
|
"description": "WindowlessEglApplication library",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"gl"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"windowlessglxapplication": {
|
|
"description": "WindowlessGlxApplication library",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"gl"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"windowlesswglapplication": {
|
|
"description": "WindowlessWglApplication library",
|
|
"dependencies": [
|
|
{
|
|
"name": "magnum",
|
|
"default-features": false,
|
|
"features": [
|
|
"gl"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|