Add dependency to list of asset files
We had a dependency on each file in the asset directories, but that wouldn't cause aapt2 to run if a file was removed. Add a dependency on a file that contains the list of files in the asset directories. Fixes: 172867096 Test: m CarrierConfig && rm packages/apps/CarrierConfig/assets/carrier_config_no_sim.xml && m CarrierConfig Change-Id: I35f3b85355fa890a3e95eaa6458a21466b6930e4
This commit is contained in:
@@ -331,6 +331,8 @@ type BaseContext interface {
|
||||
type ModuleContext interface {
|
||||
BaseModuleContext
|
||||
|
||||
blueprintModuleContext() blueprint.ModuleContext
|
||||
|
||||
// Deprecated: use ModuleContext.Build instead.
|
||||
ModuleBuild(pctx PackageContext, params ModuleBuildParams)
|
||||
|
||||
@@ -2544,6 +2546,10 @@ func (m *moduleContext) CheckbuildFile(srcPath Path) {
|
||||
m.checkbuildFiles = append(m.checkbuildFiles, srcPath)
|
||||
}
|
||||
|
||||
func (m *moduleContext) blueprintModuleContext() blueprint.ModuleContext {
|
||||
return m.bp
|
||||
}
|
||||
|
||||
// SrcIsModule decodes module references in the format ":name" into the module name, or empty string if the input
|
||||
// was not a module reference.
|
||||
func SrcIsModule(s string) (module string) {
|
||||
|
Reference in New Issue
Block a user