initial commit

This commit is contained in:
rus07tam 2025-11-03 12:43:30 +00:00
commit 4a08b87af4
20 changed files with 967 additions and 0 deletions

46
build.zig Normal file
View file

@ -0,0 +1,46 @@
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const owa = b.addModule("Owa", .{
.root_source_file = b.path("src/mod.zig"),
.target = target,
});
const modules = b.addModule("modules", .{
.root_source_file = b.path("src/modules/mod.zig"),
.target = target,
.imports = &.{
.{ .name = "Owa", .module = owa },
},
});
const exe = b.addExecutable(.{
.name = "Owa",
.root_module = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
.imports = &.{
.{ .name = "Owa", .module = owa },
.{ .name = "modules", .module = modules },
},
}),
.use_llvm = true,
});
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);
}
}