mkspecs/common/symbian/symbian.conf
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 22 79de32ba3296
equal deleted inserted replaced
18:2f34d5167611 19:fcece45ef507
    24 QMAKE_CFLAGS_WARN_OFF	=
    24 QMAKE_CFLAGS_WARN_OFF	=
    25 QMAKE_CFLAGS_RELEASE	=
    25 QMAKE_CFLAGS_RELEASE	=
    26 QMAKE_CFLAGS_DEBUG	=
    26 QMAKE_CFLAGS_DEBUG	=
    27 QMAKE_CFLAGS_YACC	= -Wno-unused -Wno-parentheses
    27 QMAKE_CFLAGS_YACC	= -Wno-unused -Wno-parentheses
    28 
    28 
       
    29 
       
    30 VERSION_FLAGS.ARMCC = ARMCC_4_0
    29 QMAKE_CXX		= g++
    31 QMAKE_CXX		= g++
    30 QMAKE_CXXFLAGS		= $$QMAKE_CFLAGS
    32 QMAKE_CXXFLAGS		= $$QMAKE_CFLAGS
    31 QMAKE_CXXFLAGS.CW	= 
    33 QMAKE_CXXFLAGS.CW	= 
    32 QMAKE_CXXFLAGS.ARMCC	= --visibility_inlines_hidden
    34 QMAKE_CXXFLAGS.ARMCC      = --visibility_inlines_hidden
       
    35 QMAKE_CXXFLAGS.ARMCC_4_0  = --import_all_vtbl
    33 QMAKE_CXXFLAGS.GCCE	= -fvisibility-inlines-hidden
    36 QMAKE_CXXFLAGS.GCCE	= -fvisibility-inlines-hidden
    34 QMAKE_CXXFLAGS_DEPS	= $$QMAKE_CFLAGS_DEPS
    37 QMAKE_CXXFLAGS_DEPS	= $$QMAKE_CFLAGS_DEPS
    35 QMAKE_CXXFLAGS_WARN_ON	= $$QMAKE_CFLAGS_WARN_ON
    38 QMAKE_CXXFLAGS_WARN_ON	= $$QMAKE_CFLAGS_WARN_ON
    36 QMAKE_CXXFLAGS_WARN_OFF	= $$QMAKE_CFLAGS_WARN_OFF
    39 QMAKE_CXXFLAGS_WARN_OFF	= $$QMAKE_CFLAGS_WARN_OFF
    37 QMAKE_CXXFLAGS_RELEASE	= $$QMAKE_CFLAGS_RELEASE
    40 QMAKE_CXXFLAGS_RELEASE	= $$QMAKE_CFLAGS_RELEASE
   109 QMAKE_STRIP		= $${EPOCROOT}epoc32/gcc_mingw/bin/strip
   112 QMAKE_STRIP		= $${EPOCROOT}epoc32/gcc_mingw/bin/strip
   110 QMAKE_STRIPFLAGS_LIB 	+= --strip-unneeded
   113 QMAKE_STRIPFLAGS_LIB 	+= --strip-unneeded
   111 
   114 
   112 load(qt_config)
   115 load(qt_config)
   113 load(platform_paths)
   116 load(platform_paths)
       
   117 load(add_mmp_rules)
   114 
   118 
   115 symbian-abld {
   119 symbian-abld {
   116 # Versions of abld prior to Symbian^3 have a bug where you cannot remove something from the command line without replacing it
   120 # Versions of abld prior to Symbian^3 have a bug where you cannot remove something from the command line without replacing it
   117 # Rather than figure out which version of abld we're using, we'll replace the command with a macro *that should never be used*
   121 # Rather than figure out which version of abld we're using, we'll replace the command with a macro *that should never be used*
   118     MMP_RULES_DONT_EXPORT_ALL_CLASS_IMPEDIMENTA = "OPTION_REPLACE ARMCC --export_all_vtbl -D__QT_NOEFFECTMACRO_DONOTUSE"
   122     MMP_RULES_DONT_EXPORT_ALL_CLASS_IMPEDIMENTA = "OPTION_REPLACE ARMCC --export_all_vtbl -D__QT_NOEFFECTMACRO_DONOTUSE"
   121 }
   125 }
   122 MMP_RULES += PAGED BYTEPAIRCOMPRESSTARGET
   126 MMP_RULES += PAGED BYTEPAIRCOMPRESSTARGET
   123 MMP_RULES += $$MMP_RULES_DONT_EXPORT_ALL_CLASS_IMPEDIMENTA
   127 MMP_RULES += $$MMP_RULES_DONT_EXPORT_ALL_CLASS_IMPEDIMENTA
   124 SYMBIAN_PLATFORMS = WINSCW GCCE ARMV5 ARMV6
   128 SYMBIAN_PLATFORMS = WINSCW GCCE ARMV5 ARMV6
   125 
   129 
   126 # Legacy support requires some hardcoded stdapis paths. 
       
   127 INCLUDEPATH = \
   130 INCLUDEPATH = \
   128     $$[QT_INSTALL_PREFIX]/mkspecs/common/symbian/stl-off \
   131     $$[QT_INSTALL_PREFIX]/mkspecs/common/symbian/stl-off \
   129     $$[QT_INSTALL_PREFIX]/mkspecs/common/symbian \
   132     $$[QT_INSTALL_PREFIX]/mkspecs/common/symbian \
   130     $${EPOCROOT}epoc32/include \
   133     $${EPOCROOT}epoc32/include \
   131     $$OS_LAYER_LIBC_SYSTEMINCLUDE \
   134     $$OS_LAYER_LIBC_SYSTEMINCLUDE \
   132     $$INCLUDEPATH
   135     $$INCLUDEPATH
   133     
   136 
       
   137 # Ensure '.' directory is the first in include path.
       
   138 # RVCT seems to do this automatically, but WINSCW compiler does not, so add it here.
       
   139 MMP_RULES += "USERINCLUDE ."
       
   140 
       
   141 # pkg_depends_webkit, pkg_depends_core, and pkg_platform_dependencies can be removed by developer
       
   142 # if multiple languages need to be supported by pkg file. In that case the developer should declare
       
   143 # multiple language compatible dependency statements him/herself.
       
   144 
       
   145 default_deployment.pkg_prerules += pkg_depends_webkit pkg_depends_qt pkg_platform_dependencies
       
   146 
   134 # Supports S60 3.0, 3.1, 3.2 and 5.0 by default
   147 # Supports S60 3.0, 3.1, 3.2 and 5.0 by default
   135 default_deployment.pkg_prerules = \
   148 pkg_platform_dependencies = \
   136     "; Default HW/platform dependencies" \
   149     "; Default HW/platform dependencies" \
   137     "[0x101F7961],0,0,0,{\"S60ProductID\"}" \
   150     "[0x101F7961],0,0,0,{\"S60ProductID\"}" \
   138     "[0x102032BE],0,0,0,{\"S60ProductID\"}" \
   151     "[0x102032BE],0,0,0,{\"S60ProductID\"}" \
   139     "[0x102752AE],0,0,0,{\"S60ProductID\"}" \
   152     "[0x102752AE],0,0,0,{\"S60ProductID\"}" \
   140     "[0x1028315F],0,0,0,{\"S60ProductID\"}" \
   153     "[0x1028315F],0,0,0,{\"S60ProductID\"}" \
   166             QMAKE_CXXFLAGS.ARMCC += $${QMAKE_CXXFLAGS_FAST_VFP.ARMCC}
   179             QMAKE_CXXFLAGS.ARMCC += $${QMAKE_CXXFLAGS_FAST_VFP.ARMCC}
   167             # [TODO] QMAKE_CXXFLAGS.GCCE += $${QMAKE_CXXFLAGS_FAST_VFP.GCCE}
   180             # [TODO] QMAKE_CXXFLAGS.GCCE += $${QMAKE_CXXFLAGS_FAST_VFP.GCCE}
   168         }
   181         }
   169     }
   182     }
   170 }
   183 }
       
   184