mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-05 19:08:17 +00:00
wuffs: simplify the build
This commit is contained in:
@@ -13,11 +13,7 @@ pub fn build(b: *std.Build) !void {
|
||||
|
||||
const unit_tests = b.addTest(.{
|
||||
.name = "test",
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("src/main.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
}),
|
||||
.root_module = module,
|
||||
});
|
||||
unit_tests.linkLibC();
|
||||
|
||||
@@ -34,12 +30,6 @@ pub fn build(b: *std.Build) !void {
|
||||
.file = wuffs_dep.path("release/c/wuffs-v0.4.c"),
|
||||
.flags = flags.items,
|
||||
});
|
||||
|
||||
unit_tests.addIncludePath(wuffs_dep.path("release/c"));
|
||||
unit_tests.addCSourceFile(.{
|
||||
.file = wuffs_dep.path("release/c/wuffs-v0.4.c"),
|
||||
.flags = flags.items,
|
||||
});
|
||||
}
|
||||
|
||||
if (b.lazyDependency("pixels", .{})) |pixels_dep| {
|
||||
|
Reference in New Issue
Block a user