author | Eckhart Koeppen <eckhart.koppen@nokia.com> |
Thu, 22 Apr 2010 16:15:11 +0300 | |
branch | RCL_3 |
changeset 14 | 8c4229025c0b |
parent 7 | 3f74d0d4af4c |
permissions | -rw-r--r-- |
0 | 1 |
contains(DEFINES, QT_MAKEDLL)|contains(DEFINES, QT_DLL) { |
2 |
CONFIG *= epocallowdlldata |
|
3 |
} |
|
4 |
||
7
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
5 |
CONFIG += qtmain |
0 | 6 |
|
7 |
load(qt) |
|
8 |
||
9 |
# Allow .pro files to specify include path(s) to be prepended to the list. |
|
10 |
# |
|
11 |
# This allows the project to override the default ordering, whereby paths |
|
12 |
# relative to $$QMAKE_INCDIR_QT always come first. This ordering can cause |
|
13 |
# problems when both the epoc32/include tree and a Qt include directory |
|
14 |
# contain a header of the same name - in this case, the Qt header is always |
|
15 |
# included by virtue of its path appearing first in the SYSTEMINCLUDE |
|
16 |
# directives in the generated MMP file. |
|
17 |
# |
|
18 |
# To work around this situation, the following line can be added to the .pro |
|
19 |
# file: |
|
20 |
# PREPEND_INCLUDEPATH = /epoc32/include |
|
21 |
# |
|
22 |
INCLUDEPATH = $$PREPEND_INCLUDEPATH $$INCLUDEPATH |
|
23 |
||
24 |
# Add dependency to Qt package to all other projects besides Qt libs. |
|
7
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
25 |
# Note: Qt libs package with full capabilities has UID3 of 0x2001E61C, |
0 | 26 |
# while self-signed version typically has temporary UID3 of 0xE001E61C. |
7
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
27 |
contains(CONFIG, qt):!contains(TARGET.UID3, 0x2001E61C):!contains(TARGET.UID3, 0xE001E61C):isEmpty(QT_LIBINFIX) { |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
28 |
pkg_depends_qt += \ |
0 | 29 |
"; Default dependency to Qt libraries" \ |
30 |
"(0x2001E61C), $${QT_MAJOR_VERSION}, $${QT_MINOR_VERSION}, $${QT_PATCH_VERSION}, {\"Qt\"}" |
|
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
31 |
|
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
32 |
# Projects linking to webkit need dependency to webkit |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
33 |
contains(QT, webkit): { |
7
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
34 |
pkg_depends_webkit += \ |
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
35 |
"; Dependency to Qt Webkit" \ |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
36 |
"(0x200267C2), $${QT_MAJOR_VERSION}, $${QT_MINOR_VERSION}, $${QT_PATCH_VERSION}, {\"QtWebKit\"}" |
7
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
37 |
} else { |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
38 |
default_deployment.pkg_prerules -= pkg_depends_webkit |
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
39 |
} |
7
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
40 |
} else { |
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
41 |
default_deployment.pkg_prerules -= pkg_depends_webkit pkg_depends_qt |
0 | 42 |
} |
43 |
||
44 |
isEmpty(TARGET.EPOCSTACKSIZE):TARGET.EPOCSTACKSIZE = 0x14000 |
|
45 |
isEmpty(TARGET.EPOCHEAPSIZE):TARGET.EPOCHEAPSIZE = 0x020000 0x800000 |
|
46 |
||
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
47 |
INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE |
0 | 48 |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
49 |
#QTP: add userinclude |
7
3f74d0d4af4c
qt:70947f0f93d948bc89b3b43d00da758a51f1ef84
Eckhart Koeppen <eckhart.koppen@nokia.com>
parents:
5
diff
changeset
|
50 |
MMP_RULES+="USERINCLUDE ." |