diff options
Diffstat (limited to 'build/qmake/mkspecs/features/gyp_generator.prf')
-rw-r--r-- | build/qmake/mkspecs/features/gyp_generator.prf | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build/qmake/mkspecs/features/gyp_generator.prf b/build/qmake/mkspecs/features/gyp_generator.prf index 9df87c4ec..02de2ecc7 100644 --- a/build/qmake/mkspecs/features/gyp_generator.prf +++ b/build/qmake/mkspecs/features/gyp_generator.prf @@ -104,6 +104,13 @@ GYP_CONTENTS += " 'sources': [" for (sourcefile, SOURCES): GYP_CONTENTS += " '$$sourcefile'," for (headerfile, HEADERS): GYP_CONTENTS += " '$$headerfile'," +# Add Sources generated by rcc from qrc files. +for (resourcefile, RESOURCES) { + RCC_CPP = $$replace(resourcefile, .qrc, .cpp) + RCC_CPP = $$join(RCC_CPP, "qrc_", qrc_) + GYP_CONTENTS += " '$$RCC_DIR/$$RCC_CPP'," +} + # Add moc output files to compile that aren't included at the end of any other source MOC_OUT_PATH = $$absolute_path($$MOC_DIR, $$OUT_PWD)$${QMAKE_DIR_SEP} for (mocable_header, MOCABLE_HEADERS) { |