refactor: working Card abstraction for drmModeGetResources.

This commit is contained in:
Jackson Netherwood-Imig
2026-01-20 22:17:03 -08:00
parent 6e7f3cad5c
commit 610fc4cc75
6 changed files with 784 additions and 2 deletions
+13 -2
View File
@@ -4,9 +4,20 @@ pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
_ = b.addModule("drm_fourcc", .{
const drm = b.addModule("drm", .{
.target = target,
.optimize = optimize,
.root_source_file = b.path("drm_fourcc.zig"),
.root_source_file = b.path("src/drm.zig"),
});
const example = b.addExecutable(.{
.name = "example",
.root_module = b.createModule(.{
.target = target,
.optimize = optimize,
.root_source_file = b.path("example.zig"),
}),
});
example.root_module.addImport("drm", drm);
b.installArtifact(example);
}