mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Merge pull request #1738 from gtalusan/master
determine qmake path similar to uic/moc
This commit is contained in:
commit
b6f0921554
1 changed files with 5 additions and 2 deletions
|
@ -289,6 +289,7 @@ ifneq ($(SKIPQT),1)
|
||||||
QTLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs Qt5Core Qt5Widgets 2>/dev/null)
|
QTLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs Qt5Core Qt5Widgets 2>/dev/null)
|
||||||
MOC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=host_bins Qt5Core)/moc
|
MOC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=host_bins Qt5Core)/moc
|
||||||
UIC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=host_bins Qt5Core)/uic
|
UIC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=host_bins Qt5Core)/uic
|
||||||
|
QMAKE = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=host_bins Qt5Core)/qmake
|
||||||
ifneq ($(QTLDLIBS),)
|
ifneq ($(QTLDLIBS),)
|
||||||
QT5_FOUND = 1
|
QT5_FOUND = 1
|
||||||
else
|
else
|
||||||
|
@ -297,6 +298,7 @@ ifneq ($(SKIPQT),1)
|
||||||
QTLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs QtCore QtGui 2>/dev/null)
|
QTLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs QtCore QtGui 2>/dev/null)
|
||||||
MOC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=moc_location QtCore)
|
MOC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=moc_location QtCore)
|
||||||
UIC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=uic_location QtCore)
|
UIC = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=uic_location QtCore)
|
||||||
|
QMAKE = $(shell $(PKG_CONFIG_ENV) pkg-config --variable=exec_prefix QtCore)/bin/qmake
|
||||||
endif
|
endif
|
||||||
ifeq ($(QTLDLIBS),)
|
ifeq ($(QTLDLIBS),)
|
||||||
# if both pkg-config commands failed, search in common places
|
# if both pkg-config commands failed, search in common places
|
||||||
|
@ -313,6 +315,7 @@ ifneq ($(SKIPQT),1)
|
||||||
endif
|
endif
|
||||||
MOC = $(QTDIR)/bin/moc
|
MOC = $(QTDIR)/bin/moc
|
||||||
UIC = $(QTDIR)/bin/uic
|
UIC = $(QTDIR)/bin/uic
|
||||||
|
QMAKE = $(QTDIR)/bin/qmake
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifneq ($(QTLDLIBS),)
|
ifneq ($(QTLDLIBS),)
|
||||||
|
@ -437,9 +440,9 @@ ifeq ($(SKIPQT),1)
|
||||||
else
|
else
|
||||||
ifeq ($(QT_FOUND),1)
|
ifeq ($(QT_FOUND),1)
|
||||||
ifeq ($(QT5_FOUND),1)
|
ifeq ($(QT5_FOUND),1)
|
||||||
$(info GUI support: QT5 found, enabled ($(shell QT_SELECT=5 qmake -v 2>/dev/null|grep -o 'Qt version.*')))
|
$(info GUI support: QT5 found, enabled ($(shell QT_SELECT=5 $(QMAKE) -v 2>/dev/null|grep -o 'Qt version.*')))
|
||||||
else
|
else
|
||||||
$(info GUI support: QT4 found, enabled ($(shell QT_SELECT=4 qmake -v 2>/dev/null|grep -o 'Qt version.*')))
|
$(info GUI support: QT4 found, enabled ($(shell QT_SELECT=4 $(QMAKE) -v 2>/dev/null|grep -o 'Qt version.*')))
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
$(info GUI support: QT not found, disabled)
|
$(info GUI support: QT not found, disabled)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue