Skip to content
/ xwin Public
forked from Jake-Shadle/xwin

A utility for downloading and packaging the Microsoft CRT & Windows SDK headers and libraries needed for compiling and linking programs targeting Windows.

License

Notifications You must be signed in to change notification settings

dmikushin/xwin

This branch is 13 commits ahead of Jake-Shadle/xwin:main.

Folders and files

NameName
Last commit message
Last commit date
Oct 11, 2023
Aug 21, 2024
Nov 7, 2023
Mar 20, 2025
Mar 18, 2025
May 27, 2024
Jun 15, 2023
May 7, 2021
Oct 17, 2024
May 7, 2021
May 7, 2021
Oct 17, 2024
Oct 17, 2024
Mar 21, 2025
Mar 20, 2025
May 27, 2024
May 7, 2021
Aug 11, 2021
Mar 21, 2025
Oct 17, 2024
Nov 25, 2022
Oct 7, 2024

Repository files navigation

XWin with MFC and debug

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

Introduction

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.

Installation

XWin is distributed as a .tar.gz binary package. You can download a prebuilt package from the Releases.

Building

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 .

Usage

  • 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 targeting x86_64-pc-windows-msvc.

About

A utility for downloading and packaging the Microsoft CRT & Windows SDK headers and libraries needed for compiling and linking programs targeting Windows.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 96.9%
  • Dockerfile 3.0%
  • Earthly 0.1%