2

I would like to package lets say a binary with the pkg_tar command. But I would also automatically like it to include all deps to that binary, for example all .so files from other Bezel targets that are referenced with deps. Is it possible?

pkg_tar(
    name = "example",
    srcs = ["//myprogram"], # This only packages myprogram target
    mode = "0644",
)
Brian Gianforcaro
  • 26,564
  • 11
  • 58
  • 77
Rolle
  • 2,900
  • 5
  • 36
  • 40

2 Answers2

3

Currently, this feature isn't officially supported. You have three basic options:

mgosk
  • 1,874
  • 14
  • 23
1

Setting the (undocumented) include_runfiles = True will include the shared object and any other runfiles of all the transitive dependencies.

Brian Silverman
  • 3,085
  • 11
  • 13