mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
qt-defs.mk: Some half-baked fix for QT_VERSION
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
89b390f9dd
commit
0b8c97a3e6
1 changed files with 5 additions and 1 deletions
|
|
@ -1,8 +1,12 @@
|
|||
ifeq ($(USE_QT),true)
|
||||
|
||||
USE_X = true
|
||||
CPPFLAGS += -DQT_THREAD_SUPPORT
|
||||
CPPFLAGS += -DQT_THREAD_SUPPORT
|
||||
ifeq ($(PKG_FORMAT),rpm)
|
||||
QT_VERSION ?= $(shell rpm -q --queryformat='%{VERSION}' --whatprovides qt)
|
||||
else
|
||||
QT_VERSION = $(shell dpkg -s libqtcore4 | sed '^CVersion:/ !d; s/Version: *//')
|
||||
endif
|
||||
QT_MAJOR_VERSION ?= $(shell echo $(QT_VERSION) | cut -d\. -f1)
|
||||
CPPFLAGS += -D_QT_MAJOR_=$(QT_MAJOR_VERSION)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue