diff options
| author | Grace Yoder <grace_yoder@outlook.com> | 2026-06-29 09:45:37 -0600 |
|---|---|---|
| committer | Grace Yoder <grace_yoder@outlook.com> | 2026-06-30 16:33:26 -0600 |
| commit | 565174c4b8c73e9e28524709060335a0b17ee3fb (patch) | |
| tree | 4e642c58ef4f4c227b29537be56183c73d9b5179 /build.zig | |
| parent | 2f75723e16974bd21762fb64d5f6ce53984b115d (diff) | |
feat(NSPasteboard): added objective c bridge and build changes
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -23,6 +23,21 @@ pub fn build(b: *std.Build) void { }), }); + if (target.result.os.tag == .macos) { + exe.root_module.addCSourceFiles(.{ + .files = &.{"src/Clip/NSPBBridge.m"}, + .language = .objective_c, + .flags = &.{"-fobjc-arc"}, + }); + exe.root_module.linkFramework("Cocoa", .{}); + tests.root_module.addCSourceFiles(.{ + .files = &.{"src/Clip/NSPBBridge.m"}, + .language = .objective_c, + .flags = &.{"-fobjc-arc"}, + }); + tests.root_module.linkFramework("Cocoa", .{}); + } + const test_step = b.step("test", "Run tests"); const run_tests = b.addRunArtifact(tests); test_step.dependOn(&run_tests.step); |
