mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
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:
parent
e6498670fb
commit
1bf589ad1e
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user