A utility for downloading and packaging the Microsoft CRT headers and libraries, and Windows SDK headers and libraries needed for compiling and linking programs targeting Windows.
This is a fork of XWin, which includes MFC and debug packages support.
This project is at the core of Linux container for building Windows apps with Clang
The goal of this project is to create a root directory for both the CRT and Windows SDK that each contain all of the necessary includes and libraries needed for an application to compile and link from a non-Windows platform, using a native cross compiling toolchain like clang/LLVM. This includes adding symlinks to correct numerous casing issues in the Windows SDK so that the files generated by this program can function on a case-sensitive file system.
See this blog post for an in depth walk-through of how xwin can be used.
XWin is distributed as a .tar.gz
binary package. You can download a prebuilt package from the Releases.
Build and install locally for testing or development:
cargo build --tests --release
cargo install xwin --locked
Build your own release tarball with the provided Dockerfile:
docker build -t release-xwin .
-
Dockerfile is an example
Dockerfile
that can be used to setup C/C++ build environment for Windows -
xwin.dockerfile is an example
Dockerfile
that can be used a container image capable of building and testing Rust crates targetingx86_64-pc-windows-msvc
.