refactor: add an FSEvents based watcher for macos

This commit is contained in:
CJ van den Berg 2026-02-20 19:11:28 +01:00
parent bc06118995
commit 7614eea30e
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 10 additions and 0 deletions

View file

@ -734,6 +734,12 @@ pub fn build_exe(
exe.root_module.addImport("version", b.createModule(.{ .root_source_file = version_file }));
exe.root_module.addImport("version_info", b.createModule(.{ .root_source_file = version_info_file }));
if (target.result.os.tag == .macos) {
exe.addFrameworkPath(b.dependency("xcode-frameworks", .{}).path("Frameworks"));
exe.linkFramework("CoreServices");
exe.linkFramework("CoreFoundation");
}
if (target.result.os.tag == .windows) {
exe.addWin32ResourceFile(.{
.file = b.path("src/win32/flow.rc"),

View file

@ -46,6 +46,10 @@
.url = "git+https://github.com/ziglibs/diffz.git#fbdf690b87db6b1142bbce6d4906f90b09ce60bb",
.hash = "diffz-0.0.1-G2tlIezMAQBwGNGDs7Hn_N25dWSjEzgR_FAx9GFAvCuZ",
},
.@"xcode-frameworks" = .{
.url = "git+https://github.com/hexops/xcode-frameworks?ref=main#8a1cfb373587ea4c9bb1468b7c986462d8d4e10e",
.hash = "N-V-__8AALShqgXkvqYU6f__FrA22SMWmi2TXCJjNTO1m8XJ",
},
},
.paths = .{
"include",