Skip to content

Commit

Permalink
Add module (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgranstrom authored Nov 20, 2024
1 parent de1ae6f commit b3919b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const zigosc = b.addModule("zigosc", .{
.root_source_file = b.path("src/root.zig"),
});

const lib = b.addStaticLibrary(.{
.name = "zigosc",
Expand All @@ -12,6 +15,7 @@ pub fn build(b: *std.Build) void {
});

b.installArtifact(lib);
zigosc.linkLibrary(lib);

const lib_unit_tests = b.addTest(.{
.root_source_file = b.path("src/root.zig"),
Expand Down

0 comments on commit b3919b7

Please sign in to comment.