diff options
author | Robby Zambito <contact@robbyzambito.me> | 2025-04-23 07:26:39 -0400 |
---|---|---|
committer | Robby Zambito <contact@robbyzambito.me> | 2025-04-23 07:26:41 -0400 |
commit | 89bfbe485454ee87712364fab05024cec305aad4 (patch) | |
tree | d8c063d2e6c697108ede31a64199bc14151aa8ce /build.zig | |
parent | fe26cb002db4b7bd9a53265690aba19a54ebe50f (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); |