diff options
author | 2020-11-10 12:27:45 -0800 | |
---|---|---|
committer | 2020-12-11 19:54:16 +0000 | |
commit | c20dc8533e0ed41ba3d708e85515980fff04c9f2 (patch) | |
tree | fe6fb7c2513fbc2cdb63ac3c6adaef93c9ab533a /android/module.go | |
parent | d3b30670f2846ebe0a84dfc6bf7bc8a8c38ed110 (diff) |
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
Diffstat (limited to 'android/module.go')
-rw-r--r-- | android/module.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/android/module.go b/android/module.go index bbdeb2733..f805acdf5 100644 --- a/android/module.go +++ b/android/module.go @@ -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) { |