Commit Graph

12 Commits

Author SHA1 Message Date
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
Lily
0b26c1fe58
[libsamplerate, sdl2-gfx] Fix build error with Visual Studio 2019 version 16.9 (#14348) 2020-11-03 16:25:46 -08:00
NancyLi1013
56738de192
[sdl2-gfx] Fix build error on non windows (#10575)
* [sdl2-gfx] Fix build error on non windows

* Update as review suggestions

* Updated to support osx
2020-04-24 14:05:43 -07:00
Tatsuro Shibamura
268d7bb406 [sdl2-gfx] Fixed build error ARM64 Windows 10 (#9314)
* [sdl2-gfx] Fixed build error ARM64 Windows 10

* [sdl2-gfx] Update CI baseline

* [sdl2-gfx] Fixed function name

* Revert ci.baseline.txt

* Remove sdl2-gfx:arm64-windows from ci.baseline.txt

Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
2020-01-27 14:32:23 -08:00
David Katz
7ac7a46343 [sdl2-gfx] Update CMake build and find_package support (#9319)
* [sdl2-gfx] Update CMake build and find_package support

* Update build process to more closely mimic other SDL2 extensions

* Bump CONTROL version number

* Remove uneeded wrapper file

* Remove uneeded wrapper file

* [sdl2-gfx] Simplification. Add cmake find_dependency(SDL2).

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
2019-12-23 15:52:14 -08:00
Phoebe
bcff929875 Add PREFER_NINJA to many ports (#7468)
* Add PREFER_NINJA to many ports
2019-07-31 13:01:02 -07:00
Antonio Maiorano
df753fbcf5 Fix sdl2-gfx, sdl2-image, sdl2-mixer, sdl2-net, and sdl2-ttf forcing debug lib first (SDL2d) (#5948)
Prevent SDL2 dependent libraries from always linking against debug.
2019-05-01 13:36:57 -07:00
Daniel
7dcf30197e Update various SDL2-based libraries (#5623)
* [sdl2-gfx] Update to 1.0.4

* [sdl2-mixer] Update to 2.0.4 (#4934)

* [sdl2-image] Update to 2.0.4

* [sdl2-ttf] Update to 2.0.15

* [sdl2-gfx,-image,-ttf] Use vcpkg_extract_source_archive_ex()
2019-03-11 13:15:08 -07:00
Robert Schumacher
deee8c1743 [sdl2-gfx][sdl2-image][sdl2-mixer][sdl2-net][sdl2-ttf] Fix accidental link of release libs in debug mode. 2017-10-19 19:24:49 -07:00
Alexander Karatarakis
26516fe485 vcpkg_configure_cmake (and _meson) now embed debug symbols within static libs (/Z7) 2017-09-09 00:12:54 -07:00
Robert Schumacher
09bce9186e [sdl2-gfx] Small cleanup, better support static linking 2017-07-07 17:44:23 -07:00
David Nerjes
1eedcc9b00 initial port of sdl2_gfx 2017-07-06 09:27:23 +02:00