forked from Chatterino/chatterino2
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into chatterino7
- Loading branch information
Showing
9 changed files
with
60 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
param ( | ||
[string] $InstallDir = "Chatterino2" | ||
) | ||
|
||
if ($null -eq $Env:VCToolsRedistDir) { | ||
Write-Error "VCToolsRedistDir is not set. Forgot to set Visual Studio environment variables?"; | ||
exit 1 | ||
} | ||
|
||
# A path to the runtime libraries (e.g. "$Env:VCToolsRedistDir\onecore\x64\Microsoft.VC143.CRT") | ||
$vclibs = (Get-ChildItem "$Env:VCToolsRedistDir\onecore\x64" -Filter '*.CRT')[0].FullName; | ||
|
||
# All executables and libraries in the installation directory | ||
$targets = Get-ChildItem -Recurse -Include '*.dll', '*.exe' $InstallDir; | ||
# All dependencies of the targets (with duplicates) | ||
$all_deps = $targets | ForEach-Object { (dumpbin /DEPENDENTS $_.FullName) -match '^(?!Dump of).+\.dll$' } | ForEach-Object { $_.Trim() }; | ||
# All dependencies without duplicates | ||
$dependencies = $all_deps | Sort-Object -Unique; | ||
|
||
$n_deployed = 0; | ||
foreach ($dll in $dependencies) { | ||
Write-Output "Checking for $dll"; | ||
if (Test-Path -PathType Leaf "$vclibs\$dll") { | ||
Write-Output "Deploying $dll"; | ||
Copy-Item "$vclibs\$dll" "$InstallDir\$dll" -Force; | ||
$n_deployed++; | ||
} | ||
} | ||
|
||
Write-Output "Deployed $n_deployed libraries"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# https://www.qt.io/blog/qt-creator-cmake-package-manager-auto-setup | ||
|
||
# set(QT_CREATOR_SKIP_PACKAGE_MANAGER_SETUP ON) # skip both conan and vcpkg auto-setups | ||
# set(QT_CREATOR_SKIP_CONAN_SETUP ON) # skip conan auto-setup | ||
set(QT_CREATOR_SKIP_VCPKG_SETUP ON) # skip vcpkg auto-setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters