initial commit

This commit is contained in:
Squibid 2025-12-03 14:22:10 -05:00
commit 4b8dff4d24
Signed by: squibid
GPG key ID: BECE5684D3C4005D
18 changed files with 1290 additions and 0 deletions

42
build.zig Normal file
View file

@ -0,0 +1,42 @@
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const mod = b.addModule("fooud", .{
.root_source_file = b.path("src/main.zig"),
.target = target,
});
const exe = b.addExecutable(.{
.name = "fooud",
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
.imports = &.{
.{ .name = "fooud", .module = mod },
},
}),
});
const dep_curl = b.dependency("curl", .{});
exe.root_module.addImport("curl", dep_curl.module("curl"));
exe.root_module.linkSystemLibrary("git2", .{});
exe.root_module.linkSystemLibrary("gpgme", .{});
exe.root_module.addIncludePath(b.path("src/util"));
exe.root_module.addCSourceFile(.{ .file = b.path("src/util/gpg_helper.c") });
exe.linkLibC();
b.installArtifact(exe);
const run_step = b.step("run", "Run the app");
const run_cmd = b.addRunArtifact(exe);
run_step.dependOn(&run_cmd.step);
run_cmd.step.dependOn(b.getInstallStep());
if (b.args) |args| {
run_cmd.addArgs(args);
}
}