mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 09:19:00 +08:00
Use /DEPENDENTS instead of /IMPORTS in applocal.ps1
This commit is contained in:
parent
bed9b07a83
commit
097626c317
@ -5,7 +5,7 @@ function resolve($targetBinary) {
|
|||||||
$targetBinaryPath = Resolve-Path $targetBinary
|
$targetBinaryPath = Resolve-Path $targetBinary
|
||||||
$targetBinaryDir = Split-Path $targetBinaryPath -parent
|
$targetBinaryDir = Split-Path $targetBinaryPath -parent
|
||||||
|
|
||||||
$a = $(link /dump /imports $targetBinary | ? { $_ -match "^ [^ ].*\.dll" } | % { $_ -replace "^ ","" })
|
$a = $(dumpbin /DEPENDENTS $targetBinary | ? { $_ -match "^ [^ ].*\.dll" } | % { $_ -replace "^ ","" })
|
||||||
$a | % {
|
$a | % {
|
||||||
if (Test-Path "$installedDir\$_") {
|
if (Test-Path "$installedDir\$_") {
|
||||||
if (Test-Path "$targetBinaryDir\$_") {
|
if (Test-Path "$targetBinaryDir\$_") {
|
||||||
|
Loading…
Reference in New Issue
Block a user