Commit Graph

10 Commits

Author SHA1 Message Date
Alexander Neumann
ef9628f449
[vcpkg script] build_nmake use z_vcpkg_get_cmake_vars (#25862)
* use z_vcpkg_get_cmake_vars instead of including the toolchain

* fix typo

Co-authored-by: Osyotr <Osyotr@users.noreply.github.com>

* add supports expressions

* use _ENV_ instead of ENV so vcpkgs flags will overwrite any other flags.
(also fixes pdcurses using LINK)

* v db

* version

Co-authored-by: Osyotr <Osyotr@users.noreply.github.com>
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
2022-08-19 15:12:14 -07:00
Lanyi
39b46237e4
[detours] Add usage tip for detours package (#26398)
* add detours usage

* detours x-add-version
2022-08-18 12:58:38 -07:00
autoantwort
16f5411585
[detours,devicenameresolver,dlfcn-win32,duilib,winpcap] add supports expression (#22776) 2022-01-28 11:18:29 -08:00
Pavel Curtis
d528237995
Detours respects build type (#20776)
* Fix detours port to respect VCPKG_BUILD_TYPE

If the target triplet sets VCPKG_BUILD_TYPE, we can't assume that both '-rel' and 'dbg' build trees exist.

* Bump the port version number.

* Fix tree hash

* Add requested double-quotes around file paths.

* Update tree hash.

Co-authored-by: Pavel Curtis <pavelc@microsoft.com>
2021-10-20 14:48:11 -07:00
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
Charles Milette
04821b8500
[detours] support debug builds (#16755)
* [detours] support debug builds

* Update baseline

* [detours] Update CONTROL

* [detours] Update baseline
2021-03-18 13:18:51 -07:00
Billy O'Neal
09a647a526
Delete use of vcpkg_test_cmake and vcpkg_common_functions. (#13065) 2020-10-28 14:18:07 -07:00
Charles Milette
d51773dd7c
[detours] Update for vcpkg_build_nmake 2019-11-01 14:45:30 -04:00
NN
447e0aaa88 Fix repository name case (#8695)
* Fix repository name case

* [detours] Match GitHub URL exactly
2019-10-25 14:50:30 -07:00
Charles Milette
07156ed156 [detours] new port (#5347)
* [detours] new port

* [detours] Use PATCHES parameter instead of vcpkg_apply_patches function
2019-02-12 16:56:35 -08:00