38 lines
851 B
PowerShell
38 lines
851 B
PowerShell
param(
|
|
[string[]]$CandidateRoots = @(
|
|
"D:\\PythonProject\\Panda3D-1.10.16-x64",
|
|
"C:\\Program Files\\Panda3D-1.10.16-x64",
|
|
"C:\\Program Files\\Panda3D-1.10.15-x64",
|
|
"D:\\Program Files\\Panda3D-1.10.16-x64",
|
|
"D:\\Panda3D"
|
|
)
|
|
)
|
|
|
|
$found = @()
|
|
|
|
foreach ($root in $CandidateRoots) {
|
|
if (-not (Test-Path $root)) {
|
|
continue
|
|
}
|
|
|
|
$includeDir = Join-Path $root "include"
|
|
$libDir = Join-Path $root "lib"
|
|
$binDir = Join-Path $root "bin"
|
|
|
|
if ((Test-Path $includeDir) -and (Test-Path $libDir)) {
|
|
$found += [pscustomobject]@{
|
|
Root = $root
|
|
Include = $includeDir
|
|
Lib = $libDir
|
|
Bin = $binDir
|
|
}
|
|
}
|
|
}
|
|
|
|
if ($found.Count -eq 0) {
|
|
Write-Host "No Panda3D C++ SDK candidate found."
|
|
exit 1
|
|
}
|
|
|
|
$found | Format-Table -AutoSize
|