summaryrefslogtreecommitdiff
path: root/android/defs.go
diff options
context:
space:
mode:
author Sam Delmerico <delmerico@google.com> 2023-02-03 18:12:15 -0500
committer Sam Delmerico <delmerico@google.com> 2023-02-07 16:50:30 -0500
commit4ed95e263fa738ca4eda663ab8e1d9871397a8e6 (patch)
tree69c3a6a32d031f6a35a60082d5688d0ee78ed000 /android/defs.go
parentcb3c52c7665b2bded1a800f33718d57a5db5c6c5 (diff)
mixed build targets need transitive tidy files
Previously in mixed builds, only the tidy files for the boundary module were built, whereas all of its transitive dependencies' tidy files were not being built. Instead we should export the list of transitive tidy files for a module so that we can run clang-tidy for the boundary module as well as its dependencies. Bug: 195029134 Test: WITH_TIDY=1 DISABLE_ARTIFACT_PATH_REQUIREMENTS=true mss tidy-packages-modules-NeuralNetworks --bazel-mode-dev Change-Id: I463646d2ae1fc4aa075a54c264e1c34571c3fd5c
Diffstat (limited to 'android/defs.go')
-rw-r--r--android/defs.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/android/defs.go b/android/defs.go
index 6e5bb053f..18eed2dae 100644
--- a/android/defs.go
+++ b/android/defs.go
@@ -58,6 +58,14 @@ var (
},
"cpFlags", "extraCmds")
+ // A copy rule that doesn't preserve symlinks.
+ CpNoPreserveSymlink = pctx.AndroidStaticRule("CpNoPreserveSymlink",
+ blueprint.RuleParams{
+ Command: "rm -f $out && cp $cpFlags $in $out$extraCmds",
+ Description: "cp $out",
+ },
+ "cpFlags", "extraCmds")
+
// A copy rule that only updates the output if it changed.
CpIfChanged = pctx.AndroidStaticRule("CpIfChanged",
blueprint.RuleParams{