anki/qt/mac/BUILD.bazel
Damien Elmes 0de24122ad implement a basic native macOS audio recorder
This was motivated by the fact that recording was crashing on the native
M1 build. That ended up being mostly a PEBKAC problem - turns out the
Mac Mini has no built-in microphone 🤦.

I still thinks this has some value though - it doesn't crash in such
cases, and probably doesn't suffer from the problem shown in this thread
either:

https://forums.ankiweb.net/t/anki-crashes-when-trying-to-record-on-mac/14764

For now, this is only enabled when running on arm64. If it turns out to
be reliable, it could be offered as an option on amd64 as well.
2021-12-07 18:48:24 +10:00

17 lines
406 B
Python

py_binary(
name = "helper_build",
srcs = ["helper_build.py"],
tags = ["manual"],
)
genrule(
name = "helper_dylib",
srcs = glob(["*.swift"]),
outs = ["libankihelper.dylib"],
cmd = "$(location :helper_build) $@ $(COMPILATION_MODE) $(SRCS)",
message = "Compiling Swift dylib",
tags = ["manual"],
tools = [":helper_build"],
visibility = ["//qt:__subpackages__"],
)