summaryrefslogtreecommitdiffstats
path: root/Configure.mk
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-05-14 15:23:40 -0600
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-16 12:26:23 -0700
commit18e5155ba59f6abf74ce1ea952299df9d0a41d84 (patch)
treec9abc181408e35c7ec073bb47de3350c1770b98b /Configure.mk
parent2ba236e288ace9c2c925e0e1bc1a97f9e3c59b46 (diff)
downloadsubsurface-18e5155ba59f6abf74ce1ea952299df9d0a41d84.tar.gz
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 <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Configure.mk')
-rw-r--r--Configure.mk11
1 files changed, 7 insertions, 4 deletions
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))