dsa-4th-edition/build.zig
Sven Balzer 942c395f59 add zig build for compendium packs
move document types from template.json into system.json
change Talents into Items
add rolls for Talents
change the fallback language to german
2024-11-23 18:29:11 +01:00

23 lines
916 B
Zig

const std = @import("std");
pub fn build(b: *std.Build) void {
const compendiums_step = b.step("compendiums", "Build compendiums");
const package_step = b.step("package", "Build system zip");
const leveldb = b.dependency("leveldb", .{}).module("leveldb");
const compendium_creator = b.addExecutable(.{
.name = "compendium_creator",
.root_source_file = b.path("zig/compendium_creator.zig"),
.target = b.host,
.optimize = .Debug,
});
compendium_creator.root_module.addImport("leveldb", leveldb);
const build_compendiums = b.addRunArtifact(compendium_creator);
compendiums_step.dependOn(&build_compendiums.step);
const build_package = b.addSystemCommand(&.{ "7z", "-bsp0", "-bso0", "a", "dsa-4th-edition.zip", "src", "packs", "system.json" });
package_step.dependOn(compendiums_step);
package_step.dependOn(&build_package.step);
}