Fumofumotris/build.zig
Julia 49b7a9f7ed Wasapi adapter
Rewriting a lot
2024-10-25 13:49:43 -05:00

29 lines
849 B
Zig

const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
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"),
});
const exe = b.addExecutable(.{
.name = "Fumofumotris",
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
exe.root_module.addImport("audio_interface", i_audio);
exe.root_module.addImport("minimal_input_interface", i_minimal_input);
exe.linkLibC();
exe.linkSystemLibrary("ole32");
b.installArtifact(exe);
}