Allow setting a copy_to_dist_dir's visibility attribute.

If another rule (e.g. another exec rule) in another package wants to use
a given copy_to_dist_dir macro, that rule's visibility will have to be
correctly set.

This CL allows setting the underlying embedded_exec's visiblity
attribute.

Test: Created an exec rule that referenced a copy_to_dist_dir rule in
another package and successfully executed the exec rule.

Change-Id: I2efca7ac30f11c4961c2e30d752970be81fcc962
1 file changed
tree: 913302e5d72b5a7e628f1e3a02200d98bd9f8849
  1. dist/
  2. docs/
  3. exec/
  4. test_mapping/
  5. OWNERS
  6. README.md
README.md

Bazel Common Rules

This directory contains common Bazel rules and tools shared between the Platform and Kernel builds.

For platform-specific rules, place them in the platform checkout's //build/bazel/rules directory.

For kernel-specific rules, place them in kernel checkout's //build/kleaf directory.