remove submodule
This commit is contained in:
parent
f88a6c8726
commit
970b1e4e90
10
build.zig
10
build.zig
@ -5,6 +5,11 @@ pub fn build(b: *std.build.Builder) void {
|
||||
const target = b.standardTargetOptions(.{});
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
// Modules available to downstream dependencies
|
||||
_ = b.addModule("zlib", .{
|
||||
.source_file = .{ .path = (comptime thisDir()) ++ "/src/main.zig" },
|
||||
});
|
||||
|
||||
const lib = zlib.create(b, target, optimize);
|
||||
b.installArtifact(lib.step);
|
||||
|
||||
@ -25,3 +30,8 @@ pub fn build(b: *std.build.Builder) void {
|
||||
lib.link(bin, .{ .import_name = "zlib" });
|
||||
b.installArtifact(bin);
|
||||
}
|
||||
|
||||
/// Path to the directory with the build.zig.
|
||||
fn thisDir() []const u8 {
|
||||
return std.fs.path.dirname(@src().file) orelse unreachable;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user