mkspecs/features/symbian/application_icon.prf
changeset 37 758a864f9613
parent 33 3e2da88830cd
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
    12         !count(ICON, 1) {
    12         !count(ICON, 1) {
    13             ICON = $$first(ICON)
    13             ICON = $$first(ICON)
    14             warning("Only first icon specified in ICON variable is used: $$ICON")
    14             warning("Only first icon specified in ICON variable is used: $$ICON")
    15         }
    15         }
    16 
    16 
    17         # Try to produce indentical string to fixedTarget in SymbianMakefileGenerator, replaced chars taken
    17         baseTarget = $$symbianRemoveSpecialCharacters($$basename(TARGET))
    18         # from SymbianCommonGenerator::removeSpecialCharacters.
       
    19         #
       
    20         # Note: it is not a major problem even baseTarget is not 100% identical to fixedTarget since qmake
       
    21         # only uses filename from RSS_RULES.icon_file when referring to icon file name.
       
    22         baseTarget = $$basename(TARGET)
       
    23         baseTarget = $$replace(baseTarget, /,_)
       
    24         baseTarget = $$replace(baseTarget, \\\\,_)
       
    25         baseTarget = $$replace(baseTarget, " ",_)
       
    26         symbian-abld|symbian-sbsv2 {
       
    27             baseTarget = $$replace(baseTarget, -,_)
       
    28             baseTarget = $$replace(baseTarget, \\.,_)
       
    29             baseTarget = $$replace(baseTarget, :,_)
       
    30         }
       
    31 
    18 
    32         # Note: symbian-sbsv2 builds can't utilize extra compiler for mifconv, so ICON handling is done in code
    19         # Note: symbian-sbsv2 builds can't utilize extra compiler for mifconv, so ICON handling is done in code
    33         !symbian-sbsv2 {
    20         !symbian-sbsv2 {
    34             # Absolute path required for shadow builds.
    21             # Absolute path required for shadow builds.
    35             # However, in older Symbian environments abld toolchain can't handle even moderately long
    22             # However, in older Symbian environments abld toolchain can't handle even moderately long