]> git.lyx.org Git - features.git/commitdiff
generate Qt resources for lib/images/*. Unused so far.
authorAndré Pönitz <poenitz@gmx.net>
Wed, 3 Oct 2007 21:56:32 +0000 (21:56 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Wed, 3 Oct 2007 21:56:32 +0000 (21:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20719 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/Makefile.am

index 263aec25390535e8b8f986b60d27e18b981703b2..887845096e7b8f880cc6fdfeb7ac750286cf20ed 100644 (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 \