reito
9588a00260
[detours] Fix detours usage ( #29215 )
...
* oops, usage
* oops, usage
* Update ports/detours/vcpkg.json
Co-authored-by: MonicaLiu <110024546+MonicaLiu0311@users.noreply.github.com>
* Update ports/detours/portfile.cmake
Co-authored-by: MonicaLiu <110024546+MonicaLiu0311@users.noreply.github.com>
* 更新 detours.json
---------
Co-authored-by: MonicaLiu <110024546+MonicaLiu0311@users.noreply.github.com>
2023-01-30 16:54:52 -08:00
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