Add android-build/libs/<ABI> to solibSearchPath

All android libs that can be loaded are placed in android-build/libs/
<abi>/.
These libs are not stripped anymore, so let's add also this folder to
solibSearchPath.

Change-Id: I34de8bf7ee68725903fd7250a39b407c6ae57cac
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
This commit is contained in:
BogDan Vatra
2022-06-23 10:26:34 +03:00
committed by hjk
parent 8bb22fa4f3
commit 0ce0ad6cf9

View File

@@ -145,6 +145,11 @@ void AndroidDebugSupport::start()
if (activeRunConfig) if (activeRunConfig)
solibSearchPath.append(activeRunConfig->buildTargetInfo().workingDirectory.toString()); solibSearchPath.append(activeRunConfig->buildTargetInfo().workingDirectory.toString());
solibSearchPath.append(buildDir.toString()); solibSearchPath.append(buildDir.toString());
const auto androidLibsPath = AndroidManager::androidBuildDirectory(target)
.pathAppended("libs")
.pathAppended(AndroidManager::apkDevicePreferredAbi(target))
.toString();
solibSearchPath.append(androidLibsPath);
solibSearchPath.removeDuplicates(); solibSearchPath.removeDuplicates();
setSolibSearchPath(solibSearchPath); setSolibSearchPath(solibSearchPath);
qCDebug(androidDebugSupportLog) << "SoLibSearchPath: "<<solibSearchPath; qCDebug(androidDebugSupportLog) << "SoLibSearchPath: "<<solibSearchPath;