encompass-zig/build.zig

18 lines
583 B
Zig

const Builder = @import("std").build.Builder;
pub fn build(b: *Builder) void {
const mode = b.standardReleaseOptions();
const lib = b.addStaticLibrary("encompass", "src/encompass.zig");
lib.setBuildMode(mode);
lib.install();
var entity_manager_test = b.addTest("src/encompass.zig");
entity_manager_test.setBuildMode(mode);
var component_manager_test = b.addTest("src/component_manager.zig");
component_manager_test.setBuildMode(mode);
const test_step = b.step("test", "Run library tests");
test_step.dependOn(&entity_manager_test.step);
}