diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2009-04-17 14:06:06 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2009-04-17 14:06:06 (GMT) |
commit | f15b8a83e2e51955776a3f07cb85ebfc342dd8ef (patch) | |
tree | c5dc684986051654898db11ce73e03b9fec8db99 /mkspecs/features/resources.prf | |
download | Qt-f15b8a83e2e51955776a3f07cb85ebfc342dd8ef.zip Qt-f15b8a83e2e51955776a3f07cb85ebfc342dd8ef.tar.gz Qt-f15b8a83e2e51955776a3f07cb85ebfc342dd8ef.tar.bz2 |
Initial import of statemachine branch from the old kinetic repository
Diffstat (limited to 'mkspecs/features/resources.prf')
-rw-r--r-- | mkspecs/features/resources.prf | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mkspecs/features/resources.prf b/mkspecs/features/resources.prf new file mode 100644 index 0000000..8ccd576 --- /dev/null +++ b/mkspecs/features/resources.prf @@ -0,0 +1,31 @@ +isEmpty(QMAKE_RCC) { + win32:QMAKE_RCC = $$[QT_INSTALL_BINS]\rcc.exe + else:QMAKE_RCC = $$[QT_INSTALL_BINS]/rcc +} + +isEmpty(RCC_DIR):RCC_DIR = . +isEmpty(QMAKE_RESOURCE_PREFIX):QMAKE_RESOURCE_PREFIX = /tmp/ +isEmpty(QMAKE_MOD_RCC):QMAKE_MOD_RCC = qrc + +resource_combine { + rcc.CONFIG += combine + rcc.output = $$RCC_DIR/$${first(QMAKE_MOD_RCC)}_combined$${first(QMAKE_EXT_CPP)} +} else { + rcc.output = $$RCC_DIR/$${first(QMAKE_MOD_RCC)}_${QMAKE_FILE_BASE}$${first(QMAKE_EXT_CPP)} +} +!contains(QMAKE_RESOURCE_FLAGS, -root):!isEmpty(QMAKE_RESOURCE_ROOT):QMAKE_RESOURCE_FLAGS += -root $$QMAKE_RESOURCE_ROOT +!contains(QMAKE_RESOURCE_FLAGS, -name) { + resource_combine { + isEmpty(QMAKE_RESOURCE_NAME):!isEmpty(TARGET):QMAKE_RESOURCE_NAME = $$TARGET + !isEmpty(QMAKE_RESOURCE_NAME):QMAKE_RESOURCE_FLAGS += -name $$QMAKE_RESOURCE_NAME + } else { + QMAKE_RESOURCE_FLAGS += -name ${QMAKE_FILE_BASE} + } +} +rcc.commands = "$$QMAKE_RCC" $$QMAKE_RESOURCE_FLAGS "${QMAKE_FILE_IN}" -o "${QMAKE_FILE_OUT}" +rcc.depend_command = "$$QMAKE_RCC" -list $$QMAKE_RESOURCE_FLAGS "${QMAKE_FILE_IN}" +rcc.input = RESOURCES +rcc.variable_out = SOURCES +rcc.name = RCC ${QMAKE_FILE_IN} +silent:rcc.commands = @echo rcc "${QMAKE_FILE_IN}" && $$rcc.commands +QMAKE_EXTRA_COMPILERS += rcc |