Nathan Christopher McRae
32c0b9bb5c
You can pass files / dirs as arguments an they will be opened. The directories will be searched for text files (as identified by libmagic) and those text files will be displayed too.
20 lines
542 B
Zig
20 lines
542 B
Zig
const Builder = @import("std").build.Builder;
|
|
|
|
pub fn build(b: *Builder) void {
|
|
const mode = b.standardReleaseOptions();
|
|
const exe = b.addExecutable("docmap", "src/main.zig");
|
|
|
|
exe.setBuildMode(mode);
|
|
exe.linkSystemLibrary("SDL2");
|
|
exe.linkSystemLibrary("SDL2_TTF");
|
|
exe.linkSystemLibrary("magic");
|
|
exe.linkSystemLibrary("c");
|
|
|
|
b.default_step.dependOn(&exe.step);
|
|
b.installArtifact(exe);
|
|
|
|
const run = b.step("run", "Run the demo");
|
|
const run_cmd = exe.run();
|
|
run.dependOn(&run_cmd.step);
|
|
}
|