media: add stb_image
This commit is contained in:
@@ -6,6 +6,18 @@ pub fn build(b: *std.Build) void {
|
||||
|
||||
const root_module = b.addModule("media", .{
|
||||
.root_source_file = b.path("src/root.zig"),
|
||||
.link_libc = true,
|
||||
});
|
||||
|
||||
root_module.addCSourceFile(.{
|
||||
.file = b.path("src/stbi/stb_image.c"),
|
||||
.flags = &.{
|
||||
"-std=c17",
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
},
|
||||
.language = .c,
|
||||
});
|
||||
|
||||
root_module.addImport("vecmath", vm_module);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user