mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
26 lines
575 B
Zig
26 lines
575 B
Zig
const std = @import("std");
|
|
const builtin = @import("builtin");
|
|
|
|
pub const pkg = std.build.Pkg{
|
|
.name = "macos",
|
|
.source = .{ .path = thisDir() ++ "/main.zig" },
|
|
};
|
|
|
|
fn thisDir() []const u8 {
|
|
return std.fs.path.dirname(@src().file) orelse ".";
|
|
}
|
|
|
|
pub const Options = struct {};
|
|
|
|
pub fn link(
|
|
b: *std.build.Builder,
|
|
step: *std.build.LibExeObjStep,
|
|
opt: Options,
|
|
) !*std.build.LibExeObjStep {
|
|
_ = opt;
|
|
const lib = b.addStaticLibrary("macos", null);
|
|
step.linkFramework("CoreFoundation");
|
|
step.linkFramework("CoreText");
|
|
return lib;
|
|
}
|