summaryrefslogtreecommitdiff
path: root/bootstrap.bat
blob: f394d564b6c070b3f25ad4848c438e8f0507a564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
set BASE="C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133"
set ONECORELIB=%BASE%\lib\onecore\x86
set PATH=%PATH%;%BASE%\bin\Hostx86\x86
set INCLUDE=%BASE%\include
set UCRT="C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt"
set UCRTLIB="C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\ucrt\x86"
set UM="C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um"
set UMLIB="C:\Program Files (x86)\Windows Kits\10\Lib\10.0.19041.0\um\x86"
set SHARED="C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared"
echo "Bootstrapping..."
cl.exe /std:c++20 /D_X86_ /EHsc /Isrc /I%BASE%\include /I%UCRT% /I%UM% /I%SHARED% /Iwingetopt/src wingetopt/src/getopt.c src/*.cc ctor.cc /link /LIBPATH:%UMLIB% /LIBPATH:%ONECORELIB% /LIBPATH:%UCRTLIB% /OUT:ctor.exe