Skip to content

Commit b6d7947

Browse files
committed
More build cleanup
1 parent b56c1d1 commit b6d7947

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.zig

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ pub fn build(b: *std.Build) void {
3636
.optimize = optimize,
3737
};
3838

39+
// make the Delve library as a static lib
3940
const lib = b.addStaticLibrary(lib_opts);
40-
linkDelveFramework(b, lib, target, optimize);
41+
makeDelveLibrary(b, lib, target, optimize);
4142
b.installArtifact(lib);
4243

4344
buildExample(b, "audio", target, optimize, delve_module, lib);
@@ -59,7 +60,7 @@ pub fn build(b: *std.Build) void {
5960
test_step.dependOn(&exe_tests.step);
6061
}
6162

62-
pub fn linkDelveFramework(b: *std.Build, step: *std.Build.CompileStep, target: anytype, optimize: anytype) void {
63+
pub fn makeDelveLibrary(b: *std.Build, step: *std.Build.CompileStep, target: anytype, optimize: anytype) void {
6364
step.addCSourceFile(.{ .file = .{ .path = "libs/stb_image-2.28/stb_image_impl.c" }, .flags = &[_][]const u8{"-std=c99"} });
6465
step.addIncludePath(.{ .path = "libs/stb_image-2.28" });
6566

0 commit comments

Comments
 (0)