2020-12-05 07:37:07 +00:00
|
|
|
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();
|
|
|
|
|
2020-12-05 21:03:43 +00:00
|
|
|
var entity_manager_test = b.addTest("src/encompass.zig");
|
2020-12-05 09:10:29 +00:00
|
|
|
entity_manager_test.setBuildMode(mode);
|
|
|
|
|
2020-12-05 21:03:43 +00:00
|
|
|
var component_manager_test = b.addTest("src/component_manager.zig");
|
|
|
|
component_manager_test.setBuildMode(mode);
|
|
|
|
|
2020-12-05 07:37:07 +00:00
|
|
|
const test_step = b.step("test", "Run library tests");
|
2020-12-05 09:10:29 +00:00
|
|
|
test_step.dependOn(&entity_manager_test.step);
|
2020-12-05 07:37:07 +00:00
|
|
|
}
|