Last change
on this file since 1036 was 846, checked in by Dmitry A. Kuminov, 14 years ago |
trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.
|
-
Property svn:eol-style
set to
native
|
File size:
1.6 KB
|
Line | |
---|
1 | CONFIG -= 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 |
|
---|
8 | QMAKE_CXXFLAGS.CW *= $$STLLIB_USAGE_CW_FLAGS
|
---|
9 |
|
---|
10 | # Path to stlport headers
|
---|
11 | INCLUDEPATH += $$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
|
---|
15 | INCLUDEPATH -= $$[QT_INSTALL_DATA]/mkspecs/common/symbian/stl-off
|
---|
16 |
|
---|
17 | # libstdcppv5 is preferred over libstdcpp as it has/uses the throwing version of operator new
|
---|
18 | # STDCPP turns on standard C++ new behaviour (ie. throwing new)
|
---|
19 | use_libstdcppv5 = true
|
---|
20 |
|
---|
21 | # Fall back to old implementation if that is the only one that is found
|
---|
22 | exists($${EPOCROOT}epoc32/release/armv5/lib/libstdcpp.dso)|exists($${EPOCROOT}epoc32/release/winscw/udeb/libstdcpp.dll) {
|
---|
23 | !exists($${EPOCROOT}epoc32/release/armv5/lib/libstdcppv5.dso):!exists($${EPOCROOT}epoc32/release/winscw/udeb/libstdcppv5.dll) {
|
---|
24 | use_libstdcppv5 = false
|
---|
25 | }
|
---|
26 | }
|
---|
27 |
|
---|
28 | equals(use_libstdcppv5, true) {
|
---|
29 | LIBS *= -llibstdcppv5.dll
|
---|
30 | symbian-abld|symbian-sbsv2 {
|
---|
31 | MMP_RULES *= "STDCPP"
|
---|
32 | } else {
|
---|
33 | DEFINES *= __SYMBIAN_STDCPP_SUPPORT__
|
---|
34 | LIBS *= -lstdnew.dll
|
---|
35 | }
|
---|
36 | } else {
|
---|
37 | LIBS *= -llibstdcpp.dll
|
---|
38 | }
|
---|
39 |
|
---|
40 | # use the runtime support for nested exceptions, if a library is available
|
---|
41 | exists($${EPOCROOT}epoc32/release/armv5/urel/usrt_nx_*.lib) {
|
---|
42 | CONFIG += nested_exceptions
|
---|
43 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.