Skip to content

Commit

Permalink
fix bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Mar 17, 2024
1 parent bdf3d06 commit 62298d2
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions build.zig
Original file line number Diff line number Diff line change
@@ -1,25 +1,9 @@
const std = @import("std");

const CFlags = &.{};

fn declareModule(b: *std.Build) void {
const module = b.addModule("flx", .{
.root_source_file = .{ .path = "src/flx.zig" },
});
module.addIncludePath(.{ .path = "c-lib/flx-c/include/" });
module.addCSourceFile(.{
.file = .{
.path = "src/stb_ds.c", // single-file header
},
.flags = CFlags,
});
module.addCSourceFile(.{
.file = .{
.path = "c-lib/flx-c/src/flx.c",
},
.flags = CFlags,
_ = b.addModule("flx", .{
.root_source_file = .{ .path = "src/root.zig" },
});
}

fn rest(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
Expand Down

0 comments on commit 62298d2

Please sign in to comment.