xref: /aosp_15_r20/build/soong/android/module_proxy.go (revision 333d2b3687b3a337dbcca9d65000bca186795e39)
1*333d2b36SAndroid Build Coastguard Workerpackage android
2*333d2b36SAndroid Build Coastguard Worker
3*333d2b36SAndroid Build Coastguard Workerimport (
4*333d2b36SAndroid Build Coastguard Worker	"github.com/google/blueprint"
5*333d2b36SAndroid Build Coastguard Worker	"github.com/google/blueprint/proptools"
6*333d2b36SAndroid Build Coastguard Worker)
7*333d2b36SAndroid Build Coastguard Worker
8*333d2b36SAndroid Build Coastguard Workertype ModuleProxy struct {
9*333d2b36SAndroid Build Coastguard Worker	module blueprint.ModuleProxy
10*333d2b36SAndroid Build Coastguard Worker}
11*333d2b36SAndroid Build Coastguard Worker
12*333d2b36SAndroid Build Coastguard Workervar _ Module = (*ModuleProxy)(nil)
13*333d2b36SAndroid Build Coastguard Worker
14*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) Name() string {
15*333d2b36SAndroid Build Coastguard Worker	return m.module.Name()
16*333d2b36SAndroid Build Coastguard Worker}
17*333d2b36SAndroid Build Coastguard Worker
18*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) GenerateBuildActions(context blueprint.ModuleContext) {
19*333d2b36SAndroid Build Coastguard Worker	m.module.GenerateBuildActions(context)
20*333d2b36SAndroid Build Coastguard Worker}
21*333d2b36SAndroid Build Coastguard Worker
22*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) GenerateAndroidBuildActions(context ModuleContext) {
23*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
24*333d2b36SAndroid Build Coastguard Worker}
25*333d2b36SAndroid Build Coastguard Worker
26*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) ComponentDepsMutator(ctx BottomUpMutatorContext) {
27*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
28*333d2b36SAndroid Build Coastguard Worker}
29*333d2b36SAndroid Build Coastguard Worker
30*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) DepsMutator(context BottomUpMutatorContext) {
31*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
32*333d2b36SAndroid Build Coastguard Worker}
33*333d2b36SAndroid Build Coastguard Worker
34*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) base() *ModuleBase {
35*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
36*333d2b36SAndroid Build Coastguard Worker}
37*333d2b36SAndroid Build Coastguard Worker
38*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) Disable() {
39*333d2b36SAndroid Build Coastguard Worker
40*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
41*333d2b36SAndroid Build Coastguard Worker}
42*333d2b36SAndroid Build Coastguard Worker
43*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) Enabled(ctx ConfigurableEvaluatorContext) bool {
44*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
45*333d2b36SAndroid Build Coastguard Worker}
46*333d2b36SAndroid Build Coastguard Worker
47*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) Target() Target {
48*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
49*333d2b36SAndroid Build Coastguard Worker}
50*333d2b36SAndroid Build Coastguard Worker
51*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) MultiTargets() []Target {
52*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
53*333d2b36SAndroid Build Coastguard Worker}
54*333d2b36SAndroid Build Coastguard Worker
55*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) ImageVariation() blueprint.Variation {
56*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
57*333d2b36SAndroid Build Coastguard Worker}
58*333d2b36SAndroid Build Coastguard Worker
59*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) Owner() string {
60*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
61*333d2b36SAndroid Build Coastguard Worker}
62*333d2b36SAndroid Build Coastguard Worker
63*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallInData() bool {
64*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
65*333d2b36SAndroid Build Coastguard Worker}
66*333d2b36SAndroid Build Coastguard Worker
67*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallInTestcases() bool {
68*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
69*333d2b36SAndroid Build Coastguard Worker}
70*333d2b36SAndroid Build Coastguard Worker
71*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallInSanitizerDir() bool {
72*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
73*333d2b36SAndroid Build Coastguard Worker}
74*333d2b36SAndroid Build Coastguard Worker
75*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallInRamdisk() bool {
76*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
77*333d2b36SAndroid Build Coastguard Worker}
78*333d2b36SAndroid Build Coastguard Worker
79*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallInVendorRamdisk() bool {
80*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
81*333d2b36SAndroid Build Coastguard Worker}
82*333d2b36SAndroid Build Coastguard Worker
83*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallInDebugRamdisk() bool {
84*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
85*333d2b36SAndroid Build Coastguard Worker}
86*333d2b36SAndroid Build Coastguard Worker
87*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallInRecovery() bool {
88*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
89*333d2b36SAndroid Build Coastguard Worker}
90*333d2b36SAndroid Build Coastguard Worker
91*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallInRoot() bool {
92*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
93*333d2b36SAndroid Build Coastguard Worker}
94*333d2b36SAndroid Build Coastguard Worker
95*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallInOdm() bool {
96*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
97*333d2b36SAndroid Build Coastguard Worker}
98*333d2b36SAndroid Build Coastguard Worker
99*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallInProduct() bool {
100*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
101*333d2b36SAndroid Build Coastguard Worker}
102*333d2b36SAndroid Build Coastguard Worker
103*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallInVendor() bool {
104*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
105*333d2b36SAndroid Build Coastguard Worker}
106*333d2b36SAndroid Build Coastguard Worker
107*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallInSystemExt() bool {
108*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
109*333d2b36SAndroid Build Coastguard Worker}
110*333d2b36SAndroid Build Coastguard Worker
111*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallInSystemDlkm() bool {
112*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
113*333d2b36SAndroid Build Coastguard Worker}
114*333d2b36SAndroid Build Coastguard Worker
115*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallInVendorDlkm() bool {
116*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
117*333d2b36SAndroid Build Coastguard Worker}
118*333d2b36SAndroid Build Coastguard Worker
119*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallInOdmDlkm() bool {
120*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
121*333d2b36SAndroid Build Coastguard Worker}
122*333d2b36SAndroid Build Coastguard Worker
123*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) InstallForceOS() (*OsType, *ArchType) {
124*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
125*333d2b36SAndroid Build Coastguard Worker}
126*333d2b36SAndroid Build Coastguard Worker
127*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) PartitionTag(d DeviceConfig) string {
128*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
129*333d2b36SAndroid Build Coastguard Worker}
130*333d2b36SAndroid Build Coastguard Worker
131*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) HideFromMake() {
132*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
133*333d2b36SAndroid Build Coastguard Worker}
134*333d2b36SAndroid Build Coastguard Worker
135*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) IsHideFromMake() bool {
136*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
137*333d2b36SAndroid Build Coastguard Worker}
138*333d2b36SAndroid Build Coastguard Worker
139*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) SkipInstall() {
140*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
141*333d2b36SAndroid Build Coastguard Worker}
142*333d2b36SAndroid Build Coastguard Worker
143*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) IsSkipInstall() bool {
144*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
145*333d2b36SAndroid Build Coastguard Worker}
146*333d2b36SAndroid Build Coastguard Worker
147*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) MakeUninstallable() {
148*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
149*333d2b36SAndroid Build Coastguard Worker}
150*333d2b36SAndroid Build Coastguard Worker
151*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) ReplacedByPrebuilt() {
152*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
153*333d2b36SAndroid Build Coastguard Worker}
154*333d2b36SAndroid Build Coastguard Worker
155*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) IsReplacedByPrebuilt() bool {
156*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
157*333d2b36SAndroid Build Coastguard Worker}
158*333d2b36SAndroid Build Coastguard Worker
159*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) ExportedToMake() bool {
160*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
161*333d2b36SAndroid Build Coastguard Worker}
162*333d2b36SAndroid Build Coastguard Worker
163*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) EffectiveLicenseKinds() []string {
164*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
165*333d2b36SAndroid Build Coastguard Worker}
166*333d2b36SAndroid Build Coastguard Worker
167*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) EffectiveLicenseFiles() Paths {
168*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
169*333d2b36SAndroid Build Coastguard Worker}
170*333d2b36SAndroid Build Coastguard Worker
171*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) AddProperties(props ...interface{}) {
172*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
173*333d2b36SAndroid Build Coastguard Worker}
174*333d2b36SAndroid Build Coastguard Worker
175*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) GetProperties() []interface{} {
176*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
177*333d2b36SAndroid Build Coastguard Worker}
178*333d2b36SAndroid Build Coastguard Worker
179*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) BuildParamsForTests() []BuildParams {
180*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
181*333d2b36SAndroid Build Coastguard Worker}
182*333d2b36SAndroid Build Coastguard Worker
183*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) RuleParamsForTests() map[blueprint.Rule]blueprint.RuleParams {
184*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
185*333d2b36SAndroid Build Coastguard Worker}
186*333d2b36SAndroid Build Coastguard Worker
187*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) VariablesForTests() map[string]string {
188*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
189*333d2b36SAndroid Build Coastguard Worker}
190*333d2b36SAndroid Build Coastguard Worker
191*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) String() string {
192*333d2b36SAndroid Build Coastguard Worker	return m.module.Name()
193*333d2b36SAndroid Build Coastguard Worker}
194*333d2b36SAndroid Build Coastguard Worker
195*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) qualifiedModuleId(ctx BaseModuleContext) qualifiedModuleName {
196*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
197*333d2b36SAndroid Build Coastguard Worker}
198*333d2b36SAndroid Build Coastguard Worker
199*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) visibilityProperties() []visibilityProperty {
200*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
201*333d2b36SAndroid Build Coastguard Worker}
202*333d2b36SAndroid Build Coastguard Worker
203*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) RequiredModuleNames(ctx ConfigurableEvaluatorContext) []string {
204*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
205*333d2b36SAndroid Build Coastguard Worker}
206*333d2b36SAndroid Build Coastguard Worker
207*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) HostRequiredModuleNames() []string {
208*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
209*333d2b36SAndroid Build Coastguard Worker}
210*333d2b36SAndroid Build Coastguard Worker
211*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) TargetRequiredModuleNames() []string {
212*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
213*333d2b36SAndroid Build Coastguard Worker}
214*333d2b36SAndroid Build Coastguard Worker
215*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) VintfFragmentModuleNames(ctx ConfigurableEvaluatorContext) []string {
216*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
217*333d2b36SAndroid Build Coastguard Worker}
218*333d2b36SAndroid Build Coastguard Worker
219*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) ConfigurableEvaluator(ctx ConfigurableEvaluatorContext) proptools.ConfigurableEvaluator {
220*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
221*333d2b36SAndroid Build Coastguard Worker}
222*333d2b36SAndroid Build Coastguard Worker
223*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) DecodeMultilib(ctx ConfigContext) (string, string) {
224*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
225*333d2b36SAndroid Build Coastguard Worker}
226*333d2b36SAndroid Build Coastguard Worker
227*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) Overrides() []string {
228*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
229*333d2b36SAndroid Build Coastguard Worker}
230*333d2b36SAndroid Build Coastguard Worker
231*333d2b36SAndroid Build Coastguard Workerfunc (m ModuleProxy) VintfFragments(ctx ConfigurableEvaluatorContext) []string {
232*333d2b36SAndroid Build Coastguard Worker	panic("method is not implemented on ModuleProxy")
233*333d2b36SAndroid Build Coastguard Worker}
234