bigbiff | 6e0ca7d | 2021-02-06 19:15:16 -0500 | [diff] [blame] | 1 | package twrp |
2 | |||||
3 | import ( | ||||
4 | "android/soong/android" | ||||
5 | ) | ||||
6 | |||||
7 | func getMakeVars(ctx android.BaseContext, mVar string) string { | ||||
nebrassy | f7ec29b | 2023-09-18 13:23:21 +0200 | [diff] [blame] | 8 | makeVars := ctx.Config().VendorConfig("twrpVarsPlugin") |
bigbiff | 6e0ca7d | 2021-02-06 19:15:16 -0500 | [diff] [blame] | 9 | var makeVar = "" |
10 | if makeVars.IsSet(mVar) { | ||||
11 | makeVar = makeVars.String(mVar) | ||||
12 | } | ||||
13 | return makeVar | ||||
14 | } |