generate Qt resources for lib/images/*. Unused so far.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20719 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2007-10-03 21:56:32 +00:00
parent e6498670fb
commit 1bf589ad1e

View File

@ -6,7 +6,7 @@ CLEANFILES += $(MOCEDFILES)
BUILT_SOURCES = $(UIFILES:%.ui=ui_%.h)
BUILT_SOURCES += $(MOCEDFILES)
######################### Translation #############################
######################### Qt stuff #############################
# Use _() for localization instead of tr() or trUtf8()
UIC4FLAGS=-tr lyx::qt_
@ -18,6 +18,17 @@ MOCEDFILES = $(MOCHEADER:%.h=%_moc.cpp)
%_moc.cpp: %.h
$(MOC4) -o $@ $<
Resources.qrc: Makefile
echo "<!DOCTYPE RCC><RCC version='1.0'><qresource>" > $@
find $(top_srcdir)/lib/images -name '*.png' \
| sed -e 's:$(top_srcdir)/lib/\(.*\):<file alias="\1">&</file>:' \
>> $@
echo "</qresource></RCC>" >> $@
Resources.cpp: Resources.qrc
rcc $< -o $@
######################### LIBRARIES #############################
noinst_LTLIBRARIES = liblyxqt4.la
@ -35,6 +46,7 @@ AM_CPPFLAGS += \
-I$(top_srcdir)/src/frontends/controllers
SOURCEFILES = \
Resources.cpp \
Action.cpp \
alert_pimpl.cpp \
BulletsModule.cpp \