From 18e5155ba59f6abf74ce1ea952299df9d0a41d84 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 14 May 2013 15:23:40 -0600 Subject: Get the name of moc,uic,rcc from the .pc files in Qt 4 Just in case some crazy distributions also rename the binaries. Renaming the binaries is not supported in Qt 5 and should never be done. Besides, the binary names are missing from Qt 5.0. Signed-off-by: Thiago Macieira Signed-off-by: Dirk Hohndel --- Configure.mk | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Configure.mk') diff --git a/Configure.mk b/Configure.mk index f8bd33ed4..a08a5541f 100644 --- a/Configure.mk +++ b/Configure.mk @@ -86,10 +86,16 @@ ifeq ($(QT_VERSION_MAJOR), 5) QT_MODULES = Qt5Widgets Qt5Svg QT_CORE = Qt5Core QTBINDIR = $(shell $(QMAKE) -query QT_HOST_BINS) + # Tool paths are not stored in .pc files in Qt 5.0 + MOC = $(QTBINDIR)/moc + UIC = $(QTBINDIR)/uic + RCC = $(QTBINDIR)/rcc else QT_MODULES = QtGui QtSvg QT_CORE = QtCore - QTBINDIR = $(shell $(QMAKE) -query QT_INSTALL_BINS) + MOC = $(shell $(PKGCONFIG) --variable=moc_location QtCore) + UIC = $(shell $(PKGCONFIG) --variable=uic_location QtGui) + RCC = $(shell $(PKGCONFIG) --variable=rcc_location QtGui) endif # we need GLIB2CFLAGS for gettext @@ -98,9 +104,6 @@ LIBQT = $(shell $(PKGCONFIG) --libs $(QT_MODULES)) ifneq ($(filter reduce_relocations, $(shell $(PKGCONFIG) --variable qt_config $(QT_CORE))), ) QTCXXFLAGS += -fPIE endif -MOC = $(QTBINDIR)/moc -UIC = $(QTBINDIR)/uic -RCC = $(QTBINDIR)/rcc LIBGTK = $(shell $(PKGCONFIG) --libs gtk+-2.0 glib-2.0) ifneq (,$(filter $(UNAME),linux kfreebsd gnu)) -- cgit v1.2.3-70-g09d2