Merge "Add a testdata property in goPackage and goBinary" am: 5d3bfd147b
am: d1044697df
am: c909cd036d
am: 36511fc852
am: 8e917b6912
Original change: https://android-review.googlesource.com/c/platform/build/blueprint/+/2636751 Change-Id: Ic3564918364d5e9e14e7c9d38eacae85cb9b50f7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
c6e97e097e
1 changed files with 10 additions and 0 deletions
|
@ -208,6 +208,7 @@ type GoPackage struct {
|
|||
PkgPath string
|
||||
Srcs []string
|
||||
TestSrcs []string
|
||||
TestData []string
|
||||
PluginFor []string
|
||||
|
||||
Darwin struct {
|
||||
|
@ -368,6 +369,10 @@ func (g *GoPackage) Deps() []string {
|
|||
return g.properties.Deps
|
||||
}
|
||||
|
||||
func (g *GoPackage) TestData() []string {
|
||||
return g.properties.TestData
|
||||
}
|
||||
|
||||
// A GoBinary is a module for building executable binaries from Go sources.
|
||||
type GoBinary struct {
|
||||
blueprint.SimpleName
|
||||
|
@ -375,6 +380,7 @@ type GoBinary struct {
|
|||
Deps []string
|
||||
Srcs []string
|
||||
TestSrcs []string
|
||||
TestData []string
|
||||
PrimaryBuilder bool
|
||||
Default bool
|
||||
|
||||
|
@ -440,6 +446,10 @@ func (g *GoBinary) Deps() []string {
|
|||
return g.properties.Deps
|
||||
}
|
||||
|
||||
func (g *GoBinary) TestData() []string {
|
||||
return g.properties.TestData
|
||||
}
|
||||
|
||||
func (g *GoBinary) GenerateBuildActions(ctx blueprint.ModuleContext) {
|
||||
// Allow the primary builder to create multiple variants. Any variants after the first
|
||||
// will copy outputs from the first.
|
||||
|
|
Loading…
Reference in a new issue