mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

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.
16 lines
406 B
Text
16 lines
406 B
Text
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__"],
|
|
)
|