Lines Matching +full:- +full:p
7 // http://www.apache.org/licenses/LICENSE-2.0
64 func (p *platformCompatConfig) compatConfigMetadata() android.Path {
65 return p.metadataFile
68 func (p *platformCompatConfig) CompatConfig() android.OutputPath {
69 return p.configFile
72 func (p *platformCompatConfig) SubDir() string {
91 func (p *platformCompatConfig) GenerateAndroidBuildActions(ctx android.ModuleContext) {
94 configFileName := p.Name() + ".xml"
95 metadataFileName := p.Name() + "_meta.xml"
96 p.configFile = android.PathForModuleOut(ctx, configFileName).OutputPath
97 p.metadataFile = android.PathForModuleOut(ctx, metadataFileName).OutputPath
98 path := android.PathForModuleSrc(ctx, String(p.properties.Src))
101 BuiltTool("process-compat-config").
102 FlagWithInput("--jar ", path).
103 FlagWithOutput("--device-config ", p.configFile).
104 FlagWithOutput("--merged-config ", p.metadataFile)
106 p.installDirPath = android.PathForModuleInstall(ctx, "etc", "compatconfig")
111 func (p *platformCompatConfig) AndroidMkEntries() []android.AndroidMkEntries {
114 OutputFile: android.OptionalPathForPath(p.configFile),
118 entries.SetString("LOCAL_MODULE_PATH", p.installDirPath.ToMakePath().String())
119 entries.SetString("LOCAL_INSTALLED_MODULE_STEM", p.configFile.Base())
227 // A versioned prebuilt_platform_compat_config, i.e. foo-platform-compat-config@current should be
236 func (p *platformCompatConfigSingleton) GenerateBuildActions(ctx android.SingletonContext) {
262 BuiltTool("process-compat-config").
263 FlagForEachInput("--xml ", compatConfigMetadata).
264 FlagWithOutput("--merged-config ", outputPath)
266 rule.Build("merged-compat-config", "Merge compat config")
268 p.metadata = outputPath
271 func (p *platformCompatConfigSingleton) MakeVars(ctx android.MakeVarsContext) {
272 if p.metadata != nil {
273 ctx.Strict("INTERNAL_PLATFORM_MERGED_COMPAT_CONFIG", p.metadata.String())