Skip to content

Commit

Permalink
fix module
Browse files Browse the repository at this point in the history
  • Loading branch information
GrapeBaBa committed Nov 29, 2024
1 parent 8cfd661 commit 128fd07
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,22 @@ pub fn build(b: *std.Build) !void {
const optimize = b.standardOptimizeOption(.{});

// Create module
_ = b.addModule("libuv", .{
.root_source_file = .{ .cwd_relative = "src/main.zig" },
const module = b.addModule("libuv", .{
.link_libc = true,
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
module.addIncludePath(.{ .cwd_relative = include_path });

const tests = b.addTest(.{
.name = "pixman-test",
.root_source_file = .{ .cwd_relative = "src/main.zig" },
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
_ = try link(b, tests);
const lib = try link(b, tests);
b.installArtifact(lib);
b.installArtifact(tests);

const test_step = b.step("test", "Run tests");
Expand Down
Empty file removed build.zig.zon.zig
Empty file.

0 comments on commit 128fd07

Please sign in to comment.