holy fuck voice to agent response works kinda sorta
This commit is contained in:
52
build.zig
Normal file
52
build.zig
Normal file
@@ -0,0 +1,52 @@
|
||||
const std = @import("std");
|
||||
const configureQtExeRootModule = @import("libqt6zig").configureQtExeRootModule;
|
||||
|
||||
pub fn build(b: *std.Build) void {
|
||||
const target = b.standardTargetOptions(.{});
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
const qt6zig = b.dependency("libqt6zig", .{
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
|
||||
// Qt C++ binding libraries we link for the tray daemon.
|
||||
const qt_libraries = [_][]const u8{
|
||||
"qapplication",
|
||||
"qcoreapplication",
|
||||
"qguiapplication",
|
||||
"qaction",
|
||||
"qcolor",
|
||||
"qicon",
|
||||
"qpixmap",
|
||||
"qmenu",
|
||||
"qsystemtrayicon",
|
||||
"qwidget",
|
||||
};
|
||||
|
||||
const exe = b.addExecutable(.{
|
||||
.name = "inferon",
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("src/main.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
.link_libc = true,
|
||||
.imports = &.{
|
||||
.{ .name = "libqt6zig", .module = qt6zig.module("libqt6zig") },
|
||||
},
|
||||
}),
|
||||
});
|
||||
|
||||
for (qt_libraries) |lib|
|
||||
exe.root_module.linkLibrary(qt6zig.artifact(lib));
|
||||
|
||||
configureQtExeRootModule(b, exe, .{}) catch @panic("Qt configuration failed");
|
||||
|
||||
b.installArtifact(exe);
|
||||
|
||||
const run_step = b.step("run", "Run inferon");
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user