-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Samuli Seppänen <[email protected]>
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Build openvpn-gui with MSVC | ||
|
||
$CWD = Get-Location | ||
|
||
$CMAKE="C:\Program Files\CMake\bin\cmake.exe" | ||
$CMAKE_TOOLCHAIN_FILE="C:\users\vagrant\buildbot\windows-server-2019-static-msbuild\vcpkg\scripts\buildsystems\vcpkg.cmake" | ||
|
||
# Architecture names taken from here: | ||
# | ||
# https://docs.microsoft.com/en-us/cpp/build/cmake-presets-vs?view=msvc-160 | ||
"x64", "arm64", "Win32" | ForEach { | ||
$platform = $_ | ||
Write-Host "Building openvpn-gui ${platform}" | ||
mkdir build_$platform | ||
cd build_$platform | ||
& "$CMAKE" -A $platform -DCMAKE_TOOLCHAIN_FILE="$CMAKE_TOOLCHAIN_FILE" .. | ||
& "$CMAKE" --build . --config Release | ||
cd $CWD | ||
} |