Ant on Windows is built using the MSYS2 MINGW64 toolchain.
Native MSVC builds are not currently supported. You must use the MSYS2 MINGW64 environment.
Prerequisites
Install MSYS2
Download and install MSYS2 Install dependencies
Open the MINGW64 shell and install dependencies:pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-meson \
mingw-w64-x86_64-ninja mingw-w64-x86_64-cmake \
mingw-w64-x86_64-openssl mingw-w64-x86_64-libsodium \
mingw-w64-x86_64-lld mingw-w64-x86_64-nodejs git
Install Rust
Install Rust via rustup (select the x86_64-pc-windows-gnu target)
Building Ant
From the MSYS2 MINGW64 shell:
Clone the repository
git clone https://github.com/theMackabu/ant.git
cd ant
Download subprojects
meson subprojects download
Configure the build
meson setup build -Dc_std=gnu2x
Windows builds use -Dc_std=gnu2x instead of gnu23 due to MinGW toolchain compatibility.
Verifying the Build
To verify:
./build/ant.exe --version
Required DLLs
Windows builds require bundling the following DLLs alongside ant.exe:
libssl-3-x64.dll
libcrypto-3-x64.dll
libsodium-26.dll
These are found in the MSYS2 MINGW64 bin directory (/mingw64/bin/ or equivalent).
You can copy these DLLs to the same directory as ant.exe:
cp /mingw64/bin/libssl-3-x64.dll ./build/
cp /mingw64/bin/libcrypto-3-x64.dll ./build/
cp /mingw64/bin/libsodium-26.dll ./build/