source: components/VCLSkin.v4.04.For.D7/Compilers.inc

Last change on this file was 1, checked in by maron, 16 years ago

3.1 verze, první revize

File size: 8.3 KB
Line 
1{.$define demo}
2//----------------------------------------------------------------------------------------------------------------------
3// Include file to determine which compiler is currently being used to build the project/component.
4// This file uses ideas from Brad Stowers DFS.inc file (www.delphifreestuff.com).
5//
6// Portions created by Mike Lischke are Copyright
7// (C) 1999-2002 Dipl. Ing. Mike Lischke. All Rights Reserved.
8//----------------------------------------------------------------------------------------------------------------------
9// The following symbols are defined:
10//
11// COMPILER_1 : Kylix/Delphi/BCB 1.x is the compiler.
12// COMPILER_1_UP : Kylix/Delphi/BCB 1.x or higher is the compiler.
13// COMPILER_2 : Kylix/Delphi 2.x or BCB 1.x is the compiler.
14// COMPILER_2_UP : Kylix/Delphi 2.x or higher, or BCB 1.x or higher is the compiler.
15// COMPILER_3 : Kylix/Delphi/BCB 3.x is the compiler.
16// COMPILER_3_UP : Kylix/Delphi/BCB 3.x or higher is the compiler.
17// COMPILER_4 : Kylix/Delphi/BCB 4.x is the compiler.
18// COMPILER_4_UP : Kylix/Delphi/BCB 4.x or higher is the compiler.
19// COMPILER_5 : Kylix/Delphi/BCB 5.x is the compiler.
20// COMPILER_5_UP : Kylix/Delphi/BCB 5.x or higher is the compiler.
21// COMPILER_6 : Kylix/Delphi/BCB 6.x is the compiler.
22// COMPILER_6_UP : Kylix/Delphi/BCB 6.x or higher is the compiler.
23// COMPILER_7 : Kylix/Delphi/BCB 7.x is the compiler.
24// COMPILER_7_UP : Kylix/Delphi/BCB 7.x or higher is the compiler.
25//
26// Only defined if Windows is the target:
27// CPPB : Any version of BCB is being used.
28// CPPB_1 : BCB v1.x is being used.
29// CPPB_3 : BCB v3.x is being used.
30// CPPB_3_UP : BCB v3.x or higher is being used.
31// CPPB_4 : BCB v4.x is being used.
32// CPPB_4_UP : BCB v4.x or higher is being used.
33// CPPB_5 : BCB v5.x is being used.
34// CPPB_5_UP : BCB v5.x or higher is being used.
35// CPPB_6 : BCB v6.x is being used.
36// CPPB_6_UP : BCB v6.x or higher is being used.
37//
38// Only defined if Windows is the target:
39// DELPHI : Any version of Delphi is being used.
40// DELPHI_1 : Delphi v1.x is being used.
41// DELPHI_2 : Delphi v2.x is being used.
42// DELPHI_2_UP : Delphi v2.x or higher is being used.
43// DELPHI_3 : Delphi v3.x is being used.
44// DELPHI_3_UP : Delphi v3.x or higher is being used.
45// DELPHI_4 : Delphi v4.x is being used.
46// DELPHI_4_UP : Delphi v4.x or higher is being used.
47// DELPHI_5 : Delphi v5.x is being used.
48// DELPHI_5_UP : Delphi v5.x or higher is being used.
49// DELPHI_6 : Delphi v6.x is being used.
50// DELPHI_6_UP : Delphi v6.x or higher is being used.
51// DELPHI_7 : Delphi v7.x is being used.
52// DELPHI_7_UP : Delphi v7.x or higher is being used.
53//
54// Only defined if Linux is the target:
55// KYLIX : Any version of Kylix is being used.
56// KYLIX_1 : Kylix 1.x is being used.
57// KYLIX_1_UP : Kylix 1.x or higher is being used.
58// KYLIX_2 : Kylix 2.x is being used.
59// KYLIX_2_UP : Kylix 2.x or higher is being used.
60// KYLIX_3 : Kylix 3.x is being used.
61// KYLIX_3_UP : Kylix 3.x or higher is being used.
62//
63// Only defined if Linux is the target:
64// QT_CLX : Trolltech's QT library is being used.
65//----------------------------------------------------------------------------------------------------------------------
66
67{$ifdef Win32}
68 {$IFDEF VER180} // Delphi 9
69 {$define COMPILER_10}
70 {$define DELPHI}
71 {$define DELPHI_10}
72 {$endif}
73 {$IFDEF VER170} // Delphi 9
74 {$define COMPILER_9}
75 {$define DELPHI}
76 {$define DELPHI_9}
77 {$endif}
78
79 {$ifdef VER150}
80 {$define COMPILER_7}
81 {$define DELPHI}
82 {$define DELPHI_7}
83 {$endif}
84
85 {$ifdef VER140}
86 {$define COMPILER_6}
87 {$ifdef BCB}
88 {$define CPPB}
89 {$define CPPB_6}
90 {$else}
91 {$define DELPHI}
92 {$define DELPHI_6}
93 {$endif}
94 {$endif}
95
96 {$ifdef VER130}
97 {$define COMPILER_5}
98 {$ifdef BCB}
99 {$define CPPB}
100 {$define CPPB_5}
101 {$else}
102 {$define DELPHI}
103 {$define DELPHI_5}
104 {$endif}
105 {$endif}
106
107 {$ifdef VER125}
108 {$define COMPILER_4}
109 {$define CPPB}
110 {$define CPPB_4}
111 {$endif}
112
113 {$ifdef VER120}
114 {$define COMPILER_4}
115 {$define DELPHI}
116 {$define DELPHI_4}
117 {$endif}
118
119 {$ifdef VER110}
120 {$define COMPILER_3}
121 {$define CPPB}
122 {$define CPPB_3}
123 {$endif}
124
125 {$ifdef VER100}
126 {$define COMPILER_3}
127 {$define DELPHI}
128 {$define DELPHI_3}
129 {$endif}
130
131 {$ifdef VER93}
132 {$define COMPILER_2} // BCB v1 compiler is really v2
133 {$define CPPB}
134 {$define CPPB_1}
135 {$endif}
136
137 {$ifdef VER90}
138 {$define COMPILER_2}
139 {$define DELPHI}
140 {$define DELPHI_2}
141 {$endif}
142
143 {$ifdef VER80}
144 {$define COMPILER_1}
145 {$define DELPHI}
146 {$define DELPHI_1}
147 {$endif}
148
149{$else (not Windows)}
150 // Linux is the target
151 {$define QT_CLX}
152
153 {$ifdef VER150}
154 {$define COMPILER_7}
155 {$ifdef BCB}
156 please tell milan_va@seznam.cz it works, then delete this line
157 {$define KYLIXC}
158 {$define KYLIXC_2}
159 {$else}
160 {$define KYLIX}
161 {$define KYLIX_2}
162 {$endif}
163 {$endif}
164
165 {$ifdef VER140}
166 {$define COMPILER_6}
167 {$ifdef BCB}
168 please tell milan_va@seznam.cz it works, then delete this line
169 {$define KYLIXC}
170 {$define KYLIXC_1}
171 {$else}
172 {$define KYLIX}
173 {$define KYLIX_1}
174 {$endif}
175 {$endif}
176
177{$endif (Win32)}
178
179{$ifdef COMPILER_1}
180 {$define COMPILER_1_UP}
181{$endif}
182
183{$ifdef COMPILER_2}
184 {$define COMPILER_1_UP}
185 {$define COMPILER_2_UP}
186{$endif}
187
188{$ifdef COMPILER_3}
189 {$define COMPILER_1_UP}
190 {$define COMPILER_2_UP}
191 {$define COMPILER_3_UP}
192{$endif}
193
194{$ifdef COMPILER_4}
195 {$define COMPILER_1_UP}
196 {$define COMPILER_2_UP}
197 {$define COMPILER_3_UP}
198 {$define COMPILER_4_UP}
199{$endif}
200
201{$ifdef COMPILER_5}
202 {$define COMPILER_1_UP}
203 {$define COMPILER_2_UP}
204 {$define COMPILER_3_UP}
205 {$define COMPILER_4_UP}
206 {$define COMPILER_5_UP}
207{$endif}
208
209{$ifdef COMPILER_6}
210 {$define COMPILER_1_UP}
211 {$define COMPILER_2_UP}
212 {$define COMPILER_3_UP}
213 {$define COMPILER_4_UP}
214 {$define COMPILER_5_UP}
215 {$define COMPILER_6_UP}
216{$endif}
217
218{$ifdef COMPILER_7}
219 {$define COMPILER_1_UP}
220 {$define COMPILER_2_UP}
221 {$define COMPILER_3_UP}
222 {$define COMPILER_4_UP}
223 {$define COMPILER_5_UP}
224 {$define COMPILER_6_UP}
225 {$define COMPILER_7_UP}
226{$endif}
227
228{$ifdef DELPHI_2}
229 {$define DELPHI_2_UP}
230{$endif}
231
232{$ifdef DELPHI_3}
233 {$define DELPHI_2_UP}
234 {$define DELPHI_3_UP}
235{$endif}
236
237{$ifdef DELPHI_4}
238 {$define DELPHI_2_UP}
239 {$define DELPHI_3_UP}
240 {$define DELPHI_4_UP}
241{$endif}
242
243{$ifdef DELPHI_5}
244 {$define DELPHI_2_UP}
245 {$define DELPHI_3_UP}
246 {$define DELPHI_4_UP}
247 {$define DELPHI_5_UP}
248{$endif}
249
250{$ifdef DELPHI_6}
251 {$define DELPHI_2_UP}
252 {$define DELPHI_3_UP}
253 {$define DELPHI_4_UP}
254 {$define DELPHI_5_UP}
255 {$define DELPHI_6_UP}
256{$endif}
257
258{$ifdef DELPHI_7}
259 {$define DELPHI_2_UP}
260 {$define DELPHI_3_UP}
261 {$define DELPHI_4_UP}
262 {$define DELPHI_5_UP}
263 {$define DELPHI_6_UP}
264 {$define DELPHI_7_UP}
265{$endif}
266
267{$ifdef DELPHI_9}
268 {$define DELPHI_2_UP}
269 {$define DELPHI_3_UP}
270 {$define DELPHI_4_UP}
271 {$define DELPHI_5_UP}
272 {$define DELPHI_6_UP}
273 {$define DELPHI_7_UP}
274{$endif}
275
276{$ifdef DELPHI_10}
277 {$define DELPHI_2_UP}
278 {$define DELPHI_3_UP}
279 {$define DELPHI_4_UP}
280 {$define DELPHI_5_UP}
281 {$define DELPHI_6_UP}
282 {$define DELPHI_7_UP}
283{$endif}
284
285{$ifdef CPPB_3}
286 {$define CPPB_3_UP}
287{$endif}
288
289{$ifdef CPPB_4}
290 {$define CPPB_3_UP}
291 {$define CPPB_4_UP}
292{$endif}
293
294{$ifdef CPPB_5}
295 {$define CPPB_3_UP}
296 {$define CPPB_4_UP}
297 {$define CPPB_5_UP}
298{$endif}
299
300{$ifdef CPPB_6}
301 {$define CPPB_3_UP}
302 {$define CPPB_4_UP}
303 {$define CPPB_5_UP}
304 {$define CPPB_6_UP}
305{$endif}
306
307{$ifdef KYLIX_1}
308 {$define KYLIX_1_UP}
309{$endif}
310
311{$ifdef KYLIX_2}
312 {$define KYLIX_1_UP}
313 {$define KYLIX_2_UP}
314{$endif}
315
316{$ifdef KYLIXC_1}
317 {$define KYLIXC_1_UP}
318{$endif}
319
320{$ifdef KYLIXC_2}
321 {$define KYLIXC_1_UP}
322 {$define KYLIXC_2_UP}
323{$endif}
324
325{$ifdef CPPB_3_UP}
326 // C++ Builder requires this if you use Delphi components in run-time packages.
327 {$ObjExportAll On}
328{$endif}
329
330//----------------------------------------------------------------------------------------------------------------------
331
Note: See TracBrowser for help on using the repository browser.