1 | /****************************************************************************
|
---|
2 | ** $Id: msvc_objectmodel.h 2 2005-11-16 15:49:26Z dmik $
|
---|
3 | **
|
---|
4 | ** Definition of VCProject class.
|
---|
5 | **
|
---|
6 | ** Copyright (C) 2002-2003 Trolltech AS. All rights reserved.
|
---|
7 | **
|
---|
8 | ** This file is part of qmake.
|
---|
9 | **
|
---|
10 | ** This file may be distributed under the terms of the Q Public License
|
---|
11 | ** as defined by Trolltech AS of Norway and appearing in the file
|
---|
12 | ** LICENSE.QPL included in the packaging of this file.
|
---|
13 | **
|
---|
14 | ** This file may be distributed and/or modified under the terms of the
|
---|
15 | ** GNU General Public License version 2 as published by the Free Software
|
---|
16 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
17 | ** packaging of this file.
|
---|
18 | **
|
---|
19 | ** Licensees holding valid Qt Enterprise Edition licenses may use this
|
---|
20 | ** file in accordance with the Qt Commercial License Agreement provided
|
---|
21 | ** with the Software.
|
---|
22 | **
|
---|
23 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
---|
24 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
---|
25 | **
|
---|
26 | ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
|
---|
27 | ** information about Qt Commercial License Agreements.
|
---|
28 | ** See http://www.trolltech.com/qpl/ for QPL licensing information.
|
---|
29 | ** See http://www.trolltech.com/gpl/ for GPL licensing information.
|
---|
30 | **
|
---|
31 | ** Contact info@trolltech.com if any conditions of this licensing are
|
---|
32 | ** not clear to you.
|
---|
33 | **
|
---|
34 | **********************************************************************/
|
---|
35 |
|
---|
36 | #ifndef __MSVC_OBJECTMODEL_H__
|
---|
37 | #define __MSVC_OBJECTMODEL_H__
|
---|
38 |
|
---|
39 | #include "project.h"
|
---|
40 | #include <qstring.h>
|
---|
41 | #include <qstringlist.h>
|
---|
42 |
|
---|
43 | /*
|
---|
44 | This Object model is of course VERY simplyfied,
|
---|
45 | and does not actually follow the original MSVC
|
---|
46 | object model. However, it fulfilles the basic
|
---|
47 | needs for qmake
|
---|
48 | */
|
---|
49 |
|
---|
50 | /*
|
---|
51 | If a triState value is 'unset' then the
|
---|
52 | corresponding property is not in the output,
|
---|
53 | forcing the tool to utilize default values.
|
---|
54 | False/True values will be in the output...
|
---|
55 | */
|
---|
56 | enum customBuildCheck {
|
---|
57 | none,
|
---|
58 | moc,
|
---|
59 | uic,
|
---|
60 | lexyacc,
|
---|
61 | resource
|
---|
62 | };
|
---|
63 | enum triState {
|
---|
64 | unset = -1,
|
---|
65 | _False = 0,
|
---|
66 | _True = 1
|
---|
67 | };
|
---|
68 | enum addressAwarenessType {
|
---|
69 | addrAwareDefault,
|
---|
70 | addrAwareNoLarge,
|
---|
71 | addrAwareLarge
|
---|
72 | };
|
---|
73 | enum asmListingOption {
|
---|
74 | asmListingNone,
|
---|
75 | asmListingAssemblyOnly,
|
---|
76 | asmListingAsmMachineSrc,
|
---|
77 | asmListingAsmMachine,
|
---|
78 | asmListingAsmSrc
|
---|
79 | };
|
---|
80 | enum basicRuntimeCheckOption {
|
---|
81 | runtimeBasicCheckNone,
|
---|
82 | runtimeCheckStackFrame,
|
---|
83 | runtimeCheckUninitVariables,
|
---|
84 | runtimeBasicCheckAll
|
---|
85 | };
|
---|
86 | enum browseInfoOption {
|
---|
87 | brInfoNone,
|
---|
88 | brAllInfo,
|
---|
89 | brNoLocalSymbols
|
---|
90 | };
|
---|
91 | enum callingConventionOption {
|
---|
92 | callConventionDefault = -1,
|
---|
93 | callConventionCDecl,
|
---|
94 | callConventionFastCall,
|
---|
95 | callConventionStdCall
|
---|
96 | };
|
---|
97 | enum charSet {
|
---|
98 | charSetNotSet,
|
---|
99 | charSetUnicode,
|
---|
100 | charSetMBCS
|
---|
101 | };
|
---|
102 | enum compileAsManagedOptions {
|
---|
103 | managedDefault = -1,
|
---|
104 | managedAssembly = 2
|
---|
105 | };
|
---|
106 | enum CompileAsOptions{
|
---|
107 | compileAsDefault,
|
---|
108 | compileAsC,
|
---|
109 | compileAsCPlusPlus
|
---|
110 | };
|
---|
111 | enum ConfigurationTypes {
|
---|
112 | typeUnknown = 0,
|
---|
113 | typeApplication = 1,
|
---|
114 | typeDynamicLibrary = 2,
|
---|
115 | typeStaticLibrary = 4,
|
---|
116 | typeGeneric = 10
|
---|
117 | };
|
---|
118 | enum debugOption {
|
---|
119 | debugUnknown = -1,
|
---|
120 | debugDisabled,
|
---|
121 | debugOldStyleInfo,
|
---|
122 | debugLineInfoOnly,
|
---|
123 | debugEnabled,
|
---|
124 | debugEditAndContinue
|
---|
125 | };
|
---|
126 | enum eAppProtectionOption {
|
---|
127 | eAppProtectUnchanged,
|
---|
128 | eAppProtectLow,
|
---|
129 | eAppProtectMedium,
|
---|
130 | eAppProtectHigh
|
---|
131 | };
|
---|
132 | enum enumResourceLangID {
|
---|
133 | rcUseDefault = 0,
|
---|
134 | rcAfrikaans = 1078,
|
---|
135 | rcAlbanian = 1052,
|
---|
136 | rcArabicAlgeria = 5121,
|
---|
137 | rcArabicBahrain = 15361,
|
---|
138 | rcArabicEgypt = 3073,
|
---|
139 | rcArabicIraq = 2049,
|
---|
140 | rcArabicJordan = 11265,
|
---|
141 | rcArabicKuwait = 13313,
|
---|
142 | rcArabicLebanon = 12289,
|
---|
143 | rcArabicLibya = 4097,
|
---|
144 | rcArabicMorocco = 6145,
|
---|
145 | rcArabicOman = 8193,
|
---|
146 | rcArabicQatar = 16385,
|
---|
147 | rcArabicSaudi = 1025,
|
---|
148 | rcArabicSyria = 10241,
|
---|
149 | rcArabicTunisia = 7169,
|
---|
150 | rcArabicUnitedArabEmirates = 14337,
|
---|
151 | rcArabicYemen = 9217,
|
---|
152 | rcBasque = 1069,
|
---|
153 | rcBulgarian = 1026,
|
---|
154 | rcByelorussian = 1059,
|
---|
155 | rcCatalan = 1027,
|
---|
156 | rcChineseHongKong = 3076,
|
---|
157 | rcChinesePRC = 2052,
|
---|
158 | rcChineseSingapore = 4100,
|
---|
159 | rcChineseTaiwan = 1028,
|
---|
160 | rcCroatian = 1050,
|
---|
161 | rcCzech = 1029,
|
---|
162 | rcDanish = 1030,
|
---|
163 | rcDutchBelgium = 2067,
|
---|
164 | rcDutchStandard = 1043,
|
---|
165 | rcEnglishAustralia = 3081,
|
---|
166 | rcEnglishBritain = 2057,
|
---|
167 | rcEnglishCanada = 4105,
|
---|
168 | RcEnglishCaribbean = 9225,
|
---|
169 | rcEnglishIreland = 6153,
|
---|
170 | rcEnglishJamaica = 8201,
|
---|
171 | rcEnglishNewZealand = 5129,
|
---|
172 | rcEnglishSouthAfrica = 7177,
|
---|
173 | rcEnglishUS = 1033,
|
---|
174 | rcEstonian = 1061,
|
---|
175 | rcFarsi = 1065,
|
---|
176 | rcFinnish = 1035,
|
---|
177 | rcFrenchBelgium = 2060,
|
---|
178 | rcFrenchCanada = 3084,
|
---|
179 | rcFrenchLuxembourg = 5132,
|
---|
180 | rcFrenchStandard = 1036,
|
---|
181 | rcFrenchSwitzerland = 4108,
|
---|
182 | rcGermanAustria = 3079,
|
---|
183 | rcGermanLichtenstein = 5127,
|
---|
184 | rcGermanLuxembourg = 4103,
|
---|
185 | rcGermanStandard = 1031,
|
---|
186 | rcGermanSwitzerland = 2055,
|
---|
187 | rcGreek = 1032,
|
---|
188 | rcHebrew = 1037,
|
---|
189 | rcHungarian = 1038,
|
---|
190 | rcIcelandic = 1039,
|
---|
191 | rcIndonesian = 1057,
|
---|
192 | rcItalianStandard = 1040,
|
---|
193 | rcItalianSwitzerland = 2064,
|
---|
194 | rcJapanese = 1041,
|
---|
195 | rcKorean = 1042,
|
---|
196 | rcKoreanJohab = 2066,
|
---|
197 | rcLatvian = 1062,
|
---|
198 | rcLithuanian = 1063,
|
---|
199 | rcNorwegianBokmal = 1044,
|
---|
200 | rcNorwegianNynorsk = 2068,
|
---|
201 | rcPolish = 1045,
|
---|
202 | rcPortugueseBrazilian = 1046,
|
---|
203 | rcPortugueseStandard = 2070,
|
---|
204 | rcRomanian = 1048,
|
---|
205 | rcRussian = 1049,
|
---|
206 | rcSerbian = 2074,
|
---|
207 | rcSlovak = 1051,
|
---|
208 | rcSpanishArgentina = 11274,
|
---|
209 | rcSpanishBolivia = 16394,
|
---|
210 | rcSpanishChile = 13322,
|
---|
211 | rcSpanishColombia = 9226,
|
---|
212 | rcSpanishCostaRica = 5130,
|
---|
213 | rcSpanishDominicanRepublic = 7178,
|
---|
214 | rcSpanishEcuador = 12298,
|
---|
215 | rcSpanishGuatemala = 4106,
|
---|
216 | rcSpanishMexico = 2058,
|
---|
217 | rcSpanishModern = 3082,
|
---|
218 | rcSpanishPanama = 6154,
|
---|
219 | rcSpanishParaguay = 15370,
|
---|
220 | rcSpanishPeru = 10250,
|
---|
221 | rcSpanishTraditional = 1034,
|
---|
222 | rcSpanishUruguay = 14346,
|
---|
223 | rcSpanishVenezuela = 8202,
|
---|
224 | rcSwedish = 1053,
|
---|
225 | rcThai = 1054,
|
---|
226 | rcTurkish = 1055,
|
---|
227 | rcUkrainian = 1058,
|
---|
228 | rcUrdu = 1056
|
---|
229 | };
|
---|
230 | enum enumSccEvent {
|
---|
231 | eProjectInScc,
|
---|
232 | ePreDirtyNotification
|
---|
233 | };
|
---|
234 | enum favorSizeOrSpeedOption {
|
---|
235 | favorNone,
|
---|
236 | favorSpeed,
|
---|
237 | favorSize
|
---|
238 | };
|
---|
239 | enum genProxyLanguage {
|
---|
240 | genProxyNative,
|
---|
241 | genProxyManaged
|
---|
242 | };
|
---|
243 | enum inlineExpansionOption {
|
---|
244 | expandDisable,
|
---|
245 | expandOnlyInline,
|
---|
246 | expandAnySuitable,
|
---|
247 | expandDefault // Not useful number, but stops the output
|
---|
248 | };
|
---|
249 | enum linkIncrementalType {
|
---|
250 | linkIncrementalDefault,
|
---|
251 | linkIncrementalNo,
|
---|
252 | linkIncrementalYes
|
---|
253 | };
|
---|
254 | enum linkProgressOption {
|
---|
255 | linkProgressNotSet,
|
---|
256 | linkProgressAll,
|
---|
257 | linkProgressLibs
|
---|
258 | };
|
---|
259 | enum machineTypeOption {
|
---|
260 | machineNotSet,
|
---|
261 | machineX86
|
---|
262 | };
|
---|
263 | enum midlCharOption {
|
---|
264 | midlCharUnsigned,
|
---|
265 | midlCharSigned,
|
---|
266 | midlCharAscii7
|
---|
267 | };
|
---|
268 | enum midlErrorCheckOption {
|
---|
269 | midlEnableCustom,
|
---|
270 | midlDisableAll,
|
---|
271 | midlEnableAll
|
---|
272 | };
|
---|
273 | enum midlStructMemberAlignOption {
|
---|
274 | midlAlignNotSet,
|
---|
275 | midlAlignSingleByte,
|
---|
276 | midlAlignTwoBytes,
|
---|
277 | midlAlignFourBytes,
|
---|
278 | midlAlignEightBytes,
|
---|
279 | midlAlignSixteenBytes
|
---|
280 | };
|
---|
281 | enum midlTargetEnvironment {
|
---|
282 | midlTargetNotSet,
|
---|
283 | midlTargetWin32,
|
---|
284 | midlTargetWin64
|
---|
285 | };
|
---|
286 | enum midlWarningLevelOption {
|
---|
287 | midlWarningLevel_0,
|
---|
288 | midlWarningLevel_1,
|
---|
289 | midlWarningLevel_2,
|
---|
290 | midlWarningLevel_3,
|
---|
291 | midlWarningLevel_4
|
---|
292 | };
|
---|
293 | enum optFoldingType {
|
---|
294 | optFoldingDefault,
|
---|
295 | optNoFolding,
|
---|
296 | optFolding
|
---|
297 | };
|
---|
298 | enum optimizeOption {
|
---|
299 | optimizeDisabled,
|
---|
300 | optimizeMinSpace,
|
---|
301 | optimizeMaxSpeed,
|
---|
302 | optimizeFull,
|
---|
303 | optimizeCustom,
|
---|
304 | optimizeDefault // Not useful number, but stops the output
|
---|
305 | };
|
---|
306 | enum optRefType {
|
---|
307 | optReferencesDefault,
|
---|
308 | optNoReferences,
|
---|
309 | optReferences
|
---|
310 | };
|
---|
311 | enum optWin98Type {
|
---|
312 | optWin98Default,
|
---|
313 | optWin98No,
|
---|
314 | optWin98Yes
|
---|
315 | };
|
---|
316 | enum pchOption {
|
---|
317 | pchNone,
|
---|
318 | pchCreateUsingSpecific,
|
---|
319 | pchGenerateAuto,
|
---|
320 | pchUseUsingSpecific
|
---|
321 | };
|
---|
322 | enum preprocessOption {
|
---|
323 | preprocessUnknown = -1,
|
---|
324 | preprocessNo,
|
---|
325 | preprocessYes,
|
---|
326 | preprocessNoLineNumbers
|
---|
327 | };
|
---|
328 | enum ProcessorOptimizeOption {
|
---|
329 | procOptimizeBlended,
|
---|
330 | procOptimizePentium,
|
---|
331 | procOptimizePentiumProAndAbove
|
---|
332 | };
|
---|
333 | enum RemoteDebuggerType {
|
---|
334 | DbgLocal,
|
---|
335 | DbgRemote,
|
---|
336 | DbgRemoteTCPIP
|
---|
337 | };
|
---|
338 | enum runtimeLibraryOption {
|
---|
339 | rtUnknown = -1,
|
---|
340 | rtMultiThreaded,
|
---|
341 | rtMultiThreadedDebug,
|
---|
342 | rtMultiThreadedDLL,
|
---|
343 | rtMultiThreadedDebugDLL,
|
---|
344 | rtSingleThreaded,
|
---|
345 | rtSingleThreadedDebug
|
---|
346 | };
|
---|
347 | enum structMemberAlignOption {
|
---|
348 | alignNotSet,
|
---|
349 | alignSingleByte,
|
---|
350 | alignTwoBytes,
|
---|
351 | alignFourBytes,
|
---|
352 | alignEightBytes,
|
---|
353 | alignSixteenBytes
|
---|
354 | };
|
---|
355 | enum subSystemOption {
|
---|
356 | subSystemNotSet,
|
---|
357 | subSystemConsole,
|
---|
358 | subSystemWindows
|
---|
359 | };
|
---|
360 | enum termSvrAwarenessType {
|
---|
361 | termSvrAwareDefault,
|
---|
362 | termSvrAwareNo,
|
---|
363 | termSvrAwareYes
|
---|
364 | };
|
---|
365 | enum toolSetType {
|
---|
366 | toolSetUtility,
|
---|
367 | toolSetMakefile,
|
---|
368 | toolSetLinker,
|
---|
369 | toolSetLibrarian,
|
---|
370 | toolSetAll
|
---|
371 | };
|
---|
372 | enum TypeOfDebugger {
|
---|
373 | DbgNativeOnly,
|
---|
374 | DbgManagedOnly,
|
---|
375 | DbgMixed,
|
---|
376 | DbgAuto
|
---|
377 | };
|
---|
378 | enum useOfATL {
|
---|
379 | useATLNotSet,
|
---|
380 | useATLStatic,
|
---|
381 | useATLDynamic
|
---|
382 | };
|
---|
383 | enum useOfMfc {
|
---|
384 | useMfcStdWin,
|
---|
385 | useMfcStatic,
|
---|
386 | useMfcDynamic
|
---|
387 | };
|
---|
388 | enum warningLevelOption {
|
---|
389 | warningLevelUnknown = -1,
|
---|
390 | warningLevel_0,
|
---|
391 | warningLevel_1,
|
---|
392 | warningLevel_2,
|
---|
393 | warningLevel_3,
|
---|
394 | warningLevel_4
|
---|
395 | };
|
---|
396 |
|
---|
397 | class VCToolBase {
|
---|
398 | protected:
|
---|
399 | // Functions
|
---|
400 | VCToolBase(){};
|
---|
401 | virtual ~VCToolBase(){}
|
---|
402 | virtual bool parseOption( const char* option ) = 0;
|
---|
403 | public:
|
---|
404 | void parseOptions( QStringList& options ) {
|
---|
405 | for ( QStringList::ConstIterator it=options.begin(); (it!=options.end()); it++ )
|
---|
406 | parseOption( (*it).latin1() );
|
---|
407 | }
|
---|
408 | };
|
---|
409 |
|
---|
410 | class VCConfiguration;
|
---|
411 | class VCProject;
|
---|
412 |
|
---|
413 | class VCCLCompilerTool : public VCToolBase
|
---|
414 | {
|
---|
415 | public:
|
---|
416 | // Functions
|
---|
417 | VCCLCompilerTool();
|
---|
418 | virtual ~VCCLCompilerTool(){}
|
---|
419 | bool parseOption( const char* option );
|
---|
420 |
|
---|
421 | // Variables
|
---|
422 | QStringList AdditionalIncludeDirectories;
|
---|
423 | QStringList AdditionalOptions;
|
---|
424 | QStringList AdditionalUsingDirectories;
|
---|
425 | QString AssemblerListingLocation;
|
---|
426 | asmListingOption AssemblerOutput;
|
---|
427 | basicRuntimeCheckOption BasicRuntimeChecks;
|
---|
428 | browseInfoOption BrowseInformation;
|
---|
429 | QString BrowseInformationFile;
|
---|
430 | triState BufferSecurityCheck;
|
---|
431 | callingConventionOption CallingConvention;
|
---|
432 | CompileAsOptions CompileAs;
|
---|
433 | compileAsManagedOptions CompileAsManaged;
|
---|
434 | triState CompileOnly;
|
---|
435 | debugOption DebugInformationFormat;
|
---|
436 | triState DefaultCharIsUnsigned;
|
---|
437 | triState Detect64BitPortabilityProblems;
|
---|
438 | triState DisableLanguageExtensions;
|
---|
439 | QStringList DisableSpecificWarnings;
|
---|
440 | triState EnableFiberSafeOptimizations;
|
---|
441 | triState EnableFunctionLevelLinking;
|
---|
442 | triState EnableIntrinsicFunctions;
|
---|
443 | triState ExceptionHandling;
|
---|
444 | triState ExpandAttributedSource;
|
---|
445 | favorSizeOrSpeedOption FavorSizeOrSpeed;
|
---|
446 | triState ForceConformanceInForLoopScope;
|
---|
447 | QStringList ForcedIncludeFiles;
|
---|
448 | QStringList ForcedUsingFiles;
|
---|
449 | preprocessOption GeneratePreprocessedFile;
|
---|
450 | triState GlobalOptimizations;
|
---|
451 | triState IgnoreStandardIncludePath;
|
---|
452 | triState ImproveFloatingPointConsistency;
|
---|
453 | inlineExpansionOption InlineFunctionExpansion;
|
---|
454 | triState KeepComments;
|
---|
455 | triState MinimalRebuild;
|
---|
456 | QString ObjectFile;
|
---|
457 | triState OmitFramePointers;
|
---|
458 | optimizeOption Optimization;
|
---|
459 | ProcessorOptimizeOption OptimizeForProcessor;
|
---|
460 | triState OptimizeForWindowsApplication;
|
---|
461 | QString OutputFile;
|
---|
462 | QString PrecompiledHeaderFile;
|
---|
463 | QString PrecompiledHeaderThrough;
|
---|
464 | QStringList PreprocessorDefinitions;
|
---|
465 | QString ProgramDataBaseFileName;
|
---|
466 | runtimeLibraryOption RuntimeLibrary;
|
---|
467 | triState RuntimeTypeInfo;
|
---|
468 | triState ShowIncludes;
|
---|
469 | triState SmallerTypeCheck;
|
---|
470 | triState StringPooling;
|
---|
471 | structMemberAlignOption StructMemberAlignment;
|
---|
472 | triState SuppressStartupBanner;
|
---|
473 | triState TreatWChar_tAsBuiltInType;
|
---|
474 | triState TurnOffAssemblyGeneration;
|
---|
475 | triState UndefineAllPreprocessorDefinitions;
|
---|
476 | QStringList UndefinePreprocessorDefinitions;
|
---|
477 | pchOption UsePrecompiledHeader;
|
---|
478 | triState WarnAsError;
|
---|
479 | warningLevelOption WarningLevel;
|
---|
480 | triState WholeProgramOptimization;
|
---|
481 | VCConfiguration* config;
|
---|
482 | };
|
---|
483 |
|
---|
484 | class VCLinkerTool : public VCToolBase
|
---|
485 | {
|
---|
486 | public:
|
---|
487 | // Functions
|
---|
488 | VCLinkerTool();
|
---|
489 | virtual ~VCLinkerTool(){}
|
---|
490 | bool parseOption( const char* option );
|
---|
491 |
|
---|
492 | // Variables
|
---|
493 | QStringList AdditionalDependencies;
|
---|
494 | QStringList AdditionalLibraryDirectories;
|
---|
495 | QStringList AdditionalOptions;
|
---|
496 | QStringList AddModuleNamesToAssembly;
|
---|
497 | QString BaseAddress;
|
---|
498 | QStringList DelayLoadDLLs;
|
---|
499 | optFoldingType EnableCOMDATFolding;
|
---|
500 | QString EntryPointSymbol;
|
---|
501 | QStringList ForceSymbolReferences;
|
---|
502 | QString FunctionOrder;
|
---|
503 | triState GenerateDebugInformation;
|
---|
504 | triState GenerateMapFile;
|
---|
505 | long HeapCommitSize;
|
---|
506 | long HeapReserveSize;
|
---|
507 | triState IgnoreAllDefaultLibraries;
|
---|
508 | QStringList IgnoreDefaultLibraryNames;
|
---|
509 | triState IgnoreEmbeddedIDL;
|
---|
510 | triState IgnoreImportLibrary;
|
---|
511 | QString ImportLibrary;
|
---|
512 | addressAwarenessType LargeAddressAware;
|
---|
513 | triState LinkDLL;
|
---|
514 | linkIncrementalType LinkIncremental;
|
---|
515 | triState LinkTimeCodeGeneration;
|
---|
516 | QString LinkToManagedResourceFile;
|
---|
517 | triState MapExports;
|
---|
518 | QString MapFileName;
|
---|
519 | triState MapLines;
|
---|
520 | QString MergedIDLBaseFileName;
|
---|
521 | QString MergeSections; // Should be list?
|
---|
522 | QString MidlCommandFile;
|
---|
523 | QString ModuleDefinitionFile; // Should be list?
|
---|
524 | optWin98Type OptimizeForWindows98;
|
---|
525 | optRefType OptimizeReferences;
|
---|
526 | QString OutputFile;
|
---|
527 | QString ProgramDatabaseFile;
|
---|
528 | triState RegisterOutput;
|
---|
529 | triState ResourceOnlyDLL;
|
---|
530 | triState SetChecksum;
|
---|
531 | linkProgressOption ShowProgress;
|
---|
532 | long StackCommitSize;
|
---|
533 | long StackReserveSize;
|
---|
534 | QString StripPrivateSymbols; // Should be list?
|
---|
535 | subSystemOption SubSystem;
|
---|
536 | triState SupportUnloadOfDelayLoadedDLL;
|
---|
537 | triState SuppressStartupBanner;
|
---|
538 | triState SwapRunFromCD;
|
---|
539 | triState SwapRunFromNet;
|
---|
540 | machineTypeOption TargetMachine;
|
---|
541 | termSvrAwarenessType TerminalServerAware;
|
---|
542 | triState TurnOffAssemblyGeneration;
|
---|
543 | QString TypeLibraryFile;
|
---|
544 | long TypeLibraryResourceID;
|
---|
545 | QString Version;
|
---|
546 | VCConfiguration* config;
|
---|
547 | };
|
---|
548 |
|
---|
549 | class VCMIDLTool : public VCToolBase
|
---|
550 | {
|
---|
551 | public:
|
---|
552 | // Functions
|
---|
553 | VCMIDLTool();
|
---|
554 | virtual ~VCMIDLTool(){}
|
---|
555 | bool parseOption( const char* option );
|
---|
556 |
|
---|
557 | // Variables
|
---|
558 | QStringList AdditionalIncludeDirectories;
|
---|
559 | QStringList AdditionalOptions;
|
---|
560 | QStringList CPreprocessOptions;
|
---|
561 | midlCharOption DefaultCharType;
|
---|
562 | QString DLLDataFileName; // Should be list?
|
---|
563 | midlErrorCheckOption EnableErrorChecks;
|
---|
564 | triState ErrorCheckAllocations;
|
---|
565 | triState ErrorCheckBounds;
|
---|
566 | triState ErrorCheckEnumRange;
|
---|
567 | triState ErrorCheckRefPointers;
|
---|
568 | triState ErrorCheckStubData;
|
---|
569 | QStringList FullIncludePath;
|
---|
570 | triState GenerateStublessProxies;
|
---|
571 | triState GenerateTypeLibrary;
|
---|
572 | QString HeaderFileName;
|
---|
573 | triState IgnoreStandardIncludePath;
|
---|
574 | QString InterfaceIdentifierFileName;
|
---|
575 | triState MkTypLibCompatible;
|
---|
576 | QString OutputDirectory;
|
---|
577 | QStringList PreprocessorDefinitions;
|
---|
578 | QString ProxyFileName;
|
---|
579 | QString RedirectOutputAndErrors;
|
---|
580 | midlStructMemberAlignOption StructMemberAlignment;
|
---|
581 | triState SuppressStartupBanner;
|
---|
582 | midlTargetEnvironment TargetEnvironment;
|
---|
583 | QString TypeLibraryName;
|
---|
584 | QStringList UndefinePreprocessorDefinitions;
|
---|
585 | triState ValidateParameters;
|
---|
586 | triState WarnAsError;
|
---|
587 | midlWarningLevelOption WarningLevel;
|
---|
588 | VCConfiguration* config;
|
---|
589 | };
|
---|
590 |
|
---|
591 | class VCLibrarianTool : public VCToolBase
|
---|
592 | {
|
---|
593 | public:
|
---|
594 | // Functions
|
---|
595 | VCLibrarianTool();
|
---|
596 | virtual ~VCLibrarianTool(){}
|
---|
597 | bool parseOption( const char* ){ return FALSE; };
|
---|
598 |
|
---|
599 | // Variables
|
---|
600 | QStringList AdditionalDependencies;
|
---|
601 | QStringList AdditionalLibraryDirectories;
|
---|
602 | QStringList AdditionalOptions;
|
---|
603 | QStringList ExportNamedFunctions;
|
---|
604 | QStringList ForceSymbolReferences;
|
---|
605 | triState IgnoreAllDefaultLibraries;
|
---|
606 | QStringList IgnoreDefaultLibraryNames;
|
---|
607 | QString ModuleDefinitionFile;
|
---|
608 | QString OutputFile;
|
---|
609 | triState SuppressStartupBanner;
|
---|
610 | };
|
---|
611 |
|
---|
612 | class VCCustomBuildTool : public VCToolBase
|
---|
613 | {
|
---|
614 | public:
|
---|
615 | // Functions
|
---|
616 | VCCustomBuildTool();
|
---|
617 | virtual ~VCCustomBuildTool(){}
|
---|
618 | bool parseOption( const char* ){ return FALSE; };
|
---|
619 |
|
---|
620 | // Variables
|
---|
621 | QStringList AdditionalDependencies;
|
---|
622 | QStringList CommandLine;
|
---|
623 | QString Description;
|
---|
624 | QStringList Outputs;
|
---|
625 | QString ToolName;
|
---|
626 | QString ToolPath;
|
---|
627 | };
|
---|
628 |
|
---|
629 | class VCResourceCompilerTool : public VCToolBase
|
---|
630 | {
|
---|
631 | public:
|
---|
632 | // Functions
|
---|
633 | VCResourceCompilerTool();
|
---|
634 | virtual ~VCResourceCompilerTool(){}
|
---|
635 | bool parseOption( const char* ){ return FALSE; };
|
---|
636 |
|
---|
637 | // Variables
|
---|
638 | QStringList AdditionalIncludeDirectories;
|
---|
639 | QStringList AdditionalOptions;
|
---|
640 | enumResourceLangID Culture;
|
---|
641 | QStringList FullIncludePath;
|
---|
642 | triState IgnoreStandardIncludePath;
|
---|
643 | QStringList PreprocessorDefinitions;
|
---|
644 | QString ResourceOutputFileName;
|
---|
645 | linkProgressOption ShowProgress;
|
---|
646 | QString ToolPath;
|
---|
647 | };
|
---|
648 |
|
---|
649 | class VCEventTool : public VCToolBase
|
---|
650 | {
|
---|
651 | protected:
|
---|
652 | // Functions
|
---|
653 | VCEventTool() : ExcludedFromBuild( unset ){};
|
---|
654 | virtual ~VCEventTool(){}
|
---|
655 | bool parseOption( const char* ){ return FALSE; };
|
---|
656 |
|
---|
657 | public:
|
---|
658 | // Variables
|
---|
659 | QString CommandLine;
|
---|
660 | QString Description;
|
---|
661 | triState ExcludedFromBuild;
|
---|
662 | QString ToolName;
|
---|
663 | QString ToolPath;
|
---|
664 | };
|
---|
665 |
|
---|
666 | class VCPostBuildEventTool : public VCEventTool
|
---|
667 | {
|
---|
668 | public:
|
---|
669 | VCPostBuildEventTool();
|
---|
670 | ~VCPostBuildEventTool(){}
|
---|
671 | };
|
---|
672 |
|
---|
673 | class VCPreBuildEventTool : public VCEventTool
|
---|
674 | {
|
---|
675 | public:
|
---|
676 | VCPreBuildEventTool();
|
---|
677 | ~VCPreBuildEventTool(){}
|
---|
678 | };
|
---|
679 |
|
---|
680 | class VCPreLinkEventTool : public VCEventTool
|
---|
681 | {
|
---|
682 | public:
|
---|
683 | VCPreLinkEventTool();
|
---|
684 | ~VCPreLinkEventTool(){}
|
---|
685 | };
|
---|
686 |
|
---|
687 | class VCConfiguration
|
---|
688 | {
|
---|
689 | public:
|
---|
690 | // Functions
|
---|
691 | VCConfiguration();
|
---|
692 | ~VCConfiguration(){}
|
---|
693 |
|
---|
694 | // Variables
|
---|
695 | triState ATLMinimizesCRunTimeLibraryUsage;
|
---|
696 | triState BuildBrowserInformation;
|
---|
697 | charSet CharacterSet;
|
---|
698 | ConfigurationTypes ConfigurationType;
|
---|
699 | QString DeleteExtensionsOnClean;
|
---|
700 | QString ImportLibrary;
|
---|
701 | QString IntermediateDirectory;
|
---|
702 | QString Name;
|
---|
703 | QString OutputDirectory;
|
---|
704 | QString PrimaryOutput;
|
---|
705 | QString ProgramDatabase;
|
---|
706 | triState RegisterOutput;
|
---|
707 | useOfATL UseOfATL;
|
---|
708 | useOfMfc UseOfMfc;
|
---|
709 | triState WholeProgramOptimization;
|
---|
710 |
|
---|
711 | // XML sub-parts
|
---|
712 | VCCLCompilerTool compiler;
|
---|
713 | VCLinkerTool linker;
|
---|
714 | VCLibrarianTool librarian;
|
---|
715 | VCCustomBuildTool custom;
|
---|
716 | VCMIDLTool idl;
|
---|
717 | VCPostBuildEventTool postBuild;
|
---|
718 | VCPreBuildEventTool preBuild;
|
---|
719 | VCPreLinkEventTool preLink;
|
---|
720 | VCResourceCompilerTool resource;
|
---|
721 | };
|
---|
722 |
|
---|
723 | class VcprojGenerator;
|
---|
724 | class VCFilter
|
---|
725 | {
|
---|
726 | public:
|
---|
727 | // Functions
|
---|
728 | VCFilter();
|
---|
729 | ~VCFilter(){}
|
---|
730 | void addMOCstage( QTextStream &strm, QString str );
|
---|
731 | void addUICstage( QTextStream &strm, QString str );
|
---|
732 | bool addIMGstage( QTextStream &strm, QString str );
|
---|
733 | void modifyPCHstage( QTextStream &strm, QString str );
|
---|
734 |
|
---|
735 | // Variables
|
---|
736 | QString Name;
|
---|
737 | QString Filter;
|
---|
738 | triState ParseFiles;
|
---|
739 | QStringList Files;
|
---|
740 | VcprojGenerator* Project;
|
---|
741 | QValueList<VCConfiguration> *Config;
|
---|
742 | customBuildCheck CustomBuild;
|
---|
743 | bool useCustomBuildTool;
|
---|
744 | VCCustomBuildTool CustomBuildTool;
|
---|
745 | bool useCompilerTool;
|
---|
746 | VCCLCompilerTool CompilerTool;
|
---|
747 | bool flat_files;
|
---|
748 | };
|
---|
749 |
|
---|
750 | class VCProject
|
---|
751 | {
|
---|
752 | public:
|
---|
753 | // Functions
|
---|
754 | VCProject();
|
---|
755 | ~VCProject(){}
|
---|
756 |
|
---|
757 | // Variables
|
---|
758 | QString Name;
|
---|
759 | QString Version;
|
---|
760 | QString ProjectGUID;
|
---|
761 | QString SccProjectName;
|
---|
762 | QString SccLocalPath;
|
---|
763 | QString PlatformName;
|
---|
764 |
|
---|
765 | // XML sub-parts
|
---|
766 | QValueList<VCConfiguration> Configuration;
|
---|
767 | VCFilter SourceFiles;
|
---|
768 | VCFilter HeaderFiles;
|
---|
769 | VCFilter MOCFiles;
|
---|
770 | VCFilter UICFiles;
|
---|
771 | VCFilter FormFiles;
|
---|
772 | VCFilter TranslationFiles;
|
---|
773 | VCFilter LexYaccFiles;
|
---|
774 | VCFilter ResourceFiles;
|
---|
775 | };
|
---|
776 |
|
---|
777 | QTextStream &operator<<( QTextStream &, const VCCLCompilerTool & );
|
---|
778 | QTextStream &operator<<( QTextStream &, const VCLinkerTool & );
|
---|
779 | QTextStream &operator<<( QTextStream &, const VCMIDLTool & );
|
---|
780 | QTextStream &operator<<( QTextStream &, const VCCustomBuildTool & );
|
---|
781 | QTextStream &operator<<( QTextStream &, const VCLibrarianTool & );
|
---|
782 | QTextStream &operator<<( QTextStream &, const VCResourceCompilerTool & );
|
---|
783 | QTextStream &operator<<( QTextStream &, const VCEventTool & );
|
---|
784 | QTextStream &operator<<( QTextStream &, const VCConfiguration & );
|
---|
785 | QTextStream &operator<<( QTextStream &, VCFilter & );
|
---|
786 | QTextStream &operator<<( QTextStream &, const VCProject & );
|
---|
787 |
|
---|
788 | #endif //__MSVC_OBJECTMODEL_H__
|
---|