qt-defs.mk: Add -D_QT_MAJOR_ preprocessor define

This commit is contained in:
Jan Lindemann 2010-12-17 16:06:08 +00:00 committed by Jan Lindemann
commit ef5b14b322

View file

@ -4,6 +4,7 @@ USE_X = true
CPPFLAGS += -DQT_THREAD_SUPPORT CPPFLAGS += -DQT_THREAD_SUPPORT
QT_VERSION ?= $(shell rpm -q --queryformat='%{VERSION}' --whatprovides qt) QT_VERSION ?= $(shell rpm -q --queryformat='%{VERSION}' --whatprovides qt)
QT_MAJOR_VERSION ?= $(shell echo $(QT_VERSION) | cut -d\. -f1) QT_MAJOR_VERSION ?= $(shell echo $(QT_VERSION) | cut -d\. -f1)
CPPFLAGS += -D_QT_MAJOR_=$(QT_MAJOR_VERSION)
ifeq ($(QT_MAJOR_VERSION),2) ifeq ($(QT_MAJOR_VERSION),2)
QT_PREFIX ?= /usr/lib/qt2 QT_PREFIX ?= /usr/lib/qt2