chuniio-tasoller/build.zig

24 lines
827 B
Zig
Raw Normal View History

2022-01-23 00:28:12 +00:00
const std = @import("std");
const CrossTarget = std.zig.CrossTarget;
2023-12-21 01:55:11 +00:00
const Build = std.build.Builder;
const Step = Build.Step;
2022-01-23 00:28:12 +00:00
2023-12-21 01:55:11 +00:00
pub fn build(b: *Build) void {
const mode = b.standardOptimizeOption(.{});
2022-03-17 17:45:24 +00:00
2023-12-21 01:55:11 +00:00
const lib86 = b.addSharedLibrary(Build.SharedLibraryOptions{
.name = "chuniio_tasoller",
.root_source_file = .{.path = "src/main.zig"},
.target = CrossTarget{ .os_tag = .windows, .cpu_arch = .x86, .abi = .msvc },
.optimize = mode,
});
b.installArtifact(lib86);
const lib64 = b.addSharedLibrary(Build.SharedLibraryOptions{
.name = "chuniio_tasoller_x64",
.root_source_file = .{.path = "src/main.zig"},
.target = CrossTarget{ .os_tag = .windows, .cpu_arch = .x86_64, .abi = .msvc },
.optimize = mode,
});
b.installArtifact(lib64);
}