author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Fri, 19 Feb 2010 23:40:16 +0200 | |
branch | RCL_3 |
changeset 4 | 3b1da2848fc7 |
parent 3 | 41300fa6a67c |
child 5 | d3bac044e0f0 |
permissions | -rw-r--r-- |
0 | 1 |
# |
2 |
# qmake configuration for symbian-* |
|
3 |
# |
|
4 |
||
5 |
TEMPLATE = app |
|
6 |
CONFIG += qt warn_on release incremental |
|
7 |
QT += core gui |
|
8 |
QMAKE_INCREMENTAL_STYLE = sublib |
|
9 |
||
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
10 |
DEFINES += UNICODE QT_KEYPAD_NAVIGATION QT_SOFTKEYS_ENABLED QT_USE_MATH_H_FLOATS |
0 | 11 |
QMAKE_COMPILER_DEFINES += SYMBIAN |
12 |
||
13 |
QMAKE_EXT_OBJ = .o |
|
14 |
QMAKE_EXT_RES = _res.o |
|
15 |
||
16 |
QMAKE_CC = gcc |
|
17 |
QMAKE_LEX = flex |
|
18 |
QMAKE_LEXFLAGS = |
|
19 |
QMAKE_YACC = byacc |
|
20 |
QMAKE_YACCFLAGS = -d |
|
21 |
QMAKE_CFLAGS = |
|
22 |
QMAKE_CFLAGS_DEPS = |
|
23 |
QMAKE_CFLAGS_WARN_ON = |
|
24 |
QMAKE_CFLAGS_WARN_OFF = |
|
25 |
QMAKE_CFLAGS_RELEASE = |
|
26 |
QMAKE_CFLAGS_DEBUG = |
|
27 |
QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses |
|
28 |
||
29 |
QMAKE_CXX = g++ |
|
30 |
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS |
|
31 |
QMAKE_CXXFLAGS.CW = |
|
32 |
QMAKE_CXXFLAGS.ARMCC = --visibility_inlines_hidden |
|
33 |
QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS |
|
34 |
QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON |
|
35 |
QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF |
|
36 |
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE |
|
37 |
QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG |
|
38 |
QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC |
|
39 |
QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD |
|
40 |
QMAKE_CXXFLAGS_RTTI_ON = |
|
41 |
QMAKE_CXXFLAGS_RTTI_OFF = |
|
42 |
QMAKE_CXXFLAGS_EXCEPTIONS_ON = |
|
43 |
QMAKE_CXXFLAGS_EXCEPTIONS_OFF = |
|
44 |
||
45 |
QMAKE_INCDIR = |
|
46 |
QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] |
|
47 |
||
48 |
QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $src |
|
49 |
QMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< |
|
50 |
QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src |
|
51 |
QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< |
|
52 |
||
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
53 |
QMAKE_LINK = |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
54 |
QMAKE_LFLAGS = |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
55 |
QMAKE_LFLAGS.ARMCC = |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
56 |
QMAKE_LFLAGS_EXCEPTIONS_ON = |
0 | 57 |
QMAKE_LFLAGS_EXCEPTIONS_OFF = |
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
58 |
QMAKE_LFLAGS_RELEASE = |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
59 |
QMAKE_LFLAGS_DEBUG = |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
60 |
QMAKE_LFLAGS_CONSOLE = |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
61 |
QMAKE_LFLAGS_WINDOWS = |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
62 |
QMAKE_LFLAGS_DLL = |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
63 |
QMAKE_LINK_OBJECT_MAX = |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
64 |
QMAKE_LINK_OBJECT_SCRIPT= |
0 | 65 |
|
66 |
QMAKE_LIBS = -llibc -llibm -leuser -llibdl -lcone -leikcore -lmediaclientaudio -leikcoctl -leiksrv -lapparc -lavkon -lefsrv -lcharconv -lws32 -lhal -lgdi -lapgrfx |
|
67 |
QMAKE_LIBS_CORE = $$QMAKE_LIBS -llibpthread -lefsrv -lcharconv |
|
68 |
QMAKE_LIBS_GUI = $$QMAKE_LIBS_CORE -lfbscli -lbitgdi -lhal -lgdi -lws32 -lapgrfx -lcone -leikcore -lmediaclientaudio -leikcoctl -leiksrv -lapparc |
|
69 |
QMAKE_LIBS_NETWORK = |
|
70 |
QMAKE_LIBS_EGL = -llibEGL |
|
71 |
QMAKE_LIBS_OPENGL = |
|
72 |
QMAKE_LIBS_OPENVG = -llibOpenVG -lgraphicsresource |
|
73 |
QMAKE_LIBS_COMPAT = |
|
74 |
QMAKE_LIBS_QT_ENTRY = -llibcrt0.lib |
|
75 |
QMAKE_LIBS_S60 = -lavkon |
|
76 |
||
77 |
!isEmpty(QMAKE_SH) { |
|
78 |
QMAKE_COPY = cp |
|
79 |
QMAKE_COPY_DIR = cp -r |
|
80 |
QMAKE_MOVE = mv |
|
81 |
QMAKE_DEL_FILE = rm -f |
|
82 |
QMAKE_MKDIR = mkdir |
|
83 |
QMAKE_DEL_DIR = rmdir |
|
84 |
QMAKE_CHK_DIR_EXISTS = test -d |
|
85 |
} else { |
|
86 |
QMAKE_COPY = copy /y |
|
87 |
QMAKE_COPY_DIR = xcopy /s /q /y /i |
|
88 |
QMAKE_MOVE = move |
|
89 |
QMAKE_DEL_FILE = del |
|
90 |
QMAKE_MKDIR = mkdir |
|
91 |
QMAKE_DEL_DIR = rmdir |
|
92 |
QMAKE_CHK_DIR_EXISTS = if not exist |
|
93 |
} |
|
94 |
||
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
95 |
QMAKE_MOC = /epoc32/tools/qt/moc.exe |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
96 |
QMAKE_UIC = /epoc32/tools/qt/uic.exe |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
97 |
QMAKE_IDC = /epoc32/tools/qt/idc.exe |
0 | 98 |
|
99 |
QMAKE_IDL = midl |
|
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
100 |
QMAKE_LIB = /epoc32/gcc_mingw/bin/ar -ru |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
101 |
QMAKE_RC = /epoc32/gcc_mingw/bin/windres |
0 | 102 |
QMAKE_ZIP = zip -r -9 |
103 |
||
104 |
QMAKE_STRIP = $${EPOCROOT}epoc32/gcc_mingw/bin/strip |
|
105 |
QMAKE_STRIPFLAGS_LIB += --strip-unneeded |
|
106 |
||
107 |
load(qt_config) |
|
108 |
load(platform_paths) |
|
109 |
||
110 |
symbian-abld { |
|
111 |
# Versions of abld prior to Symbian^3 have a bug where you cannot remove something from the command line without replacing it |
|
112 |
# Rather than figure out which version of abld we're using, we'll replace the command with a macro *that should never be used* |
|
113 |
MMP_RULES_DONT_EXPORT_ALL_CLASS_IMPEDIMENTA = "OPTION_REPLACE ARMCC --export_all_vtbl -D__QT_NOEFFECTMACRO_DONOTUSE" |
|
114 |
} else { |
|
115 |
MMP_RULES_DONT_EXPORT_ALL_CLASS_IMPEDIMENTA = "OPTION_REPLACE ARMCC --export_all_vtbl // don't use --export_all_vtbl" |
|
116 |
} |
|
117 |
MMP_RULES += PAGED |
|
118 |
MMP_RULES += $$MMP_RULES_DONT_EXPORT_ALL_CLASS_IMPEDIMENTA |
|
119 |
SYMBIAN_PLATFORMS = WINSCW GCCE ARMV5 ARMV6 |
|
120 |
||
121 |
# Legacy support requires some hardcoded stdapis paths. |
|
122 |
INCLUDEPATH = \ |
|
123 |
$$[QT_INSTALL_PREFIX]/mkspecs/common/symbian/stl-off \ |
|
124 |
$$[QT_INSTALL_PREFIX]/mkspecs/common/symbian \ |
|
125 |
$${EPOCROOT}epoc32/include \ |
|
126 |
$$OS_LAYER_LIBC_SYSTEMINCLUDE \ |
|
127 |
$$INCLUDEPATH |
|
128 |
||
129 |
# Supports S60 3.0, 3.1, 3.2 and 5.0 by default |
|
130 |
default_deployment.pkg_prerules = \ |
|
131 |
"; Default HW/platform dependencies" \ |
|
132 |
"[0x101F7961],0,0,0,{\"S60ProductID\"}" \ |
|
133 |
"[0x102032BE],0,0,0,{\"S60ProductID\"}" \ |
|
134 |
"[0x102752AE],0,0,0,{\"S60ProductID\"}" \ |
|
135 |
"[0x1028315F],0,0,0,{\"S60ProductID\"}" \ |
|
136 |
" " |
|
137 |
||
138 |
DEPLOYMENT += default_deployment |
|
139 |
||
140 |
exists($${EPOCROOT}epoc32/release/winscw/udeb/z/system/install/Series60v5.0.sis )|exists($${EPOCROOT}epoc32/data/z/system/install/Series60v5.0.sis) { |
|
141 |
S60_VERSION = 5.0 |
|
142 |
} else { |
|
143 |
exists($${EPOCROOT}epoc32/release/winscw/udeb/z/system/install/Series60v3.2.sis )|exists($${EPOCROOT}epoc32/data/z/system/install/Series60v3.2.sis) { |
|
144 |
S60_VERSION = 3.2 |
|
145 |
} else { |
|
146 |
S60_VERSION = 3.1 |
|
147 |
MMP_RULES -= PAGED |
|
148 |
} |
|
149 |
} |