mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
18 lines
435 B
Zig
18 lines
435 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const obj = b.addObject(.{
|
|
.name = "base64",
|
|
.root_source_file = .{ .path = "base64.zig" },
|
|
});
|
|
|
|
const exe = b.addExecutable(.{
|
|
.name = "test",
|
|
});
|
|
exe.addCSourceFile(.{ .file = .{ .path = "test.c" }, .flags = &.{"-std=c99",} });
|
|
exe.addObject(obj);
|
|
exe.linkSystemLibrary("c");
|
|
b.installArtifact(exe);
|
|
}
|
|
|
|
// syntax
|