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 ca0a1c69a5
commit 2e38bbf4ee
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
3 changed files with 204 additions and 1 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"),