forked from flyinghead/flycast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Batch script for generating Visual Studio project
- Loading branch information
1 parent
e3e42f8
commit 32dc825
Showing
1 changed file
with
28 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,28 @@ | ||
@echo off | ||
setlocal EnableDelayedExpansion | ||
cmake --version >nul 2>&1 && ( | ||
set cmake=1 | ||
) || ( | ||
echo please install cmake first | ||
) | ||
|
||
if !cmake! equ 1 ( | ||
cd /d "%~dp0..\.." | ||
echo 1: Visual Studio 2022 | ||
echo 2: Visual Studio 2019 | ||
echo 3: Visual Studio 2017 | ||
set "num=1" | ||
set /p num="Enter your preference [1]: " | ||
if !num! equ 2 ( | ||
set "generator=Visual Studio 16 2019" | ||
)else if !num! equ 3 ( | ||
set "generator=Visual Studio 15 2017" | ||
) else ( | ||
set "generator=Visual Studio 17 2022" | ||
) | ||
echo Generating !generator! ... | ||
cmake -B build -G "!generator!" -A x64 | ||
start build\flycast.vcxproj | ||
) | ||
|
||
pause |