From eb7c9f97959e4c074698eea72b7da20d25f19faa Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 18 Sep 2021 15:54:34 +0200 Subject: Initial support for compiling with msvc/cl.exe on windows. --- bootstrap.bat | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bootstrap.bat (limited to 'bootstrap.bat') diff --git a/bootstrap.bat b/bootstrap.bat new file mode 100644 index 0000000..f394d56 --- /dev/null +++ b/bootstrap.bat @@ -0,0 +1,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 -- cgit v1.2.3