-
Notifications
You must be signed in to change notification settings - Fork 1
/
create_project.bat
54 lines (42 loc) · 968 Bytes
/
create_project.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@ECHO OFF
IF [%1]==[] GOTO MANUAL_CONFIG
IF "%1"=="1" GOTO ONE;
IF "%1"=="2" GOTO TWO;
IF "%1"=="3" GOTO THREE;
IF "%1"=="4" GOTO FOUR;
IF "%1"=="5" GOTO FIVE;
ECHO INVALID PARAMETER (%1)
:MANUAL_CONFIG
ECHO 1. Visual Studio 2022 Solution
ECHO 2. Visual Studio 2019 Solution
ECHO 3. Visual Studio 2017 Solution
ECHO 4. Visual Studio 2015 Solution
ECHO 5. Visual Studio 2013 Solution
CHOICE /N /C:12345 /M "[1-5]:"
IF ERRORLEVEL ==5 GOTO FIVE
IF ERRORLEVEL ==4 GOTO FOUR
IF ERRORLEVEL ==3 GOTO THREE
IF ERRORLEVEL ==2 GOTO TWO
IF ERRORLEVEL ==1 GOTO ONE
GOTO END
:FIVE
ECHO Creating VS2013 Project...
premake\premake5.exe vs2013
GOTO END
:FOUR
ECHO Creating VS2015 Project...
premake\premake5.exe vs2015
GOTO END
:THREE
ECHO Creating VS2017 Project...
premake\premake5.exe vs2017
GOTO END
:TWO
ECHO Creating VS2019 Project...
premake\premake5.exe vs2019
GOTO END
:ONE
ECHO Creating VS2022 Project...
premake\premake5.exe vs2022
GOTO END
:END