-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-reactos-win32-msvc.cmd
50 lines (43 loc) · 1.07 KB
/
build-reactos-win32-msvc.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
@echo off
:: Going into the script's directory
pushd %~dp0
:: Removing old build folders
echo.
echo Removing old folders
echo --------------------
rmdir cmake-build-reactos-tcc-x86 /s /q 2> nul
rmdir cmake-build-reactos-tcc-x64 /s /q 2> nul
echo Done :)
:: Printing a warning message
echo.
echo Checking the PATH
echo -----------------
echo ^> TODO
where nmake
where tcc
call "D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
where nmake
where tcc
:: Compiling for x86
echo.
echo Compiling for x86
echo -----------------
mkdir cmake-build-reactos-tcc-x86
cd cmake-build-reactos-tcc-x86
cmake -G "NMake Makefiles" -D CMAKE_C_COMPILER=tcc -DCMAKE_C_FLAGS="-m32" ..
cmake --build . --config Release
cd ..
:: Compiling for x64
echo.
echo Compiling for x64
echo -----------------
mkdir cmake-build-reactos-tcc-x64
cd cmake-build-reactos-tcc-x64
cmake -G "NMake Makefiles" -D CMAKE_C_COMPILER=tcc -DCMAKE_C_FLAGS="-m64" ..
cmake --build . --config Release
cd ..
:: Going back to the original directory
popd
:: Letting the user check the logs
echo.
pause