vcpkg/ports/magnum-plugins/vcpkg.json
Billy O'Neal b295670e4b
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 01:24:04 -07:00

412 lines
8.6 KiB
JSON

{
"name": "magnum-plugins",
"version-string": "2020.06",
"port-version": 7,
"description": "Plugins for magnum, C++11/C++14 graphics middleware for games and data visualization",
"homepage": "https://magnum.graphics/",
"dependencies": [
{
"name": "magnum",
"default-features": false
}
],
"default-features": [
"ddsimporter",
"icoimporter",
"miniexrimageconverter",
"opengeximporter",
"stanfordimporter",
"stanfordsceneconverter",
"stbimageconverter",
"stbimageimporter",
"stlimporter"
],
"features": {
"assimpimporter": {
"description": "AssimpImporter plugin",
"dependencies": [
"assimp",
{
"name": "magnum",
"default-features": false,
"features": [
"anyimageimporter"
]
},
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"basisimageconverter": {
"description": "BasisImageConverter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"basisimporter": {
"description": "BasisImporter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"ddsimporter": {
"description": "DdsImporter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"devilimageimporter": {
"description": "DevIlImageImporter plugin",
"dependencies": [
"devil",
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"drflacaudioimporter": {
"description": "DrFlacAudioImporter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"audio"
]
}
]
},
"drmp3audioimporter": {
"description": "DrMp3AudioImporter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"audio"
]
}
]
},
"drwavaudioimporter": {
"description": "DrWavAudioImporter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"audio"
]
}
]
},
"freetypefont": {
"description": "FreeTypeFont plugin",
"dependencies": [
"freetype",
{
"name": "magnum",
"default-features": false,
"features": [
"text"
]
}
]
},
"glslangshaderconverter": {
"description": "GlslangShaderConverter plugin",
"dependencies": [
"glslang",
{
"name": "magnum",
"default-features": false,
"features": [
"shadertools"
]
}
]
},
"harfbuzzfont": {
"description": "HarfBuzzFont plugin",
"dependencies": [
"harfbuzz",
{
"name": "magnum-plugins",
"default-features": false,
"features": [
"freetypefont"
]
}
]
},
"icoimporter": {
"description": "IcoImporter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"jpegimageconverter": {
"description": "JpegImageConverter plugin",
"dependencies": [
"libjpeg-turbo",
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"jpegimporter": {
"description": "JpegImporter plugin",
"dependencies": [
"libjpeg-turbo",
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"meshoptimizersceneconverter": {
"description": "MeshOptimizerSceneConverter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
},
"meshoptimizer"
]
},
"miniexrimageconverter": {
"description": "MiniExrImageConverter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"openddl": {
"description": "OpenDdl library"
},
"opengeximporter": {
"description": "OpenGexImporter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"anyimageimporter"
]
},
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
},
{
"name": "magnum-plugins",
"default-features": false,
"features": [
"openddl"
]
}
]
},
"pngimageconverter": {
"description": "PngImageConverter plugin",
"dependencies": [
"libpng",
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"pngimporter": {
"description": "PngImporter plugin",
"dependencies": [
"libpng",
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"spirvtoolsshaderconverter": {
"description": "SpirvToolsShaderConverter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"shadertools"
]
},
"spirv-tools"
]
},
"stanfordimporter": {
"description": "StanfordImporter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"stanfordsceneconverter": {
"description": "StanfordSceneConverter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"stbimageconverter": {
"description": "StbImageConverter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"stbimageimporter": {
"description": "StbImageImporter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"stbtruetypefont": {
"description": "StbTrueTypeFont plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"text"
]
}
]
},
"stbvorbisaudioimporter": {
"description": "StbVorbisAudioImporter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"audio"
]
}
]
},
"stlimporter": {
"description": "StlImporter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
}
]
},
"tinygltfimporter": {
"description": "TinyGltfImporter plugin",
"dependencies": [
{
"name": "magnum",
"default-features": false,
"features": [
"anyimageimporter"
]
},
{
"name": "magnum",
"default-features": false,
"features": [
"trade"
]
},
{
"name": "magnum-plugins",
"default-features": false,
"features": [
"stbimageimporter"
]
}
]
}
}
}