Read ApexMkInfo for modules to be installed.
This piggybacks onto the ApexInfo cquery handler, so we're issuing a single bazel query call that reads two providers in the starlark expr. Also rename requiredDeps to makeModulesToInstall to differentiate it from APEX's required/provided libs in the apex manifest. Test: unit test Test: mkdiff Fixes: 263123189 Change-Id: Ib7e43f1586f29864eee8627dba3631bfaff27afa
This commit is contained in:
@@ -309,7 +309,7 @@ func (a *apexBundle) writeRequiredModules(w io.Writer, moduleNames []string) {
|
||||
targetRequired = append(targetRequired, fi.targetRequiredModuleNames...)
|
||||
hostRequired = append(hostRequired, fi.hostRequiredModuleNames...)
|
||||
}
|
||||
android.AndroidMkEmitAssignList(w, "LOCAL_REQUIRED_MODULES", moduleNames, a.requiredDeps, required)
|
||||
android.AndroidMkEmitAssignList(w, "LOCAL_REQUIRED_MODULES", moduleNames, a.makeModulesToInstall, required)
|
||||
android.AndroidMkEmitAssignList(w, "LOCAL_TARGET_REQUIRED_MODULES", targetRequired)
|
||||
android.AndroidMkEmitAssignList(w, "LOCAL_HOST_REQUIRED_MODULES", hostRequired)
|
||||
}
|
||||
|
Reference in New Issue
Block a user