summaryrefslogtreecommitdiff
path: root/python/python.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2020-11-24 16:01:35 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-11-24 16:01:35 +0000
commite5218b6be65ff20832318123d69a6730c02f15d1 (patch)
tree2da07186c340b0a043748e97a2e009602b4e7699 /python/python.go
parentf503dc3ba139578743697ad696f1a909bbe61499 (diff)
parente9fe2949b887deba2b46b2a8c043f228a95e99e3 (diff)
Merge "Annotate dependency tags for dependencies of installed files"
Diffstat (limited to 'python/python.go')
-rw-r--r--python/python.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/python/python.go b/python/python.go
index d7b1bbad4..c27a09641 100644
--- a/python/python.go
+++ b/python/python.go
@@ -217,11 +217,17 @@ type dependencyTag struct {
name string
}
+type installDependencyTag struct {
+ blueprint.BaseDependencyTag
+ android.InstallAlwaysNeededDependencyTag
+ name string
+}
+
var (
pythonLibTag = dependencyTag{name: "pythonLib"}
javaDataTag = dependencyTag{name: "javaData"}
launcherTag = dependencyTag{name: "launcher"}
- launcherSharedLibTag = dependencyTag{name: "launcherSharedLib"}
+ launcherSharedLibTag = installDependencyTag{name: "launcherSharedLib"}
pyIdentifierRegexp = regexp.MustCompile(`^[a-zA-Z_][a-zA-Z0-9_-]*$`)
pyExt = ".py"
protoExt = ".proto"
@@ -336,6 +342,7 @@ func (p *Module) DepsMutator(ctx android.BottomUpMutatorContext) {
// cannot read the property at this stage and it will be too late to add
// dependencies later.
ctx.AddFarVariationDependencies(ctx.Target().Variations(), launcherSharedLibTag, "libsqlite")
+ ctx.AddFarVariationDependencies(ctx.Target().Variations(), launcherSharedLibTag, "libc++")
if ctx.Target().Os.Bionic() {
ctx.AddFarVariationDependencies(ctx.Target().Variations(), launcherSharedLibTag,