diff options
author | Robby Zambito <contact@robbyzambito.me> | 2025-04-23 07:26:39 -0400 |
---|---|---|
committer | Robby Zambito <contact@robbyzambito.me> | 2025-04-27 18:03:06 -0400 |
commit | c0e466b28ae64ac72585617cb1935b272fec9dbb (patch) | |
tree | 6a8bb80f1160487e3e4e1cea7e91fdbc7aac47b8 /build.zig | |
parent | ee6062334b0d2ed391c8987b6219835e12860706 (diff) |
successfully build c interface
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -43,6 +43,8 @@ pub fn build(b: *std.Build) void { .name = "zaprus", .root_module = lib_mod, }); + static_lib.addIncludePath(.{ .cwd_relative = "include" }); + static_lib.linkLibC(); b.installArtifact(static_lib); @@ -51,6 +53,8 @@ pub fn build(b: *std.Build) void { .name = "zaprus", .root_module = lib_mod, }); + dynamic_lib.addIncludePath(.{ .cwd_relative = "include" }); + dynamic_lib.linkLibC(); b.installArtifact(dynamic_lib); |