-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgen-wins-project.cmd
74 lines (69 loc) · 1.12 KB
/
gen-wins-project.cmd
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@ECHO off
IF "%1"=="" (
GOTO :helpInfo
)
IF /I "%1"=="-h" (
GOTO :helpInfo
)
IF /I "%1"=="-help" (
GOTO :helpInfo
)
IF /I "%1"=="all" (
SET x86=1
SET x64=1
SET ARM=1
SET ARM64=1
ECHO Generating all available projects...
)
IF /I "%1"=="x86" (
SET x86=1
)
IF /I "%1"=="x64" (
SET x64=1
)
IF /I "%1"=="ARM" (
SET ARM=1
)
IF /I "%1"=="ARM64" (
SET ARM64=1
)
IF DEFINED x86 (
ECHO Generating x86 project...
mkdir build-x86 & pushd build-x86
cmake -G "Visual Studio 15 2017" -A Win32 ..
popd
)
IF DEFINED x64 (
ECHO Generating x64 project...
mkdir build-x64 & pushd build-x64
cmake -G "Visual Studio 15 2017" -A x64 ..
popd
)
IF DEFINED ARM (
ECHO Generating ARM project...
mkdir build-arm & pushd build-arm
cmake -G "Visual Studio 15 2017" -A ARM ..
popd
)
IF DEFINED ARM64 (
ECHO Generating ARM64 project...
mkdir build-arm64 & pushd build-arm64
cmake -G "Visual Studio 15 2017" -A ARM64 ..
popd
)
GOTO :end
:helpInfo
ECHO Available options are:
ECHO - all
ECHO - x86
ECHO - x64
ECHO - ARM
ECHO - ARM64
PAUSE
GOTO :end
:end
:: Require to unset variables at end of the program when console is still open.
SET x86=
SET x64=
SET ARM=
SET ARM64=