rcc: use -name option

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21074 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2007-10-19 18:45:09 +00:00
parent a46d7ee857
commit 04ba7e1bb2
4 changed files with 4 additions and 5 deletions

View File

@ -787,7 +787,7 @@ if(QT4_QMAKE_FOUND)
set(outfile ${CMAKE_CURRENT_BINARY_DIR}/qrc_${outfilename}.cxx)
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND ${QT_RCC_EXECUTABLE}
ARGS -o ${outfile} ${infile}
ARGS -name ${outfilename} -o ${outfile} ${infile}
MAIN_DEPENDENCY ${infile} )
set(${outfiles} ${${outfiles}} ${outfile})
ENDFOREACH (it)

View File

@ -207,7 +207,7 @@ def generate(env):
env['QT4_UICDECLFLAGS'] = CLVar('')
env['QT4_MOCFROMHFLAGS'] = CLVar('')
env['QT4_MOCFROMCXXFLAGS'] = CLVar('-i')
env['QT4_QRCFLAGS'] = ''
env['QT4_QRCFLAGS'] = '-name Resources'
# suffixes/prefixes for the headers / sources to generate
env['QT4_MOCHPREFIX'] = ''

View File

@ -45,10 +45,9 @@
static void initializeResources()
{
extern void qInitResources();
static bool initialized = false;
if (!initialized) {
qInitResources();
Q_INIT_RESOURCE(Resources);
initialized = true;
}
}

View File

@ -26,7 +26,7 @@ Resources.qrc: Makefile
echo "</qresource></RCC>" >> $@
Resources.cpp: Resources.qrc
$(RCC4) $< -o $@
$(RCC4) $< -name Resources -o $@
######################### LIBRARIES #############################