Skip to content

Commit

Permalink
More build cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Interrupt committed Jan 28, 2024
1 parent b56c1d1 commit b6d7947
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ pub fn build(b: *std.Build) void {
.optimize = optimize,
};

// make the Delve library as a static lib
const lib = b.addStaticLibrary(lib_opts);
linkDelveFramework(b, lib, target, optimize);
makeDelveLibrary(b, lib, target, optimize);
b.installArtifact(lib);

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

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

Expand Down

0 comments on commit b6d7947

Please sign in to comment.