You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constexe=b.addExecutable(.{...});
exe.addIncludePath(b.path("vendor/SDL3-3.1.6/include"));
exe.addLibraryPath(b.path("vendor/SDL3-3.1.6_build"));
exe.linkSystemLibrary("SDL3");
exe.linkLibC();
b.installArtifact(exe);
// Copy the dll to the exe path.b.installBinFile("vendor/SDL3-3.1.6_build/SDL3.dll", "SDL3.dll");
Cross-compile
<arch>-<os>-<abi>
zig build -Dtarget=x86_64-linux-gnu
zig build -Dtarget=x86_64-windows-gnu
zig build -Dtarget=x86_64-windows-msvc
Testing
Include tests from imported files.
test {
std.testing.refAllDecls(@This());
_=@import("a.zig");
_=@import("b.zig");
}