commit | ad89a00f6ed650b68f70b972a938826d6cd57035 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Apr 19 10:27:28 2022 -0700 |
committer | Yifan Hong <elsk@google.com> | Fri Apr 22 11:03:41 2022 -0700 |
tree | 59e2c9233612b967e44f076f9ba8dab5da218c23 | |
parent | 22d0160fa360cf132f3b3747a10b650ef8719c41 [diff] |
Add exec and tests. This is a free-formed rule that is similar to genrule, but it is executed when `bazel run`. This is useful to combine several executables into a single executable. The combined script requires the dependant target does not have `args` and `env`. embedded_exec is used to wrap args and env. The rule itself supports 'args' and can be referred to as $@. Test: TH Test: bazel test //build/bazel_common_rules/exec/tests Bug: 228560650 Bug: 229350514 Change-Id: Iadff05a12a98675d9590bc660c07269719da5f53
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.