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 8 | 3f74d0d4af4c |
permissions | -rw-r--r-- |
0 | 1 |
# |
2 |
# ============================================================================== |
|
3 |
# Name : platform_paths.prf |
|
4 |
# Part of : |
|
5 |
# Interface : Platform Path Definitions API for Qt/S60 |
|
6 |
# Description : Predefined include paths to be used in the pro-files for the |
|
7 |
# components in the layered model. There is one definition for |
|
8 |
# each layer. The pro-file should use the statement that is |
|
9 |
# intended for the same layer as where the pro-file resides. |
|
10 |
# |
|
11 |
# Usage examples: |
|
12 |
# |
|
13 |
# Note: this file gets automatically added to all Qt/S60 projects |
|
14 |
# |
|
15 |
# Variable usages to add the system include paths |
|
16 |
# |
|
17 |
# The include paths has to be related to the layer in which your SW |
|
18 |
# resides. Thus as an example: a component residing in middleware |
|
19 |
# layer should use the MW specific macro. |
|
20 |
# |
|
21 |
# INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE |
|
22 |
# INCLUDEPATH += $$MW_LAYER_SYSTEMINCLUDE |
|
23 |
# INCLUDEPATH += $$OS_LAYER_SYSTEMINCLUDE |
|
24 |
# |
|
25 |
# If there is a need to include public headers of some S60 component, |
|
26 |
# various *_EXPORT_PATH macros can be utilized: |
|
27 |
# |
|
28 |
# INCLUDEPATH += $$OS_LAYER_PUBLIC_EXPORT_PATH(somecomponent) |
|
29 |
# |
|
30 |
# Variables related to using various parts of stdapis: |
|
31 |
# |
|
32 |
# To use STLLIB you need to have this in your pro-file: |
|
33 |
# |
|
34 |
# QMAKE_CXXFLAGS.CW *= $$STLLIB_USAGE_CW_FLAGS |
|
35 |
# DEFINES *= $$STLLIB_USAGE_DEFINES |
|
36 |
# |
|
37 |
# Depending on what module you are using from stdapis you need to have |
|
38 |
# one or more of the following variables in your pro-file. |
|
39 |
# |
|
40 |
# INCLUDEPATH += $$OS_LAYER_LIBC_SYSTEMINCLUDE |
|
41 |
# INCLUDEPATH += $$OS_LAYER_GLIB_SYSTEMINCLUDE |
|
42 |
# INCLUDEPATH += $$OS_LAYER_SSL_SYSTEMINCLUDE |
|
43 |
# INCLUDEPATH += $$OS_LAYER_STDCPP_SYSTEMINCLUDE |
|
44 |
# INCLUDEPATH += $$OS_LAYER_BOOST_SYSTEMINCLUDE |
|
45 |
# INCLUDEPATH += $$OS_LAYER_DBUS_SYSTEMINCLUDE |
|
46 |
# INCLUDEPATH += $$OS_LAYER_LIBUTILITY_SYSTEMINCLUDE |
|
47 |
# |
|
48 |
# |
|
49 |
# |
|
50 |
# |
|
51 |
# ============================================================================== |
|
52 |
||
53 |
exists($${EPOCROOT}epoc32/include/platform_paths.prf) { |
|
54 |
||
55 |
# Load platform specific paths |
|
56 |
load($${EPOCROOT}epoc32/include/platform_paths.prf) |
|
57 |
||
58 |
} else { |
|
59 |
||
60 |
# No platform specific paths provided, use default paths |
|
61 |
||
62 |
# --------------------------------------- |
|
63 |
# Location, where the applications layer specific public headers are exported |
|
64 |
# --------------------------------------- |
|
65 |
||
66 |
defineReplace(APP_LAYER_SDK_EXPORT_PATH) { |
|
67 |
return (/epoc32/include/app/$$1) |
|
68 |
} |
|
69 |
defineReplace(APP_LAYER_PUBLIC_EXPORT_PATH) { |
|
70 |
return (/epoc32/include/app/$$1) |
|
71 |
} |
|
72 |
||
73 |
# --------------------------------------- |
|
74 |
# Location, where the applications layer specific platform headers are exported |
|
75 |
# --------------------------------------- |
|
76 |
||
77 |
defineReplace(APP_LAYER_DOMAIN_EXPORT_PATH) { |
|
78 |
return (/epoc32/include/platform/app/$$1) |
|
79 |
} |
|
80 |
defineReplace(APP_LAYER_PLATFORM_EXPORT_PATH) { |
|
81 |
return (/epoc32/include/platform/app/$$1) |
|
82 |
} |
|
83 |
||
84 |
# --------------------------------------- |
|
85 |
# Location, where the middleware layer specific public headers are exported |
|
86 |
# --------------------------------------- |
|
87 |
||
88 |
defineReplace(MW_LAYER_SDK_EXPORT_PATH) { |
|
89 |
return (/epoc32/include/mw/$$1) |
|
90 |
} |
|
91 |
defineReplace(MW_LAYER_PUBLIC_EXPORT_PATH) { |
|
92 |
return (/epoc32/include/mw/$$1) |
|
93 |
} |
|
94 |
||
95 |
# --------------------------------------- |
|
96 |
# Location, where the middleware layer specific platform headers are exported |
|
97 |
# --------------------------------------- |
|
98 |
||
99 |
defineReplace(MW_LAYER_DOMAIN_EXPORT_PATH) { |
|
100 |
return (/epoc32/include/platform/mw/$$1) |
|
101 |
} |
|
102 |
defineReplace(MW_LAYER_PLATFORM_EXPORT_PATH) { |
|
103 |
return (/epoc32/include/platform/mw/$$1) |
|
104 |
} |
|
105 |
||
106 |
# --------------------------------------- |
|
107 |
# Location, where the os layer specific public headers are exported |
|
108 |
# --------------------------------------- |
|
109 |
||
110 |
defineReplace(OSEXT_LAYER_SDK_EXPORT_PATH) { |
|
111 |
return (/epoc32/include/$$1) |
|
112 |
} |
|
113 |
# WARNING: If the following path changes see the exists() function around line 219 |
|
114 |
defineReplace(OS_LAYER_PUBLIC_EXPORT_PATH) { |
|
115 |
return (/epoc32/include/$$1) |
|
116 |
} |
|
117 |
||
118 |
# --------------------------------------- |
|
119 |
# Location, where the os specific platform headers are exported |
|
120 |
# --------------------------------------- |
|
121 |
||
122 |
defineReplace(OSEXT_LAYER_DOMAIN_EXPORT_PATH) { |
|
123 |
return (/epoc32/include/platform/$$1) |
|
124 |
} |
|
125 |
defineReplace(OS_LAYER_PLATFORM_EXPORT_PATH) { |
|
126 |
return (/epoc32/include/platform/$$1) |
|
127 |
} |
|
128 |
||
129 |
# --------------------------------------- |
|
130 |
# General comments about the 3 define statements related to include paths: |
|
131 |
# 1) the /epoc32/include/oem is now defined there for backward compability. |
|
132 |
# Once the directory is empty, the directory will be removed. However this |
|
133 |
# enables us to ensure that if you use these define statements => you do |
|
134 |
# not have to remove the statements later on, when the directory no longer |
|
135 |
# exists. |
|
136 |
# 2) These statements should be enough in normal cases. For certain specific |
|
137 |
# cases you might need to add some specific directory from /epoc32/include |
|
138 |
# (for instance /epoc32/include/ecom). |
|
139 |
# In normal cases the include staments in code should be relative to one of |
|
140 |
# the system include paths, but in certain cases, the included files requires |
|
141 |
# that the subdirectory is also part of the system include paths. |
|
142 |
# --------------------------------------- |
|
143 |
||
144 |
# This variable defines the include paths, which are intended to be |
|
145 |
# used in the pro-files that are part of the applications-layer. It includes all |
|
146 |
# the needed directories from the /epoc32/include, that are valid ones for the |
|
147 |
# application-layer components. |
|
148 |
# |
|
149 |
# Applications layer is the last one in the list, since most likely the most of |
|
150 |
# the headers come from middleware or os-layer => thus they are first. |
|
151 |
||
152 |
APP_LAYER_SYSTEMINCLUDE = \ |
|
153 |
/epoc32/include \ |
|
154 |
/epoc32/include/mw \ |
|
155 |
/epoc32/include/platform/mw \ |
|
156 |
/epoc32/include/platform \ |
|
157 |
/epoc32/include/app \ |
|
158 |
/epoc32/include/platform/app \ |
|
159 |
/epoc32/include/platform/loc \ |
|
160 |
/epoc32/include/platform/mw/loc \ |
|
161 |
/epoc32/include/platform/app/loc \ |
|
162 |
/epoc32/include/platform/loc/sc \ |
|
163 |
/epoc32/include/platform/mw/loc/sc \ |
|
164 |
/epoc32/include/platform/app/loc/sc |
|
165 |
||
166 |
# This define statements defines the include paths, which are intended to be |
|
167 |
# used in the pro-files that are part of the middleware-layer. It includes all |
|
168 |
# the needed directories from the /epoc32/include, that are valid ones for the |
|
169 |
# middleware-layer components. |
|
170 |
||
171 |
MW_LAYER_SYSTEMINCLUDE = \ |
|
172 |
/epoc32/include \ |
|
173 |
/epoc32/include/mw \ |
|
174 |
/epoc32/include/platform/mw \ |
|
175 |
/epoc32/include/platform \ |
|
176 |
/epoc32/include/platform/loc \ |
|
177 |
/epoc32/include/platform/mw/loc \ |
|
178 |
/epoc32/include/platform/loc/sc \ |
|
179 |
/epoc32/include/platform/mw/loc/sc |
|
180 |
||
181 |
# This define statements defines the include paths, which are intended to be |
|
182 |
# used in the pro-files that are part of the osextensions-layer. It includes all |
|
183 |
# the needed directories from the /epoc32/include, that are valid ones for the |
|
184 |
# os-layer components. |
|
185 |
||
186 |
OS_LAYER_SYSTEMINCLUDE = \ |
|
187 |
/epoc32/include \ |
|
188 |
/epoc32/include/platform \ |
|
189 |
/epoc32/include/platform/loc \ |
|
190 |
/epoc32/include/platform/loc/sc |
|
191 |
||
192 |
# This define statements defines the include paths, which are intended to be |
|
193 |
# used in the pro-files that are part of the os-layer. This is intended |
|
194 |
# to be only used by those components which need to use in their mmp-file either |
|
195 |
# kern_ext.mmh or nkern_ext.mmh. Reason is that those |
|
196 |
# 2 files already contain the /epoc32/include as system include path. |
|
197 |
||
198 |
OS_LAYER_KERNEL_SYSTEMINCLUDE = \ |
|
199 |
/epoc32/include/platform |
|
200 |
||
201 |
||
202 |
# --------------------------------------- |
|
203 |
# Definitions that also define the systeminclude paths for various |
|
204 |
# part of stdapis. Append to INCLUDEPATH in pro-file. |
|
205 |
# --------------------------------------- |
|
206 |
||
207 |
OS_LAYER_LIBC_SYSTEMINCLUDE = $$OS_LAYER_PUBLIC_EXPORT_PATH(stdapis) \ |
|
208 |
$$OS_LAYER_PUBLIC_EXPORT_PATH(stdapis/sys) |
|
209 |
||
210 |
OS_LAYER_GLIB_SYSTEMINCLUDE = $$OS_LAYER_PUBLIC_EXPORT_PATH(stdapis/glib-2.0) \ |
|
211 |
$$OS_LAYER_PUBLIC_EXPORT_PATH(stdapis/glib-2.0/glib) \ |
|
212 |
$$OS_LAYER_PUBLIC_EXPORT_PATH(stdapis/glib-2.0/gObject) |
|
213 |
||
214 |
OS_LAYER_SSL_SYSTEMINCLUDE = $$OS_LAYER_PUBLIC_EXPORT_PATH(stdapis/openssl) |
|
215 |
||
216 |
# stlportv5 is preferred over stlport as it has the throwing version of operator new |
|
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
217 |
exists($${EPOCROOT}epoc32/include/stdapis/stlport) \ |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
218 |
:!exists($${EPOCROOT}epoc32/include/stdapis/stlportv5) { |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
219 |
OS_LAYER_STDCPP_SYSTEMINCLUDE = $$OS_LAYER_PUBLIC_EXPORT_PATH(stdapis/stlport) |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
220 |
} else { |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
221 |
OS_LAYER_STDCPP_SYSTEMINCLUDE = $$OS_LAYER_PUBLIC_EXPORT_PATH(stdapis/stlportv5) |
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
222 |
} |
0 | 223 |
|
224 |
OS_LAYER_BOOST_SYSTEMINCLUDE = $$OS_LAYER_PUBLIC_EXPORT_PATH(stdapis/boost) |
|
225 |
||
226 |
OS_LAYER_DBUS_SYSTEMINCLUDE = $$OS_LAYER_PUBLIC_EXPORT_PATH(stdapis/dbus-1.0) \ |
|
227 |
$$OS_LAYER_PUBLIC_EXPORT_PATH(stdapis/dbus-1.0/dbus) |
|
228 |
||
229 |
OS_LAYER_LIBUTILITY_SYSTEMINCLUDE = $$OS_LAYER_PLATFORM_EXPORT_PATH(stdapis/utility) |
|
230 |
||
231 |
# --------------------------------------- |
|
232 |
# Definitions to export IBY files to different folders where they will be taken |
|
233 |
# to ROM image |
|
234 |
# --------------------------------------- |
|
235 |
||
236 |
defineReplace(CORE_APP_LAYER_IBY_EXPORT_PATH) { |
|
237 |
return(/epoc32/rom/include/core/app/$$1) |
|
238 |
} |
|
239 |
defineReplace(CORE_MW_LAYER_IBY_EXPORT_PATH) { |
|
240 |
return(/epoc32/rom/include/core/mw/$$1) |
|
241 |
} |
|
242 |
defineReplace(CORE_OSEXT_LAYER_IBY_EXPORT_PATH) { |
|
243 |
return(/epoc32/rom/include/core/os/$$1) |
|
244 |
} |
|
245 |
defineReplace(CORE_OS_LAYER_IBY_EXPORT_PATH) { |
|
246 |
return(/epoc32/rom/include/core/os/$$1) |
|
247 |
} |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
248 |
defineReplace(CORE_TOOLS_LAYER_IBY_EXPORT_PATH) { |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
249 |
return(/epoc32/rom/include/core/tools/$$1) |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
250 |
} |
0 | 251 |
defineReplace(CORE_ADAPT_LAYER_IBY_EXPORT_PATH) { |
252 |
return(/epoc32/rom/include/$$1) |
|
253 |
} |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
254 |
defineReplace(CUSTOMER_VARIANT_APP_LAYER_IBY_EXPORT_PATH) { |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
255 |
return(/epoc32/rom/include/customervariant/app/$$1) |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
256 |
} |
0 | 257 |
|
258 |
# You need to define the following in pro-file, if you are using the stllib: |
|
259 |
# QMAKE_CXXFLAGS.CW *= $$STLLIB_USAGE_CW_FLAGS |
|
260 |
# DEFINES *= $$STLLIB_USAGE_DEFINES |
|
261 |
STLLIB_USAGE_CW_FLAGS = "-wchar_t on" |
|
262 |
STLLIB_USAGE_DEFINES = _WCHAR_T_DECLARED |
|
4
3b1da2848fc7
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
3
diff
changeset
|
263 |
} |