|
2 | 2 | param( |
3 | 3 | [Parameter(Position = 0)] |
4 | 4 | [ValidateSet("release", "debug", "release_debuggable", "hybrid", "minimal")] |
5 | | - [string]$BuildType = "release" |
| 5 | + [string]$BuildType = "release", |
| 6 | + [string]$RhinoBranchName |
6 | 7 | ) |
7 | 8 |
|
8 | 9 | $ErrorActionPreference = "Stop" |
9 | 10 |
|
10 | 11 | $scriptRoot = if ($PSScriptRoot) { $PSScriptRoot } else { Split-Path -Parent $MyInvocation.MyCommand.Path } |
| 12 | +. (Join-Path $scriptRoot "..\rhino_branch_info.ps1") |
| 13 | + |
| 14 | +$branchInfo = Resolve-RhinoBranchInfo -StartPath $scriptRoot -RhinoBranchName $RhinoBranchName |
11 | 15 | $logPath = Join-Path $scriptRoot "make_rhino_all.log" |
12 | 16 | try { |
13 | 17 | if (Test-Path $logPath) { |
@@ -125,10 +129,11 @@ $dpcppRoot = "..\lib\win64_vc15\dpcpp" |
125 | 129 | $levelZeroRoot = "..\lib\win64_vc15\level-zero" |
126 | 130 | $msvcRedistDir = "C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Redist/MSVC/14.29.30133" |
127 | 131 | $windowsKitsDir = "C:/Program Files (x86)/Windows Kits/10" |
128 | | -$rhinoBranchRoot = [System.IO.Path]::GetFullPath((Join-Path $scriptRoot "..\..\..\..\..\..")) |
129 | | -$rhinoBranchName = Split-Path -Leaf $rhinoBranchRoot |
| 132 | +$rhinoBranchRoot = $branchInfo.BranchRoot |
| 133 | +$rhinoBranchName = $branchInfo.BranchName |
| 134 | +$rhinoMajorVersion = $branchInfo.MajorVersion |
130 | 135 | $dockerHostRoot = $rhinoBranchRoot -replace '\\', '/' |
131 | | -$dockerContainerRoot = "/rhino/rhino-$rhinoBranchName" |
| 136 | +$dockerContainerRoot = "/rhino/repo" |
132 | 137 | $dockerVolume = "${dockerHostRoot}:$dockerContainerRoot" |
133 | 138 |
|
134 | 139 | $buildMode = $BuildType.ToLowerInvariant() |
@@ -426,6 +431,7 @@ try { |
426 | 431 | Write-Log "Install dir: $installDir" |
427 | 432 | Write-Log "HIP build dir: $hipBuildDir" |
428 | 433 | Write-Log "Rhino branch root: $rhinoBranchRoot" |
| 434 | + Write-Log "Rhino branch: $rhinoBranchName (major $rhinoMajorVersion, source $($branchInfo.Source))" |
429 | 435 | Write-Log "Docker volume: $dockerVolume" |
430 | 436 | Write-Log "SVN retries after first failure: $script:SvnRetryCount (fixed $script:SvnRetryDelaySeconds second delay)." |
431 | 437 | Write-Log "Allowed cleanup paths: $($script:AllowedCleanupPaths -join ', ')" |
@@ -534,7 +540,7 @@ try { |
534 | 540 | Invoke-TimedStage -Name "Update Version Info" -Action { |
535 | 541 | Push-Location ([System.IO.Path]::GetFullPath((Join-Path $scriptRoot ".."))) |
536 | 542 | try { |
537 | | - & powershell -NoProfile -ExecutionPolicy Bypass -File ".\versioninfo_changer.ps1" | Out-Host |
| 543 | + & powershell -NoProfile -ExecutionPolicy Bypass -File ".\versioninfo_changer.ps1" -RhinoBranchName $rhinoBranchName | Out-Host |
538 | 544 | if ($LASTEXITCODE -ne 0) { |
539 | 545 | Write-Log "WARNING: versioninfo_changer.ps1 failed with code $LASTEXITCODE." |
540 | 546 | } |
|
0 commit comments