-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathbootstrap_sysroot.bat
More file actions
34 lines (25 loc) · 1006 Bytes
/
bootstrap_sysroot.bat
File metadata and controls
34 lines (25 loc) · 1006 Bytes
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
@echo off
SET SCRIPT_DIR=%CD%
cd %SCRIPT_DIR%
SET IGS=%CD%
cd ..
SET CODEROOT=%CD%
echo This script will compile ingescape and its dependencies in a local sysroot directory at %CODEROOT%/sysroot/Program Files/Ingescape/library. This is a nice way to have everything you need to debug/contribute to Ingescape without installing anything on your system.
cd %IGS%
set /p choice=Do you want to continue? [yN]
if '%choice%'=='y' goto run
if '%choice%'=='Y' goto run
goto return
:run
REM make sure all submodules are here
git submodule update --init --recursive
mkdir %CODEROOT%/sysroot
echo Deploying ingescape library and its dependencies in %CODEROOT%/sysroot...
mkdir build
cmake -S . -B build -A x64 -DCMAKE_INSTALL_PREFIX="%CODEROOT%/sysroot/Program Files/Ingescape/library" -DCMAKE_BUILD_TYPE=Release -DWITH_DEPS=ON
cmake --build build --target ALL_BUILD --config Release -- /nologo /verbosity:minimal /maxcpucount
cmake --install build --config Release
rmdir /s /q build
cd ..
:return
EXIT /B