ecs: correct build pkg filepath

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-06-25 13:22:51 -07:00 committed by Stephen Gutekanst
parent 6227f11af4
commit 87ecd8b29e

View file

@ -13,6 +13,10 @@ pub fn build(b: *std.build.Builder) void {
pub const pkg = std.build.Pkg{
.name = "ecs",
.source = .{ .path = "src/main.zig" },
.source = .{ .path = thisDir() ++ "/src/main.zig" },
.dependencies = &[_]std.build.Pkg{},
};
fn thisDir() []const u8 {
return std.fs.path.dirname(@src().file) orelse ".";
}