refactor: add an FSEvents based watcher for macos
This commit is contained in:
parent
bc06118995
commit
7614eea30e
2 changed files with 10 additions and 0 deletions
|
|
@ -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", b.createModule(.{ .root_source_file = version_file }));
|
||||||
exe.root_module.addImport("version_info", b.createModule(.{ .root_source_file = version_info_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) {
|
if (target.result.os.tag == .windows) {
|
||||||
exe.addWin32ResourceFile(.{
|
exe.addWin32ResourceFile(.{
|
||||||
.file = b.path("src/win32/flow.rc"),
|
.file = b.path("src/win32/flow.rc"),
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,10 @@
|
||||||
.url = "git+https://github.com/ziglibs/diffz.git#fbdf690b87db6b1142bbce6d4906f90b09ce60bb",
|
.url = "git+https://github.com/ziglibs/diffz.git#fbdf690b87db6b1142bbce6d4906f90b09ce60bb",
|
||||||
.hash = "diffz-0.0.1-G2tlIezMAQBwGNGDs7Hn_N25dWSjEzgR_FAx9GFAvCuZ",
|
.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 = .{
|
.paths = .{
|
||||||
"include",
|
"include",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue