aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorNan Zhang <nanzhang@google.com>2018-02-06 16:09:49 -0800
committerNan Zhang <nanzhang@google.com>2018-02-07 10:18:41 -0800
commitf36a3d9b6da654bf8bd7a49315b1625cf0e774ce (patch)
tree603a31b490cc84e322f3e4b88392d1b0a3d4fe09 /python
parent7a26b708a523416dcc761fa98ff88444ceb50b2e (diff)
downloadbuild_soong-f36a3d9b6da654bf8bd7a49315b1625cf0e774ce.tar.gz
build_soong-f36a3d9b6da654bf8bd7a49315b1625cf0e774ce.tar.bz2
build_soong-f36a3d9b6da654bf8bd7a49315b1625cf0e774ce.zip
Support filegroup in exclude_srcs
Test: add unit-test, m -j32 Bug: b/70351683 Change-Id: Iff83c56d45dd668d9df6131c7df2e23e5c73a21b
Diffstat (limited to 'python')
-rw-r--r--python/python.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/python.go b/python/python.go
index 9a3b1bbc..ed879eb0 100644
--- a/python/python.go
+++ b/python/python.go
@@ -266,11 +266,13 @@ func (p *Module) DepsMutator(ctx android.BottomUpMutatorContext) {
android.ExtractSourcesDeps(ctx, p.properties.Data)
// deps from "srcs".
android.ExtractSourcesDeps(ctx, p.properties.Srcs)
+ android.ExtractSourcesDeps(ctx, p.properties.Exclude_srcs)
switch p.properties.Actual_version {
case pyVersion2:
// deps from "version.py2.srcs" property.
android.ExtractSourcesDeps(ctx, p.properties.Version.Py2.Srcs)
+ android.ExtractSourcesDeps(ctx, p.properties.Version.Py2.Exclude_srcs)
ctx.AddVariationDependencies(nil, pythonLibTag,
uniqueLibs(ctx, p.properties.Libs, "version.py2.libs",
@@ -286,6 +288,7 @@ func (p *Module) DepsMutator(ctx android.BottomUpMutatorContext) {
case pyVersion3:
// deps from "version.py3.srcs" property.
android.ExtractSourcesDeps(ctx, p.properties.Version.Py3.Srcs)
+ android.ExtractSourcesDeps(ctx, p.properties.Version.Py3.Exclude_srcs)
ctx.AddVariationDependencies(nil, pythonLibTag,
uniqueLibs(ctx, p.properties.Libs, "version.py3.libs",