0
|
1 |
isEmpty(QMAKE_RCC) {
|
|
2 |
win32:QMAKE_RCC = $$[QT_INSTALL_BINS]\rcc.exe
|
|
3 |
else:QMAKE_RCC = $$[QT_INSTALL_BINS]/rcc
|
|
4 |
}
|
|
5 |
|
|
6 |
isEmpty(RCC_DIR):RCC_DIR = .
|
|
7 |
isEmpty(QMAKE_RESOURCE_PREFIX):QMAKE_RESOURCE_PREFIX = /tmp/
|
|
8 |
isEmpty(QMAKE_MOD_RCC):QMAKE_MOD_RCC = qrc
|
|
9 |
|
|
10 |
resource_combine {
|
|
11 |
rcc.CONFIG += combine
|
|
12 |
rcc.output = $$RCC_DIR/$${first(QMAKE_MOD_RCC)}_combined$${first(QMAKE_EXT_CPP)}
|
|
13 |
} else {
|
|
14 |
rcc.output = $$RCC_DIR/$${first(QMAKE_MOD_RCC)}_${QMAKE_FILE_BASE}$${first(QMAKE_EXT_CPP)}
|
|
15 |
}
|
|
16 |
!contains(QMAKE_RESOURCE_FLAGS, -root):!isEmpty(QMAKE_RESOURCE_ROOT):QMAKE_RESOURCE_FLAGS += -root $$QMAKE_RESOURCE_ROOT
|
|
17 |
!contains(QMAKE_RESOURCE_FLAGS, -name) {
|
|
18 |
resource_combine {
|
|
19 |
isEmpty(QMAKE_RESOURCE_NAME):!isEmpty(TARGET):QMAKE_RESOURCE_NAME = $$TARGET
|
|
20 |
!isEmpty(QMAKE_RESOURCE_NAME):QMAKE_RESOURCE_FLAGS += -name $$QMAKE_RESOURCE_NAME
|
|
21 |
} else {
|
|
22 |
QMAKE_RESOURCE_FLAGS += -name ${QMAKE_FILE_BASE}
|
|
23 |
}
|
|
24 |
}
|
|
25 |
rcc.commands = "$$QMAKE_RCC" $$QMAKE_RESOURCE_FLAGS "${QMAKE_FILE_IN}" -o "${QMAKE_FILE_OUT}"
|
|
26 |
rcc.depend_command = "$$QMAKE_RCC" -list $$QMAKE_RESOURCE_FLAGS "${QMAKE_FILE_IN}"
|
|
27 |
rcc.input = RESOURCES
|
|
28 |
rcc.variable_out = SOURCES
|
|
29 |
rcc.name = RCC ${QMAKE_FILE_IN}
|
|
30 |
silent:rcc.commands = @echo rcc "${QMAKE_FILE_IN}" && $$rcc.commands
|
|
31 |
QMAKE_EXTRA_COMPILERS += rcc
|