Initial commit

This commit is contained in:
vlo
2026-11-22 19:23:52 +01:00
commit bbc11ecdf0
6 changed files with 356 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const translate_c = b.addTranslateC(.{
.root_source_file = b.path("src/c.h"),
.target = target,
.optimize = optimize,
});
translate_c.linkSystemLibrary("X11", .{});
translate_c.linkSystemLibrary("Xi", .{});
translate_c.linkSystemLibrary("XFixes", .{});
translate_c.linkSystemLibrary("Xext", .{});
const window = b.addModule("root", .{
.root_source_file = b.path("src/Window.zig"),
.target = target,
.optimize = optimize,
.imports = &.{
.{
.name = "c",
.module = translate_c.createModule(),
},
},
.link_libc = false,
});
_ = window;
}