Implement Module interface function FilesToInstall in platform_compat_config modules. am: 603331542f
am: 79ab67af6c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3137577 Change-Id: I93aa4d848047e6ddb1bb0eafd3e68403e711579a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -61,6 +61,8 @@ type platformCompatConfig struct {
|
||||
installDirPath android.InstallPath
|
||||
configFile android.OutputPath
|
||||
metadataFile android.OutputPath
|
||||
|
||||
installConfigFile android.InstallPath
|
||||
}
|
||||
|
||||
func (p *platformCompatConfig) compatConfigMetadata() android.Path {
|
||||
@@ -106,8 +108,12 @@ func (p *platformCompatConfig) GenerateAndroidBuildActions(ctx android.ModuleCon
|
||||
FlagWithOutput("--merged-config ", p.metadataFile)
|
||||
|
||||
p.installDirPath = android.PathForModuleInstall(ctx, "etc", "compatconfig")
|
||||
p.installConfigFile = android.PathForModuleInstall(ctx, "etc", "compatconfig", p.configFile.Base())
|
||||
rule.Build(configFileName, "Extract compat/compat_config.xml and install it")
|
||||
}
|
||||
|
||||
func (p *platformCompatConfig) FilesToInstall() android.InstallPaths {
|
||||
return android.InstallPaths{p.installConfigFile}
|
||||
}
|
||||
|
||||
func (p *platformCompatConfig) AndroidMkEntries() []android.AndroidMkEntries {
|
||||
|
Reference in New Issue
Block a user