mirror of
http://code.qt.io/yocto/meta-qt6.git
synced 2026-01-01 13:58:07 +00:00
qmake: patch prl and pri files
Replace host paths with qmake built-in properties
This commit is contained in:
parent
3dedf1586e
commit
6b57024c9a
|
|
@ -26,3 +26,10 @@ EXTRA_OECMAKE += "\
|
|||
-DINSTALL_TRANSLATIONSDIR:PATH=${@os.path.relpath(d.getVar('QT6_INSTALL_TRANSLATIONSDIR'), d.getVar('prefix') + '/')} \
|
||||
-DINSTALL_MKSPECSDIR:PATH=${@os.path.relpath(d.getVar('QT6_INSTALL_MKSPECSDIR'), d.getVar('prefix') + '/')} \
|
||||
"
|
||||
|
||||
do_install_append() {
|
||||
# Replace host paths with qmake built-in properties QTBUG-84725
|
||||
find ${D} \( -name "*.pri" -or -name "*.prl" \) -exec \
|
||||
sed -i -e 's|${STAGING_DIR_NATIVE}|$$[QT_HOST_PREFIX/get]|g' \
|
||||
-e 's|${STAGING_DIR_HOST}|$$[QT_SYSROOT]|g' {} \;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user