Add OutputFile to cc.Module

APEX needs to know the location of the output file of cc.Module to copy
it to an intermediate directory and package there.

Bug: 112672359
Test: m apex.test
Change-Id: Iaa19b29c2859df96f50716001dbd57df3f596050
This commit is contained in:
Jiyong Park 2018-09-05 22:36:17 +09:00
parent c747535cc2
commit c20eee3605
1 changed files with 4 additions and 0 deletions

View File

@ -366,6 +366,10 @@ type Module struct {
staticVariant *Module
}
func (c *Module) OutputFile() android.OptionalPath {
return c.outputFile
}
func (c *Module) Init() android.Module {
c.AddProperties(&c.Properties, &c.VendorProperties)
if c.compiler != nil {