diff options
author | axis <qt-info@nokia.com> | 2009-10-30 10:30:34 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-10-30 10:30:34 (GMT) |
commit | 351ba8b9ca4f0db176c9e3553d105be0ef35c844 (patch) | |
tree | 00989fb9776bb96554a12a46626bcb62f3adb8e5 /mkspecs/symbian | |
parent | 6475ca960a3d04eb591338801073db4d2a38b715 (diff) | |
download | Qt-351ba8b9ca4f0db176c9e3553d105be0ef35c844.zip Qt-351ba8b9ca4f0db176c9e3553d105be0ef35c844.tar.gz Qt-351ba8b9ca4f0db176c9e3553d105be0ef35c844.tar.bz2 |
Added generation of Symbian resource files.
They are specified in the SYMBIAN_RESOURCES variable.
Diffstat (limited to 'mkspecs/symbian')
-rw-r--r-- | mkspecs/symbian/linux-armcc/features/default_post.prf | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mkspecs/symbian/linux-armcc/features/default_post.prf b/mkspecs/symbian/linux-armcc/features/default_post.prf index c2b2c10..c570eba 100644 --- a/mkspecs/symbian/linux-armcc/features/default_post.prf +++ b/mkspecs/symbian/linux-armcc/features/default_post.prf @@ -45,3 +45,34 @@ contains(TEMPLATE, app) { QMAKE_LIBS += -leexe.lib\\(uc_exe_.o\\) } + +# Symbian resource files + +linux-armcc:symbian_resources_INCLUDES = -I$$(RVCT22INC) +symbian_resources_INCLUDES = $$replace(symbian_resources_INCLUDES, ",", " -I") +symbian_resources_INCLUDES += $$join(INCLUDEPATH, " -I", "-I") +symbian_resources_DEFINES = $$join(DEFINES, " -D", "-D") +symbian_resources_RCC_DIR = $$replace(RCC_DIR, "/$", "") + +for(symbian_resource, SYMBIAN_RESOURCES) { + symbian_resource = $$basename(symbian_resource) + symbian_resource_clean = $$replace(symbian_resource, "\.rss$", ".rsc") + QMAKE_CLEAN += $${symbian_resources_RCC_DIR}/$${symbian_resource_clean} + symbian_resource_clean = $$replace(symbian_resource, "\.rss$", ".rpp") + QMAKE_CLEAN += $${symbian_resources_RCC_DIR}/$${symbian_resource_clean} +} + +symbianresources.input = SYMBIAN_RESOURCES +symbianresources.output = $$symbian_resources_RCC_DIR/${QMAKE_FILE_BASE}.rsg +symbianresources.commands = cpp -nostdinc -undef \ + $$symbian_resources_INCLUDES \ + $$symbian_resources_DEFINES \ + ${QMAKE_FILE_NAME} \ + -o $${symbian_resources_RCC_DIR}/${QMAKE_FILE_BASE}.rpp \ + && rcomp -s$${symbian_resources_RCC_DIR}/${QMAKE_FILE_BASE}.rpp \ + -o$${symbian_resources_RCC_DIR}/${QMAKE_FILE_BASE}.rsc \ + -h$${symbian_resources_RCC_DIR}/${QMAKE_FILE_BASE}.rsg \ + -i${QMAKE_FILE_NAME} +symbianresources.CONFIG = target_predeps no_link + +QMAKE_EXTRA_COMPILERS += symbianresources |