49b7a9f7ed
Rewriting a lot
29 lines
849 B
Zig
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);
|
|
}
|