glfw: build: produce static library
This commit is contained in:
parent
2e486e8594
commit
b1f4b98a9f
1 changed files with 8 additions and 0 deletions
|
@ -5,6 +5,14 @@ const system_sdk = @import("system_sdk.zig");
|
||||||
|
|
||||||
pub fn build(b: *Builder) void {
|
pub fn build(b: *Builder) void {
|
||||||
const mode = b.standardReleaseOptions();
|
const mode = b.standardReleaseOptions();
|
||||||
|
const target = b.standardTargetOptions(.{});
|
||||||
|
|
||||||
|
const test_app = b.addStaticLibrary("test_app", null);
|
||||||
|
test_app.setBuildMode(mode);
|
||||||
|
test_app.setTarget(target);
|
||||||
|
link(b, test_app, .{});
|
||||||
|
test_app.install();
|
||||||
|
|
||||||
const test_step = b.step("test", "Run library tests");
|
const test_step = b.step("test", "Run library tests");
|
||||||
test_step.dependOn(&testStep(b, mode).step);
|
test_step.dependOn(&testStep(b, mode).step);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue