-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathbootstrap.bat
More file actions
64 lines (55 loc) · 1.49 KB
/
bootstrap.bat
File metadata and controls
64 lines (55 loc) · 1.49 KB
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
@ECHO OFF
ECHO Please choose build system:
ECHO 1. Visual Studio with NMake (Shared Library - Release)
ECHO 2. Visual Studio with Ninja Build (Shared Library - Release)
ECHO 3. Visual Studio with NMake (Static Library - Release)
ECHO 4. Visual Studio with NMake (Static Library - Debug)
ECHO 5. Visual Studio with Ninja Build (Static Library - Release)
ECHO 6. Visual Studio with Ninja Build (Static Library - Debug)
ECHO 7. Exit
ECHO .
CHOICE /C 1234567 /M "Enter your choice:"
IF ERRORLEVEL 7 GOTO End
IF ERRORLEVEL 6 GOTO NinjaStaticDebug
IF ERRORLEVEL 5 GOTO NinjaStaticRelease
IF ERRORLEVEL 4 GOTO VSStaticDebug
IF ERRORLEVEL 3 GOTO VSStaticRelease
IF ERRORLEVEL 2 GOTO NinjaBuild
IF ERRORLEVEL 1 GOTO VS
:VS
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" ..
cd ..
GOTO End
:NinjaBuild
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -G "Ninja" ..
cd ..
GOTO End
:VSStaticRelease
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -G "NMake Makefiles" ..
cd ..
GOTO End
:VSStaticDebug
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -G "NMake Makefiles" ..
cd ..
GOTO End
:NinjaStaticRelease
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -G "Ninja" ..
cd ..
GOTO End
:NinjaStaticDebug
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -G "Ninja" ..
cd ..
GOTO End
:End