fix build system

master
RedStealthDev 10 months ago
parent b863956c67
commit 630577f550

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

Loading…
Cancel
Save