source: trunk/mkspecs/features/symbian/stl.prf@ 827

Last change on this file since 827 was 769, checked in by Dmitry A. Kuminov, 15 years ago

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1CONFIG -= stl_off
2
3# STL usage in S60 requires the "OPTION CW -wchar_t on" mmp statement to be used.
4# This statement is added via $$STLLIB_USAGE_CW_FLAGS variable below.
5# S60 STL documentation instructs to use also "MACRO _WCHAR_T_DECLARED" statement,
6# but QtS60 will not compile if that statement is set.
7
8QMAKE_CXXFLAGS.CW *= $$STLLIB_USAGE_CW_FLAGS
9
10# Path to stlport headers
11INCLUDEPATH += $$OS_LAYER_STDCPP_SYSTEMINCLUDE
12
13# Remove mkspecs/common/symbian/stl-off from beginning of includepath
14# in order to use new and delete operators from STL
15INCLUDEPATH -= $$[QT_INSTALL_PREFIX]/mkspecs/common/symbian/stl-off
16
17# libstdcppv5 is preferred over libstdcpp as it has/uses the throwing version of operator new
18STL_LIB = -llibstdcppv5.dll
19
20# STDCPP turns on standard C++ new behaviour (ie. throwing new)
21STL_MMP_RULE = "STDCPP"
22
23# Fall back to old implementation if that is the only one that is found
24exists($${EPOCROOT}epoc32/release/armv5/urel/libstdcpp.dll)|exists($${EPOCROOT}epoc32/release/winscw/udeb/libstdcpp.dll) {
25 !exists($${EPOCROOT}epoc32/release/armv5/urel/libstdcppv5.dll):!exists($${EPOCROOT}epoc32/release/winscw/udeb/libstdcppv5.dll) {
26 STL_LIB = -llibstdcpp.dll
27 STL_MMP_RULE =
28 }
29}
30
31LIBS *= $$STL_LIB
32MMP_RULES *= $$STL_MMP_RULE
Note: See TracBrowser for help on using the repository browser.