Merge "Add filegroup srcs to json module graph" am: 0e3d36c582
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2107304 Change-Id: Ia8121c08147f20434046d535eab7f27bb0ab7f2e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -116,6 +116,23 @@ func FileGroupFactory() Module {
|
||||
return module
|
||||
}
|
||||
|
||||
var _ blueprint.JSONActionSupplier = (*fileGroup)(nil)
|
||||
|
||||
func (fg *fileGroup) JSONActions() []blueprint.JSONAction {
|
||||
ins := make([]string, 0, len(fg.srcs))
|
||||
outs := make([]string, 0, len(fg.srcs))
|
||||
for _, p := range fg.srcs {
|
||||
ins = append(ins, p.String())
|
||||
outs = append(outs, p.Rel())
|
||||
}
|
||||
return []blueprint.JSONAction{
|
||||
blueprint.JSONAction{
|
||||
Inputs: ins,
|
||||
Outputs: outs,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func (fg *fileGroup) GenerateAndroidBuildActions(ctx ModuleContext) {
|
||||
fg.srcs = PathsForModuleSrcExcludes(ctx, fg.properties.Srcs, fg.properties.Exclude_srcs)
|
||||
if fg.properties.Path != nil {
|
||||
|
Reference in New Issue
Block a user