Repository navigation
Build and Test
Vodka is a 100% standalone Zig project (build.zig + vodka/build/dll_manifest.zig) that cross-compiles 2,389 built artifacts — all multi-architecture Linux loaders/preloaders, 731 Windows PE modules across 3 architectures (2,193 PE binaries covering core Win32/NT, WoW64, ntoskrnl.exe, hal.dll, 20 .sys kernel drivers, CRT/STL/ConcRT, DirectX 8–12 & imaging, audio/media, COM/Shell/Net/Crypto, WinRT/Web, Enterprise, TypeLibs, themes, and 16-bit/VxD compatibility), 116 Windows PE64 programs, 24 live verification executables (23 PE64 + 1 PE32 WoW64), 21 pure-Zig host tools, and 7 standalone binary .nls tables — from a single command without requiring MinGW, Autotools, Make, Perl, or external cross-compilers.
-
Operating System: Linux (
x86_64,i386, oraarch64) - Compiler: Zig 0.17.1 or newer
-
Optional Runtime Host Libraries (loaded dynamically via
dlopenat runtime, not required at compile time):-
libvulkan.so.1+ a Vulkan 1.4 ICD (e.g., Mesa RADV) for GPU compute/graphics, Wayland WSI, and D3D11-over-Vulkan / DXGI - A running Wayland compositor (
WAYLAND_DISPLAY/XDG_RUNTIME_DIR) forlibvodkawayland.so -
libpipewire-0.3.so.0orlibasound.so.2for hardware audio playback/capture -
libssl.sofor HTTPS transport inwinhttp.dll - Linux kernel
/dev/ntsyncdevice node for kernel-accelerated NT synchronization
-
zig build -Doptimize=ReleaseSafe -Dglibc-compat=true| Option | Default | Description |
|---|---|---|
-Doptimize=<mode> |
Debug |
Standard Zig optimization mode (Debug, ReleaseSafe, ReleaseFast, ReleaseSmall). Release builds strip binaries automatically. Note: vodka-preloader and vodka64-preloader use .small when Debug is selected to remain freestanding and compact. |
-Dtarget=<triple> |
Native host | Target triple for host binaries. |
-Dglibc-compat=<bool> |
false |
Pins GNU libc target version to glibc 2.31 for broad Linux distribution and Steam Runtime (SteamRT) compatibility. |
-Dmulti-arch=<bool> |
true |
Cross-compiles vodka-loader, vodka-preloader, vodka64, and vodka64-preloader for x86_64-unix, i386-unix, and aarch64-unix. |
-Dwith-pe-dlls=<bool> |
true |
Cross-compiles Windows PE modules across x86_64-windows, i386-windows, and aarch64-windows, plus all 116 native PE64 Windows programs and 24 verification executables (23 PE64 + 1 PE32 WoW64). |
-Ddll-set=<set> |
full |
Selects the PE module manifest profile in vodka/build/dll_manifest.zig: core, gaming, or full (all 731 3-architecture PE modules = 2,193 PE binaries). |
-Dbindir=<path> |
/usr/local/bin |
Configured installation bindir baked into vodka CLI for relative libdir discovery. |
-Dlibdir=<path> |
/usr/local/lib |
Configured installation libdir baked into vodka CLI for relative libdir discovery. |
To skip cross-compiling Windows PE DLLs and multi-arch loaders during rapid host iteration:
zig build -Dmulti-arch=false -Dwith-pe-dlls=falseRun all Zig unit tests across the preloaders (ELF & Mach-O), loaders (vodka-loader, vodka64, inf_engine, desktop_bundle), CLI, server kernel subsystems, Wayland driver, audio engine, ntdll boundary (including SEH/VEH, WoW64, futex sync, Vulkan WSI, WinSock2, WASAPI), all PE DLL modules, and the entire 21-tool developer toolchain:
zig build testYou can also run tests under ReleaseSafe to verify optimized builds:
zig build test -Doptimize=ReleaseSafeAfter zig build, all 2,389 artifacts are organized under zig-out/:
zig-out/
├── bin/ # 30 host ELF binaries (9 core runtime/diag + 21 pure-Zig tools)
│ ├── vodka # Top-level CLI launcher
│ ├── vodka-loader # Host runtime ELF loader (--loader-info)
│ ├── vodka64 # Host 64-bit ELF loader with CPU probe (--loader64-info)
│ ├── vodka-preloader # Host freestanding ELF preloader
│ ├── vodka64-preloader # Host freestanding 64-bit ELF preloader
│ ├── vodkaserver # Native Zig 43-opcode NT kernel daemon
│ ├── vodka-pe # PE32/PE64 inspector & direct PE64/WoW64 executor CLI
│ ├── vodka-wayland # Wayland compositor probe & globals reporter
│ ├── vodka-audio # PipeWire/ALSA audio probe, endpoint lister, & self-test
│ ├── vodka-proto # Protocol parser & Zig RPC compiler
│ ├── vodka-install # Atomic staging file installer
│ ├── vodkapath # POSIX <-> Windows drive path translator
│ ├── vodkaboot # Prefix bootstrapper
│ ├── vodka-xftmpl # Direct3D .x binary template compiler
│ ├── vodka-sfnt2fon # SFNT-to-Windows NE .fon font compiler
│ ├── vodka-mc # Windows Message Compiler (.mc -> .h/.rc/.bin)
│ ├── vodka-rc # Windows Resource Compiler (.rc -> .res)
│ ├── vodka-dump # Multi-format PE/COFF/RES/LNK/EMF/MDMP/PDB inspector
│ ├── vodka-build # .spec compiler, .def/implib builder, relay generator
│ ├── vodka-gcc # Windows PE & Unix compiler/linker driver
│ ├── vodka-makedep # C/C++/RC/IDL #include dependency scanner
│ ├── vodka-idl # IDL/COM header, GUID, & typelib compiler
│ ├── vodka-maker # Windows project-to-Makefile/Zig converter
│ ├── vodka-triple # Inline-asm CPUID + POSIX uname target triple tool
│ ├── vodka-specgen # .spec synchronizer, manifest scanner, & release notes tool
│ ├── vodka-dev # .ico/.bmp encoder, findfunc, runtest, relay trace analyzer
│ ├── vodka-unicode # UCD parser & binary Windows .nls compiler
│ ├── vodka-winapi # 120+ type ABI registry, static checker, & struct-layout testgen
│ ├── vodka-dbg # PE64 .pdata/.xdata unwinder, host context capture, GDB/LLDB emitter
│ └── vodka-ci # Multi-arch CI matrix, SHA-256 packager, workflow & Containerfile gen
├── lib/
│ ├── libvodka_ntdll.so # ntdll Unix boundary, SEH/VEH, CS=0x23 WoW64 & PE loader
│ ├── libvodkawayland.so # Pure-Zig Wayland display driver Unixlib
│ ├── libvodka_audio.so # Native PipeWire/ALSA/WASAPI audio Unixlib
│ └── vodka/
│ ├── x86_64-unix/ # vodka-loader, vodka-preloader, vodka64, vodka64-preloader, ntdll.so
│ ├── i386-unix/ # vodka-loader, vodka-preloader, vodka64, vodka64-preloader
│ ├── aarch64-unix/ # vodka-loader, vodka-preloader, vodka64, vodka64-preloader
│ ├── x86_64-windows/ # 731 PE64 modules + 116 PE64 programs + 23 PE64 verification .exes (870 files)
│ ├── i386-windows/ # 731 PE32 modules + vodka_wow64_smoke.exe (732 files)
│ └── aarch64-windows/ # 731 ARM64 PE modules
└── share/
├── applications/
│ └── vodka.desktop # Standalone XDG desktop entry
└── vodka/
├── vodka.inf # Standalone prefix Setup INF manifest
├── vodka_info.plist.in # Apple bundle Info.plist template
└── nls/ # 7 standalone binary .nls tables emitted by vodka-unicode
├── l_intl.nls
├── c_1252.nls
├── c_437.nls
├── c_28591.nls
├── c_65001.nls
├── normnfd.nls
└── sortdefault.nls
Beyond zig build test, you can run Vodka's live runtime verification tools and PE64/PE32 test binaries directly against the host kernel, Wayland compositor, audio stack, and Vulkan GPU:
# Print host loader and 64-bit CPU capability diagnostics
./zig-out/bin/vodka-loader --loader-info
./zig-out/bin/vodka64 --loader64-info
# Inspect PE headers and resolve an export
./zig-out/bin/vodka-pe ./zig-out/lib/vodka/x86_64-windows/kernel32.dll CreateFileW
# Run core PE64 smoke, multi-DLL, OS, networking, desktop, and subsystem DLL verification tests
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_smoke.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_dll_test.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_os_test.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_net_test.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_desktop_test.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_phase1_dll_test.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_phase2_nt_test.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_phase3_crt_test.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_phase4_gfx_test.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_phase5_media_test.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_phase6_sys_test.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_phase7_winrt_web_test.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_phase8_final_dll_test.exe
# Run hardware CS=0x23 32-bit WoW64 live verification binary (i386-windows)
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/i386-windows/vodka_wow64_smoke.exe
# Run WinAPI ABI static export verification
./zig-out/bin/vodka-winapi check vodka/src/dlls# Start a persistent vodkaserver in an isolated prefix
export VODKAPREFIX=/tmp/vodka-test-prefix
mkdir -p "$VODKAPREFIX"
./zig-out/bin/vodkaserver -p
# Ping the live daemon over AF_UNIX
./zig-out/bin/vodkaserver --ping
# Run live Registry and NT kernel subsystem RPC verification binaries
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_reg_test.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_server_rpc_test.exe
# Shut down the daemon cleanly
./zig-out/bin/vodkaserver -k./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_vk_test.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_vk_compute.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_vk_triangle.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_vk_3d.exe
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_dxgi_d3d11_test.exe./zig-out/bin/vodka-wayland
./zig-out/bin/vodka-pe --run ./zig-out/lib/vodka/x86_64-windows/vodka_gui_smoke.exe
./zig-out/bin/vodka-audio --probe
./zig-out/bin/vodka-audio --list
./zig-out/bin/vodka-audio --selftestCopyright (c) 2026 buntatoes. Vodka is a 100% standalone runtime built from scratch and licensed under the Apache License 2.0. The Vodka name, wordmark, and logo are All Rights Reserved.
Vulkan and the Vulkan logo are registered trademarks of the Khronos Group Inc. DirectX, Windows, AMD, NVIDIA, Intel, and other third-party trademarks belong to their respective owners; Vodka is an independent project and is not affiliated with or endorsed by them.
Core Runtime
Graphics, Display & Audio
Tools & Programs
Platform & Project
Links