Diffstat (limited to 'qmake/generators/win32/msvc_objectmodel.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | qmake/generators/win32/msvc_objectmodel.h | 100 |
1 files changed, 49 insertions, 51 deletions
diff --git a/qmake/generators/win32/msvc_objectmodel.h b/qmake/generators/win32/msvc_objectmodel.h index 2d09280..1dca68d 100644 --- a/qmake/generators/win32/msvc_objectmodel.h +++ b/qmake/generators/win32/msvc_objectmodel.h | |||
@@ -39,18 +39,18 @@ | |||
39 | #include <qstring.h> | 39 | #include <qstring.h> |
40 | #include <qstringlist.h> | 40 | #include <qstringlist.h> |
41 | 41 | ||
42 | /* | 42 | /* |
43 | This Object model is of course VERY simplyfied, | 43 | This Object model is of course VERY simplyfied, |
44 | and does not actually follow the original MSVC | 44 | and does not actually follow the original MSVC |
45 | object model. However, it fulfilles the basic | 45 | object model. However, it fulfilles the basic |
46 | needs for qmake | 46 | needs for qmake |
47 | */ | 47 | */ |
48 | 48 | ||
49 | /* | 49 | /* |
50 | If a triState value is 'unset' then the | 50 | If a triState value is 'unset' then the |
51 | corresponding property is not in the output, | 51 | corresponding property is not in the output, |
52 | forcing the tool to utilize default values. | 52 | forcing the tool to utilize default values. |
53 | False/True values will be in the output... | 53 | False/True values will be in the output... |
54 | */ | 54 | */ |
55 | enum customBuildCheck { | 55 | enum customBuildCheck { |
56 | none, | 56 | none, |
@@ -82,9 +82,9 @@ enum basicRuntimeCheckOption { | |||
82 | runtimeBasicCheckAll | 82 | runtimeBasicCheckAll |
83 | }; | 83 | }; |
84 | enum browseInfoOption { | 84 | enum browseInfoOption { |
85 | brInfoNone, | 85 | brInfoNone, |
86 | brAllInfo, | 86 | brAllInfo, |
87 | brNoLocalSymbols | 87 | brNoLocalSymbols |
88 | }; | 88 | }; |
89 | enum callingConventionOption { | 89 | enum callingConventionOption { |
90 | callConventionDefault = -1, | 90 | callConventionDefault = -1, |
@@ -117,15 +117,15 @@ enum debugOption { | |||
117 | debugDisabled, | 117 | debugDisabled, |
118 | debugOldStyleInfo, | 118 | debugOldStyleInfo, |
119 | debugLineInfoOnly, | 119 | debugLineInfoOnly, |
120 | debugEnabled, | 120 | debugEnabled, |
121 | debugEditAndContinue | 121 | debugEditAndContinue |
122 | }; | 122 | }; |
123 | enum eAppProtectionOption { | 123 | enum eAppProtectionOption { |
124 | eAppProtectUnchanged, | 124 | eAppProtectUnchanged, |
125 | eAppProtectLow, | 125 | eAppProtectLow, |
126 | eAppProtectMedium, | 126 | eAppProtectMedium, |
127 | eAppProtectHigh | 127 | eAppProtectHigh |
128 | }; | 128 | }; |
129 | enum enumResourceLangID { | 129 | enum enumResourceLangID { |
130 | rcUseDefault = 0, | 130 | rcUseDefault = 0, |
131 | rcAfrikaans = 1078, | 131 | rcAfrikaans = 1078, |
@@ -230,9 +230,9 @@ enum enumSccEvent { | |||
230 | }; | 230 | }; |
231 | enum favorSizeOrSpeedOption { | 231 | enum favorSizeOrSpeedOption { |
232 | favorNone, | 232 | favorNone, |
233 | favorSpeed, | 233 | favorSpeed, |
234 | favorSize | 234 | favorSize |
235 | }; | 235 | }; |
236 | enum genProxyLanguage { | 236 | enum genProxyLanguage { |
237 | genProxyNative, | 237 | genProxyNative, |
238 | genProxyManaged | 238 | genProxyManaged |
@@ -244,14 +244,14 @@ enum inlineExpansionOption { | |||
244 | }; | 244 | }; |
245 | enum linkIncrementalType { | 245 | enum linkIncrementalType { |
246 | linkIncrementalDefault, | 246 | linkIncrementalDefault, |
247 | linkIncrementalNo, | 247 | linkIncrementalNo, |
248 | linkIncrementalYes | 248 | linkIncrementalYes |
249 | }; | 249 | }; |
250 | enum linkProgressOption { | 250 | enum linkProgressOption { |
251 | linkProgressNotSet, | 251 | linkProgressNotSet, |
252 | linkProgressAll, | 252 | linkProgressAll, |
253 | linkProgressLibs | 253 | linkProgressLibs |
254 | }; | 254 | }; |
255 | enum machineTypeOption { | 255 | enum machineTypeOption { |
256 | machineNotSet, | 256 | machineNotSet, |
257 | machineX86 | 257 | machineX86 |
@@ -263,9 +263,9 @@ enum midlCharOption { | |||
263 | }; | 263 | }; |
264 | enum midlErrorCheckOption { | 264 | enum midlErrorCheckOption { |
265 | midlEnableCustom, | 265 | midlEnableCustom, |
266 | midlDisableAll, | 266 | midlDisableAll, |
267 | midlEnableAll | 267 | midlEnableAll |
268 | }; | 268 | }; |
269 | enum midlStructMemberAlignOption { | 269 | enum midlStructMemberAlignOption { |
270 | midlAlignNotSet, | 270 | midlAlignNotSet, |
271 | midlAlignSingleByte, | 271 | midlAlignSingleByte, |
@@ -283,9 +283,9 @@ enum midlWarningLevelOption { | |||
283 | midlWarningLevel_0, | 283 | midlWarningLevel_0, |
284 | midlWarningLevel_1, | 284 | midlWarningLevel_1, |
285 | midlWarningLevel_2, | 285 | midlWarningLevel_2, |
286 | midlWarningLevel_3, | 286 | midlWarningLevel_3, |
287 | midlWarningLevel_4 | 287 | midlWarningLevel_4 |
288 | }; | 288 | }; |
289 | enum optFoldingType { | 289 | enum optFoldingType { |
290 | optFoldingDefault, | 290 | optFoldingDefault, |
291 | optNoFolding, | 291 | optNoFolding, |
@@ -295,9 +295,9 @@ enum optimizeOption { | |||
295 | optimizeDisabled, | 295 | optimizeDisabled, |
296 | optimizeMinSpace, | 296 | optimizeMinSpace, |
297 | optimizeMaxSpeed, | 297 | optimizeMaxSpeed, |
298 | optimizeFull, | 298 | optimizeFull, |
299 | optimizeCustom | 299 | optimizeCustom |
300 | }; | 300 | }; |
301 | enum optRefType { | 301 | enum optRefType { |
302 | optReferencesDefault, | 302 | optReferencesDefault, |
303 | optNoReferences, | 303 | optNoReferences, |
@@ -311,40 +311,40 @@ enum optWin98Type { | |||
311 | enum pchOption { | 311 | enum pchOption { |
312 | pchNone, | 312 | pchNone, |
313 | pchCreateUsingSpecific, | 313 | pchCreateUsingSpecific, |
314 | pchGenerateAuto, | 314 | pchGenerateAuto, |
315 | pchUseUsingSpecific | 315 | pchUseUsingSpecific |
316 | }; | 316 | }; |
317 | enum preprocessOption { | 317 | enum preprocessOption { |
318 | preprocessNo, | 318 | preprocessNo, |
319 | preprocessYes, | 319 | preprocessYes, |
320 | preprocessNoLineNumbers | 320 | preprocessNoLineNumbers |
321 | }; | 321 | }; |
322 | enum ProcessorOptimizeOption { | 322 | enum ProcessorOptimizeOption { |
323 | procOptimizeBlended, | 323 | procOptimizeBlended, |
324 | procOptimizePentium, | 324 | procOptimizePentium, |
325 | procOptimizePentiumProAndAbove | 325 | procOptimizePentiumProAndAbove |
326 | }; | 326 | }; |
327 | enum RemoteDebuggerType { | 327 | enum RemoteDebuggerType { |
328 | DbgLocal, | 328 | DbgLocal, |
329 | DbgRemote, | 329 | DbgRemote, |
330 | DbgRemoteTCPIP | 330 | DbgRemoteTCPIP |
331 | }; | 331 | }; |
332 | enum runtimeLibraryOption { | 332 | enum runtimeLibraryOption { |
333 | rtMultiThreaded, | 333 | rtMultiThreaded, |
334 | rtMultiThreadedDebug, | 334 | rtMultiThreadedDebug, |
335 | rtMultiThreadedDLL, | 335 | rtMultiThreadedDLL, |
336 | rtMultiThreadedDebugDLL, | 336 | rtMultiThreadedDebugDLL, |
337 | rtSingleThreaded, | 337 | rtSingleThreaded, |
338 | rtSingleThreadedDebug | 338 | rtSingleThreadedDebug |
339 | }; | 339 | }; |
340 | enum structMemberAlignOption { | 340 | enum structMemberAlignOption { |
341 | alignNotSet, | 341 | alignNotSet, |
342 | alignSingleByte, | 342 | alignSingleByte, |
343 | alignTwoBytes, | 343 | alignTwoBytes, |
344 | alignFourBytes, | 344 | alignFourBytes, |
345 | alignEightBytes, | 345 | alignEightBytes, |
346 | alignSixteenBytes | 346 | alignSixteenBytes |
347 | }; | 347 | }; |
348 | enum subSystemOption { | 348 | enum subSystemOption { |
349 | subSystemNotSet, | 349 | subSystemNotSet, |
350 | subSystemConsole, | 350 | subSystemConsole, |
@@ -365,19 +365,19 @@ enum toolSetType { | |||
365 | enum TypeOfDebugger { | 365 | enum TypeOfDebugger { |
366 | DbgNativeOnly, | 366 | DbgNativeOnly, |
367 | DbgManagedOnly, | 367 | DbgManagedOnly, |
368 | DbgMixed, | 368 | DbgMixed, |
369 | DbgAuto | 369 | DbgAuto |
370 | }; | 370 | }; |
371 | enum useOfATL { | 371 | enum useOfATL { |
372 | useATLNotSet, | 372 | useATLNotSet, |
373 | useATLStatic, | 373 | useATLStatic, |
374 | useATLDynamic | 374 | useATLDynamic |
375 | }; | 375 | }; |
376 | enum useOfMfc { | 376 | enum useOfMfc { |
377 | useMfcStdWin, | 377 | useMfcStdWin, |
378 | useMfcStatic, | 378 | useMfcStatic, |
379 | useMfcDynamic | 379 | useMfcDynamic |
380 | }; | 380 | }; |
381 | enum warningLevelOption { | 381 | enum warningLevelOption { |
382 | warningLevel_0, | 382 | warningLevel_0, |
383 | warningLevel_1, | 383 | warningLevel_1, |
@@ -389,16 +389,14 @@ enum warningLevelOption { | |||
389 | class VCToolBase { | 389 | class VCToolBase { |
390 | protected: | 390 | protected: |
391 | // Functions | 391 | // Functions |
392 | VCToolBase(){}; | 392 | VCToolBase(){}; |
393 | ~VCToolBase(){}; | 393 | virtual ~VCToolBase(){} |
394 | virtual bool parseOption( const char* option ) = 0; | 394 | virtual bool parseOption( const char* option ) = 0; |
395 | public: | 395 | public: |
396 | bool parseOptions( QStringList& options ) { | 396 | void parseOptions( QStringList& options ) { |
397 | bool result = TRUE; | 397 | for ( QStringList::ConstIterator it=options.begin(); (it!=options.end()); it++ ) |
398 | for ( QStringList::ConstIterator it=options.begin(); (it!=options.end()) && result; it++ ) | 398 | parseOption( (*it).latin1() ); |
399 | result = parseOption( (*it).latin1() ); | ||
400 | return result; | ||
401 | } | 399 | } |
402 | }; | 400 | }; |
403 | 401 | ||
404 | class VCConfiguration; | 402 | class VCConfiguration; |
@@ -408,11 +406,11 @@ class VCCLCompilerTool : public VCToolBase | |||
408 | { | 406 | { |
409 | public: | 407 | public: |
410 | // Functions | 408 | // Functions |
411 | VCCLCompilerTool(); | 409 | VCCLCompilerTool(); |
412 | ~VCCLCompilerTool(){}; | 410 | virtual ~VCCLCompilerTool(){} |
413 | virtual bool parseOption( const char* option ); | 411 | bool parseOption( const char* option ); |
414 | 412 | ||
415 | // Variables | 413 | // Variables |
416 | QStringList AdditionalIncludeDirectories; | 414 | QStringList AdditionalIncludeDirectories; |
417 | QStringList AdditionalOptions; | 415 | QStringList AdditionalOptions; |
418 | QStringList AdditionalUsingDirectories; | 416 | QStringList AdditionalUsingDirectories; |
@@ -479,10 +477,10 @@ class VCLinkerTool : public VCToolBase | |||
479 | { | 477 | { |
480 | public: | 478 | public: |
481 | // Functions | 479 | // Functions |
482 | VCLinkerTool(); | 480 | VCLinkerTool(); |
483 | ~VCLinkerTool(){}; | 481 | virtual ~VCLinkerTool(){} |
484 | virtual bool parseOption( const char* option ); | 482 | bool parseOption( const char* option ); |
485 | 483 | ||
486 | // Variables | 484 | // Variables |
487 | QStringList AdditionalDependencies; | 485 | QStringList AdditionalDependencies; |
488 | QStringList AdditionalLibraryDirectories; | 486 | QStringList AdditionalLibraryDirectories; |
@@ -544,10 +542,10 @@ class VCMIDLTool : public VCToolBase | |||
544 | { | 542 | { |
545 | public: | 543 | public: |
546 | // Functions | 544 | // Functions |
547 | VCMIDLTool(); | 545 | VCMIDLTool(); |
548 | ~VCMIDLTool(){}; | 546 | virtual ~VCMIDLTool(){} |
549 | virtual bool parseOption( const char* option ); | 547 | bool parseOption( const char* option ); |
550 | 548 | ||
551 | // Variables | 549 | // Variables |
552 | QStringList AdditionalIncludeDirectories; | 550 | QStringList AdditionalIncludeDirectories; |
553 | QStringList AdditionalOptions; | 551 | QStringList AdditionalOptions; |
@@ -586,10 +584,10 @@ class VCLibrarianTool : public VCToolBase | |||
586 | { | 584 | { |
587 | public: | 585 | public: |
588 | // Functions | 586 | // Functions |
589 | VCLibrarianTool(); | 587 | VCLibrarianTool(); |
590 | ~VCLibrarianTool(){}; | 588 | virtual ~VCLibrarianTool(){} |
591 | virtual bool parseOption( const char* option ){ return FALSE; }; | 589 | bool parseOption( const char* ){ return FALSE; }; |
592 | 590 | ||
593 | // Variables | 591 | // Variables |
594 | QStringList AdditionalDependencies; | 592 | QStringList AdditionalDependencies; |
595 | QStringList AdditionalLibraryDirectories; | 593 | QStringList AdditionalLibraryDirectories; |
@@ -607,10 +605,10 @@ class VCCustomBuildTool : public VCToolBase | |||
607 | { | 605 | { |
608 | public: | 606 | public: |
609 | // Functions | 607 | // Functions |
610 | VCCustomBuildTool(); | 608 | VCCustomBuildTool(); |
611 | ~VCCustomBuildTool(){}; | 609 | virtual ~VCCustomBuildTool(){} |
612 | virtual bool parseOption( const char* option ){ return FALSE; }; | 610 | bool parseOption( const char* ){ return FALSE; }; |
613 | 611 | ||
614 | // Variables | 612 | // Variables |
615 | QStringList AdditionalDependencies; | 613 | QStringList AdditionalDependencies; |
616 | QString CommandLine; | 614 | QString CommandLine; |
@@ -624,10 +622,10 @@ class VCResourceCompilerTool : public VCToolBase | |||
624 | { | 622 | { |
625 | public: | 623 | public: |
626 | // Functions | 624 | // Functions |
627 | VCResourceCompilerTool(); | 625 | VCResourceCompilerTool(); |
628 | ~VCResourceCompilerTool(){}; | 626 | virtual ~VCResourceCompilerTool(){} |
629 | virtual bool parseOption( const char* option ){ return FALSE; }; | 627 | bool parseOption( const char* ){ return FALSE; }; |
630 | 628 | ||
631 | // Variables | 629 | // Variables |
632 | QStringList AdditionalIncludeDirectories; | 630 | QStringList AdditionalIncludeDirectories; |
633 | QStringList AdditionalOptions; | 631 | QStringList AdditionalOptions; |
@@ -644,10 +642,10 @@ class VCEventTool : public VCToolBase | |||
644 | { | 642 | { |
645 | protected: | 643 | protected: |
646 | // Functions | 644 | // Functions |
647 | VCEventTool() : ExcludedFromBuild( unset ){}; | 645 | VCEventTool() : ExcludedFromBuild( unset ){}; |
648 | ~VCEventTool(){}; | 646 | virtual ~VCEventTool(){} |
649 | virtual bool parseOption( const char* option ){ return FALSE; }; | 647 | bool parseOption( const char* ){ return FALSE; }; |
650 | 648 | ||
651 | public: | 649 | public: |
652 | // Variables | 650 | // Variables |
653 | QString CommandLine; | 651 | QString CommandLine; |
@@ -656,35 +654,35 @@ public: | |||
656 | QString ToolName; | 654 | QString ToolName; |
657 | QString ToolPath; | 655 | QString ToolPath; |
658 | }; | 656 | }; |
659 | 657 | ||
660 | class VCPostBuildEventTool : public VCEventTool | 658 | class VCPostBuildEventTool : public VCEventTool |
661 | { | 659 | { |
662 | public: | 660 | public: |
663 | VCPostBuildEventTool(); | 661 | VCPostBuildEventTool(); |
664 | ~VCPostBuildEventTool(){}; | 662 | ~VCPostBuildEventTool(){} |
665 | }; | 663 | }; |
666 | 664 | ||
667 | class VCPreBuildEventTool : public VCEventTool | 665 | class VCPreBuildEventTool : public VCEventTool |
668 | { | 666 | { |
669 | public: | 667 | public: |
670 | VCPreBuildEventTool(); | 668 | VCPreBuildEventTool(); |
671 | ~VCPreBuildEventTool(){}; | 669 | ~VCPreBuildEventTool(){} |
672 | }; | 670 | }; |
673 | 671 | ||
674 | class VCPreLinkEventTool : public VCEventTool | 672 | class VCPreLinkEventTool : public VCEventTool |
675 | { | 673 | { |
676 | public: | 674 | public: |
677 | VCPreLinkEventTool(); | 675 | VCPreLinkEventTool(); |
678 | ~VCPreLinkEventTool(){}; | 676 | ~VCPreLinkEventTool(){} |
679 | }; | 677 | }; |
680 | 678 | ||
681 | class VCConfiguration | 679 | class VCConfiguration |
682 | { | 680 | { |
683 | public: | 681 | public: |
684 | // Functions | 682 | // Functions |
685 | VCConfiguration(); | 683 | VCConfiguration(); |
686 | ~VCConfiguration(){}; | 684 | ~VCConfiguration(){} |
687 | 685 | ||
688 | // Variables | 686 | // Variables |
689 | triState ATLMinimizesCRunTimeLibraryUsage; | 687 | triState ATLMinimizesCRunTimeLibraryUsage; |
690 | triState BuildBrowserInformation; | 688 | triState BuildBrowserInformation; |
@@ -719,9 +717,9 @@ class VCFilter | |||
719 | { | 717 | { |
720 | public: | 718 | public: |
721 | // Functions | 719 | // Functions |
722 | VCFilter(); | 720 | VCFilter(); |
723 | ~VCFilter(){}; | 721 | ~VCFilter(){} |
724 | void generateMOC( QTextStream &strm, QString str ) const; | 722 | void generateMOC( QTextStream &strm, QString str ) const; |
725 | void generateUIC( QTextStream &strm, const QString& str ) const; | 723 | void generateUIC( QTextStream &strm, const QString& str ) const; |
726 | 724 | ||
727 | // Variables | 725 | // Variables |
@@ -738,9 +736,9 @@ class VCProject | |||
738 | { | 736 | { |
739 | public: | 737 | public: |
740 | // Functions | 738 | // Functions |
741 | VCProject(); | 739 | VCProject(); |
742 | ~VCProject(){}; | 740 | ~VCProject(){} |
743 | 741 | ||
744 | // Variables | 742 | // Variables |
745 | QString Name; | 743 | QString Name; |
746 | QString Version; | 744 | QString Version; |