diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2013-01-08 15:34:26 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-25 18:00:03 (GMT) |
commit | 87fa0250081cffb6e413fec7957f5ac4add6cdd1 (patch) | |
tree | c7f0b157f7cdd378cd6fae55a101223b8cfd4ba3 | |
parent | 07ef98afcd5781eaa7122bf1c02a51b3f6c17a0b (diff) | |
download | Qt-87fa0250081cffb6e413fec7957f5ac4add6cdd1.zip Qt-87fa0250081cffb6e413fec7957f5ac4add6cdd1.tar.gz Qt-87fa0250081cffb6e413fec7957f5ac4add6cdd1.tar.bz2 |
set pkg-config *_location directly to install dir
qmake tries to replace all occurrences of the install prefix with a
literal ${prefix}. of course this would mess up build paths which happen
to live under the prefix (this is untypical, but still), which would
break the sed magic in the subsequent install step. as qmake itself has
no use for the .pc files, it's ok to target them directly for the
install dir. we do the same with the include and lib dirs already.
qt5 is already doing the right thing.
Task-number: QTBUG-28807
Change-Id: I82c17284d1dbac4a96845db2ddec9680e251e7a5
Reviewed-by: Davide Pesavento <davidepesa@gmail.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
-rw-r--r-- | src/qbase.pri | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/qbase.pri b/src/qbase.pri index 991c888..feec9d6 100644 --- a/src/qbase.pri +++ b/src/qbase.pri @@ -166,23 +166,25 @@ DEFINES *= QT_USE_QSTRINGBUILDER TARGET = $$qtLibraryTarget($$TARGET$$QT_LIBINFIX) #do this towards the end -qtPrepareTool(QMAKE_LUPDATE, lupdate) -qtPrepareTool(QMAKE_LRELEASE, lrelease) - +QMAKE_MOC_PC = $$[QT_INSTALL_BINS]/moc moc_dir.name = moc_location -moc_dir.variable = QMAKE_MOC +moc_dir.variable = QMAKE_MOC_PC +QMAKE_UIC_PC = $$[QT_INSTALL_BINS]/uic uic_dir.name = uic_location -uic_dir.variable = QMAKE_UIC +uic_dir.variable = QMAKE_UIC_PC +QMAKE_RCC_PC = $$[QT_INSTALL_BINS]/rcc rcc_dir.name = rcc_location -rcc_dir.variable = QMAKE_RCC +rcc_dir.variable = QMAKE_RCC_PC +QMAKE_LUPDATE_PC = $$[QT_INSTALL_BINS]/lupdate lupdate_dir.name = lupdate_location -lupdate_dir.variable = QMAKE_LUPDATE +lupdate_dir.variable = QMAKE_LUPDATE_PC +QMAKE_LRELEASE_PC = $$[QT_INSTALL_BINS]/lrelease lrelease_dir.name = lrelease_location -lrelease_dir.variable = QMAKE_LRELEASE +lrelease_dir.variable = QMAKE_LRELEASE_PC QMAKE_PKGCONFIG_VARIABLES += moc_dir uic_dir rcc_dir lupdate_dir lrelease_dir |