-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.bat
More file actions
59 lines (48 loc) · 2.32 KB
/
configure.bat
File metadata and controls
59 lines (48 loc) · 2.32 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
@REM project_starter_kit
@REM https://github.com/simongeilfus/project_starter_kit
@rem MIT License
@rem Copyright (c) 2022 Simon Geilfus
@rem Permission is hereby granted, free of charge, to any person obtaining a copy
@rem of this software and associated documentation files (the "Software"), to deal
@rem in the Software without restriction, including without limitation the rights
@rem to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@rem copies of the Software, and to permit persons to whom the Software is
@rem furnished to do so, subject to the following conditions:
@rem The above copyright notice and this permission notice shall be included in all
@rem copies or substantial portions of the Software.
@rem THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
@rem IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
@rem FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@rem AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
@rem LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
@rem OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
@rem SOFTWARE.
@rem ----------------------------------------------------
@rem GENERATE A CMAKE COMMAND WITH OPTIONAL PARAMETERS
@rem ----------------------------------------------------
@echo off
setlocal EnableDelayedExpansion
set cmake_args=-UENABLE_LXX
set cmake_quiet_args=--log-level=ERROR -Wno-dev
@rem parsing arguments
@rem -----------------------------------
:parse_args
if "%~1" == "" goto end_parse_args
if "%~1" == "live++" set cmake_args=%cmake_args% -DENABLE_LXX=ON
if "%~1" == "live++_configs" set cmake_args=%cmake_args% -DENABLE_LXX_CONFIGS=ON
if "%~1" == "liveplusplus" set cmake_args=%cmake_args% -DENABLE_LXX=ON
if "%~1" == "lxx" set cmake_args=%cmake_args% -DENABLE_LXX=ON
if "%~1" == "lxx_configs" set cmake_args=%cmake_args% -DENABLE_LXX_CONFIGS=ON
if "%~1" == "clean" set cmake_args=%cmake_args% --fresh
if "%~1" == "verbose" set cmake_quiet_args=
SHIFT
goto parse_args
:end_parse_args
@rem run cmake
@rem -----------------------------------
cmake -S . -B ./build -G "Visual Studio 17 2022" -A x64 !cmake_quiet_args! !cmake_args!
@rem end
@rem -----------------------------------
:end
set cmake_args =
set cmake_quiet_args =