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

More pleasant to work with than ObjectiveC, which will help with the following commit. Swift libraries weren't added to macOS until 10.14.4, so theme autodetection will fail on 10.14.0-10.14.3. The Qt6 build will have its minimum version bumped to 10.14.4; the Qt5 build will remain on 10.13.4. Bazel's rules_swift doesn't currently support building Swift dylibs, so we need to invoke swiftc directly via a genrule().
15 lines
367 B
Text
15 lines
367 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)",
|
|
tags = ["manual"],
|
|
tools = [":helper_build"],
|
|
visibility = ["//qt:__subpackages__"],
|
|
)
|