24 lines
564 B
Zig
24 lines
564 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const vm_dep = b.dependency("vecmath", .{});
|
|
const vm_module = vm_dep.module("vecmath");
|
|
|
|
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);
|
|
}
|