diff options
| author | 2021-10-04 19:20:28 +0000 | |
|---|---|---|
| committer | 2021-10-04 19:20:28 +0000 | |
| commit | 3e745e63f30a45dbb9e92a352e5bce354c51c355 (patch) | |
| tree | 5c3aa5cb126a9d2e6f92cdfaf2b5a896738d0718 /python/library.go | |
| parent | fec737d6fe05fa91018a6e978f2fcf37e4f4fc5a (diff) | |
| parent | d9051465909be80365cac16fee824bef348376e1 (diff) | |
Merge "Bp2Build common properties auto-handling" am: d905146590
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1815376
Change-Id: I38f1063302ea90583a51e625076e6232b4364ab7
Diffstat (limited to 'python/library.go')
| -rw-r--r-- | python/library.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/python/library.go b/python/library.go index 19fa59a3f..d136a4efb 100644 --- a/python/library.go +++ b/python/library.go @@ -45,7 +45,6 @@ func PythonLibraryHostFactory() android.Module { type bazelPythonLibraryAttributes struct { Srcs bazel.LabelListAttribute - Data bazel.LabelListAttribute Deps bazel.LabelListAttribute Srcs_version string } @@ -91,7 +90,6 @@ func pythonLibBp2Build(ctx android.TopDownMutatorContext, modType string) { baseAttrs := m.makeArchVariantBaseAttributes(ctx) attrs := &bazelPythonLibraryAttributes{ Srcs: baseAttrs.Srcs, - Data: baseAttrs.Data, Deps: baseAttrs.Deps, Srcs_version: python_version, } @@ -101,7 +99,10 @@ func pythonLibBp2Build(ctx android.TopDownMutatorContext, modType string) { Rule_class: "py_library", } - ctx.CreateBazelTargetModule(m.Name(), props, attrs) + ctx.CreateBazelTargetModule(props, android.CommonAttributes{ + Name: m.Name(), + Data: baseAttrs.Data, + }, attrs) } func PythonLibraryFactory() android.Module { |