2024-09-17 08:26:24 +00:00
|
|
|
const std = @import("std");
|
|
|
|
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
|
|
const target = b.standardTargetOptions(.{});
|
|
|
|
const optimize = b.standardOptimizeOption(.{});
|
2024-10-25 18:49:43 +00:00
|
|
|
|
|
|
|
const i_audio = b.addModule("audio_interface", .{
|
|
|
|
.root_source_file = b.path("libs/audio_interface.zig"),
|
|
|
|
});
|
|
|
|
const i_minimal_input = b.addModule("minimal_input_interface", .{
|
|
|
|
.root_source_file = b.path("libs/minimal_input_interface.zig"),
|
|
|
|
});
|
|
|
|
|
2024-09-17 08:26:24 +00:00
|
|
|
const exe = b.addExecutable(.{
|
|
|
|
.name = "Fumofumotris",
|
|
|
|
.root_source_file = b.path("src/main.zig"),
|
|
|
|
.target = target,
|
|
|
|
.optimize = optimize,
|
|
|
|
});
|
2024-10-25 18:49:43 +00:00
|
|
|
|
|
|
|
exe.root_module.addImport("audio_interface", i_audio);
|
|
|
|
exe.root_module.addImport("minimal_input_interface", i_minimal_input);
|
|
|
|
|
2024-09-17 08:26:24 +00:00
|
|
|
exe.linkLibC();
|
2024-10-25 18:49:43 +00:00
|
|
|
exe.linkSystemLibrary("ole32");
|
2024-09-17 08:26:24 +00:00
|
|
|
|
|
|
|
b.installArtifact(exe);
|
|
|
|
}
|