30 lines
843 B
Zig
30 lines
843 B
Zig
const std = @import("std");
|
|
const sdl3 = @import("sdl3");
|
|
const core = @import("core");
|
|
|
|
const dependencyList = [_][]const u8{
|
|
"core",
|
|
};
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const engineMod = core.MakeEngineMod(b, "sys");
|
|
engineMod.linkModLibs(&dependencyList);
|
|
engineMod.install();
|
|
|
|
// ========== tests ==========
|
|
const tests = b.addTest(.{
|
|
.root_module = b.createModule(.{
|
|
.target = engineMod.target,
|
|
.optimize = engineMod.optimize,
|
|
.root_source_file = b.path("tests/tests.zig"),
|
|
}),
|
|
});
|
|
const test_step = b.step("test", "run unit tests for ui");
|
|
|
|
tests.root_module.addImport("sys", engineMod.mod);
|
|
const runArtifact = b.addRunArtifact(tests);
|
|
b.installArtifact(tests);
|
|
test_step.dependOn(&runArtifact.step);
|
|
b.installArtifact(tests);
|
|
}
|