Merge "Remove noop code from generateHiddenAPIBuildActions" am: 149e19ef70
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1674035 Change-Id: Ibd438c9ca550d72bde0f0d83df3e093051596cb8
This commit is contained in:
@@ -261,16 +261,10 @@ func (b *platformBootclasspathModule) getImageConfig(ctx android.EarlyModuleCont
|
|||||||
// generateHiddenAPIBuildActions generates all the hidden API related build rules.
|
// generateHiddenAPIBuildActions generates all the hidden API related build rules.
|
||||||
func (b *platformBootclasspathModule) generateHiddenAPIBuildActions(ctx android.ModuleContext, modules []android.Module) {
|
func (b *platformBootclasspathModule) generateHiddenAPIBuildActions(ctx android.ModuleContext, modules []android.Module) {
|
||||||
|
|
||||||
// Save the paths to the monolithic files for retrieval via OutputFiles()
|
// Save the paths to the monolithic files for retrieval via OutputFiles().
|
||||||
// Make the paths relative to the out/soong/hiddenapi directory instead of to the out/soong/
|
b.hiddenAPIFlagsCSV = hiddenAPISingletonPaths(ctx).flags
|
||||||
// directory. This ensures that if they are used as java_resources they do not end up in a
|
b.hiddenAPIIndexCSV = hiddenAPISingletonPaths(ctx).index
|
||||||
// hiddenapi directory in the resulting APK.
|
b.hiddenAPIMetadataCSV = hiddenAPISingletonPaths(ctx).metadata
|
||||||
relToHiddenapiDir := func(path android.OutputPath) android.Path {
|
|
||||||
return path
|
|
||||||
}
|
|
||||||
b.hiddenAPIFlagsCSV = relToHiddenapiDir(hiddenAPISingletonPaths(ctx).flags)
|
|
||||||
b.hiddenAPIIndexCSV = relToHiddenapiDir(hiddenAPISingletonPaths(ctx).index)
|
|
||||||
b.hiddenAPIMetadataCSV = relToHiddenapiDir(hiddenAPISingletonPaths(ctx).metadata)
|
|
||||||
|
|
||||||
moduleSpecificFlagsPaths := android.Paths{}
|
moduleSpecificFlagsPaths := android.Paths{}
|
||||||
for _, module := range modules {
|
for _, module := range modules {
|
||||||
|
Reference in New Issue
Block a user