rules_apple icon indicating copy to clipboard operation
rules_apple copied to clipboard

Add use_runfiles aspect_hint to include runfiles for specific cc_libr…

Open gkoreman opened this issue 7 months ago • 1 comments

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

gkoreman avatar Jun 26 '24 05:06 gkoreman