fix build system

master
RedStealthDev 10 months ago
parent b863956c67
commit 630577f550

@ -75,11 +75,10 @@ pub const LibType = enum(i32) {
exe_compiled,
};
pub fn getModule(comptime prefix_path: []const u8) std.build.Module {
return .{
.name = "ecs",
.path = .{ .path = prefix_path ++ "src/ecs.zig" },
};
pub fn getModule(b: *std.Build, comptime prefix_path: []const u8) *std.build.Module {
return b.addModule("zig-ecs", .{
.source_file = .{ .path = prefix_path ++ "/src/ecs.zig" },
});
}
/// prefix_path is used to add package paths. It should be the the same path used to include this build file

Loading…
Cancel
Save