load("@rules_cc//cc:defs.bzl", "objc_library")

objc_library(
    name = "helper_static",
    srcs = ["AnkiHelper.m"],
    enable_modules = True,
    sdk_frameworks = ["AppKit"],
    tags = ["manual"],
    alwayslink = True,
)

apple_binary(
    name = "helper_dylib",
    binary_type = "dylib",
    minimum_os_version = "10.14",
    platform_type = "macos",
    tags = ["manual"],
    visibility = ["//qt:__subpackages__"],
    deps = ["helper_static"],
)
