From 956e07b2ba52575b14b7b0b7de80174b8706e1de Mon Sep 17 00:00:00 2001 From: Ali Chraghi Date: Sat, 23 Jul 2022 16:52:34 +0430 Subject: [PATCH] glfw: build: produce static library --- glfw/build.zig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/glfw/build.zig b/glfw/build.zig index 5c0bcaae..a2991c4a 100644 --- a/glfw/build.zig +++ b/glfw/build.zig @@ -5,6 +5,14 @@ const system_sdk = @import("system_sdk.zig"); pub fn build(b: *Builder) void { 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"); test_step.dependOn(&testStep(b, mode).step); }