summaryrefslogtreecommitdiffstats
path: root/.appveyor/UtilityFunctions.ps1
diff options
context:
space:
mode:
authorAmila Welihinda <amilajack@gmail.com>2019-12-17 09:20:34 +0100
committerAmila Welihinda <amilajack@gmail.com>2019-12-17 09:20:34 +0100
commit8a23c32cf0af3a898b107cd783b51dd754c2ef5c (patch)
treea6fd9d135421e1fd136d9197444b9c7683cbeed4 /.appveyor/UtilityFunctions.ps1
parentdelete appveyor config (diff)
downloadyuzu-8a23c32cf0af3a898b107cd783b51dd754c2ef5c.tar
yuzu-8a23c32cf0af3a898b107cd783b51dd754c2ef5c.tar.gz
yuzu-8a23c32cf0af3a898b107cd783b51dd754c2ef5c.tar.bz2
yuzu-8a23c32cf0af3a898b107cd783b51dd754c2ef5c.tar.lz
yuzu-8a23c32cf0af3a898b107cd783b51dd754c2ef5c.tar.xz
yuzu-8a23c32cf0af3a898b107cd783b51dd754c2ef5c.tar.zst
yuzu-8a23c32cf0af3a898b107cd783b51dd754c2ef5c.zip
Diffstat (limited to '.appveyor/UtilityFunctions.ps1')
-rw-r--r--.appveyor/UtilityFunctions.ps139
1 files changed, 0 insertions, 39 deletions
diff --git a/.appveyor/UtilityFunctions.ps1 b/.appveyor/UtilityFunctions.ps1
deleted file mode 100644
index fd7476314..000000000
--- a/.appveyor/UtilityFunctions.ps1
+++ /dev/null
@@ -1,39 +0,0 @@
-# Set-up Visual Studio Command Prompt environment for PowerShell
-pushd "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\"
-cmd /c "VsDevCmd.bat -arch=x64 & set" | foreach {
- if ($_ -match "=") {
- $v = $_.split("="); Set-Item -Force -Path "ENV:\$($v[0])" -Value "$($v[1])"
- }
-}
-popd
-
-function Which ($search_path, $name) {
- ($search_path).Split(";") | Get-ChildItem -Filter $name | Select -First 1 -Exp FullName
-}
-
-function GetDeps ($search_path, $binary) {
- ((dumpbin /dependents $binary).Where({ $_ -match "dependencies:"}, "SkipUntil") | Select-String "[^ ]*\.dll").Matches | foreach {
- Which $search_path $_.Value
- }
-}
-
-function RecursivelyGetDeps ($search_path, $binary) {
- $final_deps = @()
- $deps_to_process = GetDeps $search_path $binary
- while ($deps_to_process.Count -gt 0) {
- $current, $deps_to_process = $deps_to_process
- if ($final_deps -contains $current) { continue }
-
- # Is this a system dll file?
- # We use the same algorithm that cmake uses to determine this.
- if ($current -match "$([regex]::Escape($env:SystemRoot))\\sys") { continue }
- if ($current -match "$([regex]::Escape($env:WinDir))\\sys") { continue }
- if ($current -match "\\msvc[^\\]+dll") { continue }
- if ($current -match "\\api-ms-win-[^\\]+dll") { continue }
-
- $final_deps += $current
- $new_deps = GetDeps $search_path $current
- $deps_to_process += ($new_deps | ?{-not ($final_deps -contains $_)})
- }
- return $final_deps
-}