aboutsummaryrefslogtreecommitdiffstats
path: root/Android.bp
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2019-03-04 22:33:56 -0800
committerColin Cross <ccross@android.com>2019-03-07 18:36:24 +0000
commit1b48842a4b83ba6234d26ff4c77a0884f5008f62 (patch)
tree02cd5ff6fd92a0fbe9de3a5fe34542b75dfbd783 /Android.bp
parent1361449710eaa5ca4bd0acf01489ae0260d768b6 (diff)
downloadbuild_soong-1b48842a4b83ba6234d26ff4c77a0884f5008f62.tar.gz
build_soong-1b48842a4b83ba6234d26ff4c77a0884f5008f62.tar.bz2
build_soong-1b48842a4b83ba6234d26ff4c77a0884f5008f62.zip
Add path properties mutator
Add a mutator pass after DepsMutator that visits every property struct in every module looking for properties that have a tag `android:"path"`, and automatically add a SourceDepTag dependency on any module references (":module-name") found. Uses a cache to store the mapping of property struct type to locations of properties with the tag. Test: android/path_properties_test.go Change-Id: I38c0497843dde4890e9342c3a6f0b402c0720742
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 94b4f7e6..c0a1aeb3 100644
--- a/Android.bp
+++ b/Android.bp
@@ -56,6 +56,7 @@ bootstrap_go_package {
"android/neverallow.go",
"android/onceper.go",
"android/package_ctx.go",
+ "android/path_properties.go",
"android/paths.go",
"android/prebuilt.go",
"android/prebuilt_etc.go",
@@ -80,6 +81,7 @@ bootstrap_go_package {
"android/namespace_test.go",
"android/neverallow_test.go",
"android/onceper_test.go",
+ "android/path_properties_test.go",
"android/paths_test.go",
"android/prebuilt_test.go",
"android/prebuilt_etc_test.go",