-
-
Notifications
You must be signed in to change notification settings - Fork 173
/
Copy pathMake-Release.ps1
22 lines (17 loc) · 964 Bytes
/
Make-Release.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$ErrorActionPreference = "Stop"
# Set up powershell equivalent of vcvarsall.bat when CMake/CPack aren't in PATH
if ((Get-Command "cmake" -ErrorAction SilentlyContinue) -eq $null) {
$vsPath = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationpath
Import-Module (Get-ChildItem $vsPath -Recurse -File -Filter Microsoft.VisualStudio.DevShell.dll).FullName
Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation -DevCmdArguments '-arch=x64'
}
# Then build with VS
& cmake --preset final-dtwrapper
& cmake --build --preset final-dtwrapper-release
& cpack --preset final-dtwrapper
& cmake --preset final-nvngxwrapper
& cmake --build --preset final-nvngxwrapper-release
& cpack --preset final-nvngxwrapper
& cmake --preset final-universal
& cmake --build --preset final-universal-release
& cpack --preset final-universal