diff options
Diffstat (limited to 'android/makevars.go')
-rw-r--r-- | android/makevars.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/makevars.go b/android/makevars.go index 00a20f5a..b6cd571f 100644 --- a/android/makevars.go +++ b/android/makevars.go @@ -36,6 +36,7 @@ func androidMakeVarsProvider(ctx MakeVarsContext) { // Interface for other packages to use to declare make variables type MakeVarsContext interface { Config() Config + SingletonContext() SingletonContext // Verify the make variable matches the Soong version, fail the build // if it does not. If the make variable is empty, just set it. @@ -230,6 +231,10 @@ func (c *makeVarsContext) Config() Config { return c.config } +func (c *makeVarsContext) SingletonContext() SingletonContext { + return c.ctx +} + func (c *makeVarsContext) Eval(ninjaStr string) (string, error) { return c.ctx.Eval(c.pctx, ninjaStr) } |