mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
rules.mk: Uic works differently in qt4, funny workaround for uic_xxx.cpp
This commit is contained in:
parent
e666587396
commit
4ea362bab7
1 changed files with 9 additions and 0 deletions
|
|
@ -31,11 +31,20 @@ moc_%.cpp: %.h
|
|||
rcc_%.cpp: %.qrc
|
||||
$(RCC) -o $@ $<
|
||||
|
||||
ifeq ($(QT_VERSION),4)
|
||||
ui_%.h: %.ui
|
||||
else
|
||||
%.h: %.ui
|
||||
endif
|
||||
$(UIC) $< -o $@
|
||||
|
||||
ifeq ($(QT_VERSION),4)
|
||||
uic_%.cpp: %.h
|
||||
echo -e "#include <$<>\n" > $@
|
||||
else
|
||||
uic_%.cpp: %.h %.ui
|
||||
$(UIC) $*.ui -i $< -o $@
|
||||
endif
|
||||
|
||||
ifeq ($(LIBTYPE),shared)
|
||||
lib%.so: %.o $(LIB_SO)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue