rules_apple
rules_apple copied to clipboard
Add use_runfiles aspect_hint to include runfiles for specific cc_libr…
Fixes #2477
Add use_runfiles aspect_hint aspect_hints = ["@build_bazel_rules_apple//apple:use_runfiles"],
This aspect_hint will tell the resource aspect to gather and bundle runfiles from this aspect_hint.
cc_library(
name = "libapp",
srcs = ["main.cpp",],
data = [":data.txt"],
aspect_hints = ["@build_bazel_rules_apple//apple:use_runfiles"],
)
macos_application(
name = "app_macos",
deps = [":libapp"],
)
data.txt is bundled in Contents/Resources/data.txt