0
|
1 |
load(data_caging_paths)
|
|
2 |
|
|
3 |
# If no_icon keyword exist, the S60 UI app is just made hidden. This because S60 app FW
|
|
4 |
# requires the registration resource file to exist always
|
|
5 |
contains( CONFIG, no_icon ) {
|
|
6 |
symbian:RSS_RULES ="hidden = KAppIsHidden;"
|
|
7 |
CONFIG -= no_icon
|
|
8 |
} else {
|
|
9 |
# There is no point in compiling the MIF icon if no_icon CONFIGS is set
|
|
10 |
!isEmpty(ICON) {
|
|
11 |
|
|
12 |
!count(ICON, $$size(TRANSLATIONS)):!count(ICON, 1) {
|
|
13 |
message("ICON keyword must have one or the same amout of items as in TRANSLATIONS keyword")
|
|
14 |
}
|
|
15 |
|
|
16 |
# MIF files will have UID in their names, if TARGET.UID3 is not set, remind the user
|
|
17 |
isEmpty(TARGET.UID3):error("TARGET.UID3 must be explicitly defined for ICON generation")
|
|
18 |
|
|
19 |
# Note: symbian-sbsv2 builds can't utilize extra compiler for mifconv, so ICON handling is done in code
|
|
20 |
symbian-abld {
|
|
21 |
#Makefile: requires paths with backslash
|
|
22 |
ICON = $$replace( ICON, /, \\)
|
|
23 |
|
|
24 |
# Extra compiler rules for mifconv
|
|
25 |
mifconv.output = ${ZDIR}$$APP_RESOURCE_DIR/$${TARGET.UID3}.mif
|
|
26 |
# Based on: http://www.forum.nokia.com/document/Cpp_Developers_Library
|
|
27 |
# svg-t icons should always use /c32 depth
|
|
28 |
mifconv.commands = mifconv ${QMAKE_FILE_OUT} $$join(ICON, " /c32 ", "/c32 ",)
|
|
29 |
mifconv.input = ICON
|
|
30 |
mifconv.CONFIG = no_link combine
|
|
31 |
# target_predeps together with combine seems not to work correctly, lets define it by ourselves
|
|
32 |
PRE_TARGETDEPS += $$mifconv.output
|
|
33 |
QMAKE_EXTRA_COMPILERS += mifconv
|
|
34 |
}
|
|
35 |
# Rules to use generated MIF file from symbian resources
|
|
36 |
RSS_RULES.number_of_icons = $$size(ICON)
|
|
37 |
RSS_RULES.icon_file = $$replace( APP_RESOURCE_DIR, /, \\\\ )\\\\$${TARGET.UID3}.mif
|
|
38 |
}
|
|
39 |
}
|
|
40 |
|