kwin: cmake cleanup of host-path Qt6Plugin targets (incomplete)
- Delete QmlPlugins dirs and stub PluginTargets files - Blocked: Qt6Plugin cmake files reference host paths from QT_HOST_PATH - Needs qtbase recipe cmake config regeneration for cross-build sysroot
This commit is contained in:
@@ -60,6 +60,13 @@ sed -i '/include(ECMQmlModule)/s/^/#/' "${COOKBOOK_SOURCE}/CMakeLists.txt" 2>/de
|
||||
rm -f CMakeCache.txt
|
||||
rm -rf CMakeFiles
|
||||
|
||||
# Qt cmake plugin targets reference host paths (not available in cross-build sysroot)
|
||||
find "${COOKBOOK_SYSROOT}" -type d -name "QmlPlugins" -exec rm -rf {} + 2>/dev/null || true
|
||||
# Stub out Qt6Plugin cmake files that reference host paths
|
||||
for f in $(find "${COOKBOOK_SYSROOT}" -name "*PluginTargets.cmake" -o -name "*PluginTargets-*.cmake" -o -name "*PluginTargetsPrecheck.cmake" -o -name "*PluginAdditionalTargetInfo.cmake" 2>/dev/null); do
|
||||
echo "# stub" > "$f"
|
||||
done
|
||||
|
||||
cmake "${COOKBOOK_SOURCE}" \
|
||||
-DCMAKE_TOOLCHAIN_FILE="${COOKBOOK_ROOT}/local/recipes/qt/redox-toolchain.cmake" \
|
||||
-DQT_HOST_PATH="${HOST_BUILD}" \
|
||||
|
||||
Reference in New Issue
Block a user