mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-27 17:41:40 +00:00
pkg/macos: start core foundation bindings
This commit is contained in:
24
pkg/macos/build.zig
Normal file
24
pkg/macos/build.zig
Normal file
@@ -0,0 +1,24 @@
|
||||
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");
|
||||
return lib;
|
||||
}
|
||||
Reference in New Issue
Block a user