Skip to content

Commit

Permalink
Update build.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
SnorlaxAssist committed Jun 14, 2024
1 parent df6627d commit 6657337
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,18 @@ pub fn build(b: *std.Build) void {
// Docs
const docs_step = b.step("docs", "Build documentation");

const docs_obj = b.addObject(.{
.name = "docs",
.root_source_file = b.path(LIB_SRC),
.target = target,
.optimize = optimize,
});

docs_obj.linkLibrary(lib);
docs_obj.addIncludePath(lz4_dependency.path("lib"));

const install_docs = b.addInstallDirectory(.{
.source_dir = lib.getEmittedDocs(),
.source_dir = docs_obj.getEmittedDocs(),
.install_dir = .prefix,
.install_subdir = "../docs",
});
Expand Down

0 comments on commit 6657337

Please sign in to comment.