diff options
author | Liz Kammer <eakammer@google.com> | 2022-01-31 16:16:06 -0500 |
---|---|---|
committer | Liz Kammer <eakammer@google.com> | 2022-02-23 13:59:19 -0500 |
commit | 4065e5b2688cd99f9cea04c67c9dd214f64e0e8d (patch) | |
tree | 9ed7ca99ee849dc1940ad5b1e3028a885a2f1b0f /Changes.md | |
parent | 77c1dfa6d91ef7e434cdd92b6f89104d10416c58 (diff) | |
download | build-4065e5b2688cd99f9cea04c67c9dd214f64e0e8d.tar.gz |
Introduce BUILD_BROKEN_INPUT_DIR_MODULES
Allows allowlisting modules that can temporarily continue to use a
directory as an input while some module types restrict their allowed
inputs.
Test: CI
Change-Id: Ic968a6f6efad45b6c1095dd214813e326d7493c1
Diffstat (limited to 'Changes.md')
-rw-r--r-- | Changes.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Changes.md b/Changes.md index 1ab005fa3c..5edb1d83fb 100644 --- a/Changes.md +++ b/Changes.md @@ -1,5 +1,35 @@ # Build System Changes for Android.mk Writers +## Genrule starts disallowing directory inputs + +To better specify the inputs to the build, we are restricting use of directories +as inputs to genrules. + +To fix existing uses, change inputs to specify the inputs and update the command +accordingly. For example: + +``` +genrule: { + name: "foo", + srcs: ["bar"], + cmd: "cp $(location bar)/*.xml $(gendir)", + ... +} +``` + +would become + +``` +genrule: { + name: "foo", + srcs: ["bar/*.xml"], + cmd: "cp $(in) $(gendir)", + ... +} + +`BUILD_BROKEN_INPUT_DIR_MODULES` can be used to allowlist specific directories +with genrules that have input directories. + ## Dexpreopt starts enforcing `<uses-library>` checks (for Java modules) In order to construct correct class loader context for dexpreopt, build system |