32-bit Windows SDK¶
The 32 and 64-bit Windows part of the clang-dos SDK: scripts that build
mingw-w64 sysroots for clang from clang-dos/llvm
that run on Win32s, Windows NT 3.1 to 4.0, Windows 95, 98 and ME, 2000 and
XP, and Vista to 11, the --config files for each, an import checker and
the tests. It was split out of clang-dos/dos-sdk
(its win9x/ directory and the Windows parts of packaging/), which still
builds the toolchain packages and takes these sysroots from here.
build-sysroot.sh builds one of the package's sysroots (below)
scripts/build-win9x.sh mingw-w64 sysroot for 9x, NT 3.x/4.0, 2000/XP
scripts/build-unicows.sh adds libunicows to it
scripts/build-cxx.sh adds libc++, libc++abi and libunwind (9x to XP)
scripts/build-modern-sysroot.sh sysroot for Vista and later, with libc++
scripts/fix-ddk-headers.sh fixes mingw-w64's DDK headers in a sysroot
scripts/fix-api-headers.sh corrects API header declarations to match the SDK
scripts/build-idl.sh adds the .idl files and stdole2.tlb (below)
idl/stdole2.idl the OLE Automation type library's source
tools/midl.c midl, a MIDL-compatible front end for widl
cfg/ --config files for the toolchain package
(*-ddk.cfg for kernel-mode drivers)
tools/check-imports.py checks a program's or driver's imports for a
Windows version
tools/kernel-versions.txt which NT kernel has each function, for it
tools/gen-kernel-versions.py makes kernel-versions.txt from the DDKs
tools/import-ms-sdk.py sysroots from your own copies of Microsoft's kits
tools/ms_oldlib.py its fixes for the libraries of 1993-96 kits
tools/ms-intrin-shim.h its fix for the Server 2003 DDK's winnt.h
tools/msvcrt-versions.txt which msvcrt.dll has each function
tools/gen-msvcrt-versions.py makes msvcrt-versions.txt
tests/ the tests, run in Wine
tests/ddk/ the test driver and its tests
-
The sysroots
One sysroot and config file per Windows family, from Win32s to Windows 11.
-
Windows 9x, NT and XP
-
C++ everywhere
libc++ on 9x, NT 3.x, NT 4.0 and Win32s, or picolibc with no C runtime DLL.
-
Check imports