mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
qt-defs.mk, qt-rules.mk: Several fixes and additions to qt-rules.mk and qt-defs.mk
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
da94999b83
commit
6e1a9b1f22
2 changed files with 9 additions and 5 deletions
|
|
@ -86,6 +86,8 @@ QT_MODULES = \
|
|||
Qt5Svg \
|
||||
Qt5Test \
|
||||
Qt5UiTools \
|
||||
Qt5WebEngine \
|
||||
Qt5WebEngineWidgets \
|
||||
Qt5WebKit \
|
||||
Qt5WebKitWidgets \
|
||||
Qt5Widgets \
|
||||
|
|
@ -119,9 +121,9 @@ QT_MODULES = \
|
|||
endif
|
||||
|
||||
QT_BIN_PREFIX ?= $(shell pkg-config --variable=host_bins $(QT_MODULES))
|
||||
MOC ?= $(QT_BIN_PREFIX)/bin/moc
|
||||
UIC ?= $(QT_BIN_PREFIX)/bin/uic
|
||||
RCC ?= $(QT_BIN_PREFIX)/bin/rcc
|
||||
MOC ?= $(QT_BIN_PREFIX)/moc
|
||||
UIC ?= $(QT_BIN_PREFIX)/uic
|
||||
RCC ?= $(QT_BIN_PREFIX)/rcc
|
||||
LPPFLAGS += $(QT_LDFLAGS) $(shell pkg-config --libs $(QT_MODULES))
|
||||
INCLUDE += $(QT_LDFLAGS) $(shell pkg-config --cflags $(QT_MODULES))
|
||||
CPPFLAGS += -D_QT_MAJOR_=$(QT_MAJOR_VERSION)
|
||||
|
|
@ -132,11 +134,11 @@ UIFILES += $(wildcard *.ui)
|
|||
RCCFILES += $(wildcard *.qrc)
|
||||
|
||||
ifneq ($(wildcard *.h),)
|
||||
MOC_H_HC += $(shell grep -H Q_OBJECT $(wildcard *.h) | cut -d: -f1 | sort -u)
|
||||
MOC_H_HC += $(shell grep -l Q_OBJECT $(wildcard *.h))
|
||||
endif
|
||||
MOC_H_UI += $(patsubst %.ui,ui_%.h,$(UIFILES))
|
||||
MOC_H += $(sort $(MOC_H_HC) $(MOC_H_UI))
|
||||
MOC_CPP += $(patsubst %.h,moc_%.cpp,$(MOC_H_HC))
|
||||
MOC_CPP += $(patsubst %.h,moc_%.cpp,$(notdir $(MOC_H_HC)))
|
||||
# $(patsubst %.ui,moc_%.cpp,$(UIFILES)) \
|
||||
RCC_CPP += $(patsubst %.qrc,rcc_%.cpp, $(RCCFILES))
|
||||
ifeq ($(QT_MAJOR_VERSION),4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue