Commit Graph

6 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
JonLiu1993
1095c177a9
[mimalloc] Update to 1.6.4 (#13629)
* [mimalloc] Update to 1.6.4

* deletecibaseline
2020-09-22 16:38:03 -07:00
Lily
6fb72ff00b
[mimalloc] Install mimalloc-redirect.dll to CMAKE_INSTALL_BINDIR (#11632) 2020-06-01 16:17:34 -07:00
Phoebe
b3bdac11f0
[mimalloc] Update to 1.6.1 (#10062)
* [mimalloc] Update to 1.6.0

* Update patch

* Update ci baseline file

* Add message for the arch and platform that doesn't support

* Update the ci baseline file

* Update to latest revision 1.6.1
2020-03-19 00:39:00 -07:00
Victor Romero
a3a6530631
[vcpkg_check_features] Set output variable explicitly and allow reverse-logic check (#7558)
* [vcpkg_check_features] Set OUT_EXPAND_OPTIONS explicitly

* [vcpkg_check_features] Allow reverse logic for features

* [vcpkg_check_features] Document new parameters

* [vcpkg_check_features] Remove unnecessary logging

* Do not create variables for each feature only set OUT_FEATURE_OPTIONS

* Improve documentation

* Update ports that use vcpkg_check_features()

* Missing documentation updates

* [pcl] Fix tools feature

* [opencv,opencv4] Fix usage of vcpkg_check_features()

* [opencv4] Fix typo
2019-08-13 20:13:55 -07:00
myd7349
3c418f814d [mimalloc] Add new port (fix #6996) (#7011)
* [mimalloc] Add new port (fix #6996)

* [mimalloc] Fix x64-uwp build error

* [mimalloc] Fix interface include directory

* [mimalloc] Add features

* [mimalloc] Make the patch vcpkg friendly

* [mimalloc] Update to 2019-06-25

* [mimalloc] Use vcpkg_check_features

* [mimalloc] Clean
2019-07-22 11:16:02 -07:00