summaryrefslogtreecommitdiff
path: root/qmake/generators/win32/msvc_objectmodel.h
Unidiff
Diffstat (limited to 'qmake/generators/win32/msvc_objectmodel.h') (more/less context) (show whitespace changes)
-rw-r--r--qmake/generators/win32/msvc_objectmodel.h43
1 files changed, 29 insertions, 14 deletions
diff --git a/qmake/generators/win32/msvc_objectmodel.h b/qmake/generators/win32/msvc_objectmodel.h
index 1dca68d..9ce38d2 100644
--- a/qmake/generators/win32/msvc_objectmodel.h
+++ b/qmake/generators/win32/msvc_objectmodel.h
@@ -1,14 +1,14 @@
1/**************************************************************************** 1/****************************************************************************
2** $Id$
3** 2**
4** Definition of ________ class.
5** 3**
6** Copyright (C) 2002 Trolltech AS. All rights reserved. 4** Definition of VCProject class.
7** 5**
8** This file is part of the network module of the Qt GUI Toolkit. 6** Copyright (C) 2002-2003 Trolltech AS. All rights reserved.
7**
8** This file is part of qmake.
9** 9**
10** This file may be distributed under the terms of the Q Public License 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 11** as defined by Trolltech AS of Norway and appearing in the file
12** LICENSE.QPL included in the packaging of this file. 12** LICENSE.QPL included in the packaging of this file.
13** 13**
14** This file may be distributed and/or modified under the terms of the 14** This file may be distributed and/or modified under the terms of the
@@ -29,12 +29,13 @@
29** See http://www.trolltech.com/gpl/ for GPL licensing information. 29** See http://www.trolltech.com/gpl/ for GPL licensing information.
30** 30**
31** Contact info@trolltech.com if any conditions of this licensing are 31** Contact info@trolltech.com if any conditions of this licensing are
32** not clear to you. 32** not clear to you.
33** 33**
34**********************************************************************/ 34**********************************************************************/
35
35#ifndef __MSVC_OBJECTMODEL_H__ 36#ifndef __MSVC_OBJECTMODEL_H__
36#define __MSVC_OBJECTMODEL_H__ 37#define __MSVC_OBJECTMODEL_H__
37 38
38#include "project.h" 39#include "project.h"
39#include <qstring.h> 40#include <qstring.h>
40#include <qstringlist.h> 41#include <qstringlist.h>
@@ -53,13 +54,14 @@
53 False/True values will be in the output... 54 False/True values will be in the output...
54*/ 55*/
55enum customBuildCheck { 56enum customBuildCheck {
56 none, 57 none,
57 moc, 58 moc,
58 uic, 59 uic,
59 lexyacc 60 lexyacc,
61 resource
60}; 62};
61enum triState { 63enum triState {
62 unset = -1, 64 unset = -1,
63 _False = 0, 65 _False = 0,
64 _True = 1 66 _True = 1
65}; 67};
@@ -111,12 +113,13 @@ enum ConfigurationTypes {
111 typeApplication = 1, 113 typeApplication = 1,
112 typeDynamicLibrary = 2, 114 typeDynamicLibrary = 2,
113 typeStaticLibrary = 4, 115 typeStaticLibrary = 4,
114 typeGeneric = 10 116 typeGeneric = 10
115}; 117};
116enum debugOption { 118enum debugOption {
119 debugUnknown = -1,
117 debugDisabled, 120 debugDisabled,
118 debugOldStyleInfo, 121 debugOldStyleInfo,
119 debugLineInfoOnly, 122 debugLineInfoOnly,
120 debugEnabled, 123 debugEnabled,
121 debugEditAndContinue 124 debugEditAndContinue
122}; 125};
@@ -237,13 +240,14 @@ enum genProxyLanguage {
237 genProxyNative, 240 genProxyNative,
238 genProxyManaged 241 genProxyManaged
239}; 242};
240enum inlineExpansionOption { 243enum inlineExpansionOption {
241 expandDisable, 244 expandDisable,
242 expandOnlyInline, 245 expandOnlyInline,
243 expandAnySuitable 246 expandAnySuitable,
247 expandDefault // Not useful number, but stops the output
244}; 248};
245enum linkIncrementalType { 249enum linkIncrementalType {
246 linkIncrementalDefault, 250 linkIncrementalDefault,
247 linkIncrementalNo, 251 linkIncrementalNo,
248 linkIncrementalYes 252 linkIncrementalYes
249}; 253};
@@ -293,13 +297,14 @@ enum optFoldingType {
293}; 297};
294enum optimizeOption { 298enum optimizeOption {
295 optimizeDisabled, 299 optimizeDisabled,
296 optimizeMinSpace, 300 optimizeMinSpace,
297 optimizeMaxSpeed, 301 optimizeMaxSpeed,
298 optimizeFull, 302 optimizeFull,
299 optimizeCustom 303 optimizeCustom,
304 optimizeDefault // Not useful number, but stops the output
300}; 305};
301enum optRefType { 306enum optRefType {
302 optReferencesDefault, 307 optReferencesDefault,
303 optNoReferences, 308 optNoReferences,
304 optReferences 309 optReferences
305}; 310};
@@ -312,12 +317,13 @@ enum pchOption {
312 pchNone, 317 pchNone,
313 pchCreateUsingSpecific, 318 pchCreateUsingSpecific,
314 pchGenerateAuto, 319 pchGenerateAuto,
315 pchUseUsingSpecific 320 pchUseUsingSpecific
316}; 321};
317enum preprocessOption { 322enum preprocessOption {
323 preprocessUnknown = -1,
318 preprocessNo, 324 preprocessNo,
319 preprocessYes, 325 preprocessYes,
320 preprocessNoLineNumbers 326 preprocessNoLineNumbers
321}; 327};
322enum ProcessorOptimizeOption { 328enum ProcessorOptimizeOption {
323 procOptimizeBlended, 329 procOptimizeBlended,
@@ -327,12 +333,13 @@ enum ProcessorOptimizeOption {
327enum RemoteDebuggerType { 333enum RemoteDebuggerType {
328 DbgLocal, 334 DbgLocal,
329 DbgRemote, 335 DbgRemote,
330 DbgRemoteTCPIP 336 DbgRemoteTCPIP
331}; 337};
332enum runtimeLibraryOption { 338enum runtimeLibraryOption {
339 rtUnknown = -1,
333 rtMultiThreaded, 340 rtMultiThreaded,
334 rtMultiThreadedDebug, 341 rtMultiThreadedDebug,
335 rtMultiThreadedDLL, 342 rtMultiThreadedDLL,
336 rtMultiThreadedDebugDLL, 343 rtMultiThreadedDebugDLL,
337 rtSingleThreaded, 344 rtSingleThreaded,
338 rtSingleThreadedDebug 345 rtSingleThreadedDebug
@@ -376,12 +383,13 @@ enum useOfATL {
376enum useOfMfc { 383enum useOfMfc {
377 useMfcStdWin, 384 useMfcStdWin,
378 useMfcStatic, 385 useMfcStatic,
379 useMfcDynamic 386 useMfcDynamic
380}; 387};
381enum warningLevelOption { 388enum warningLevelOption {
389 warningLevelUnknown = -1,
382 warningLevel_0, 390 warningLevel_0,
383 warningLevel_1, 391 warningLevel_1,
384 warningLevel_2, 392 warningLevel_2,
385 warningLevel_3, 393 warningLevel_3,
386 warningLevel_4 394 warningLevel_4
387}; 395};
@@ -608,15 +616,15 @@ public:
608 VCCustomBuildTool(); 616 VCCustomBuildTool();
609 virtual ~VCCustomBuildTool(){} 617 virtual ~VCCustomBuildTool(){}
610 bool parseOption( const char* ){ return FALSE; }; 618 bool parseOption( const char* ){ return FALSE; };
611 619
612 // Variables 620 // Variables
613 QStringList AdditionalDependencies; 621 QStringList AdditionalDependencies;
614 QString CommandLine; 622 QStringList CommandLine;
615 QString Description; 623 QString Description;
616 QString Outputs; 624 QStringList Outputs;
617 QString ToolName; 625 QString ToolName;
618 QString ToolPath; 626 QString ToolPath;
619}; 627};
620 628
621class VCResourceCompilerTool : public VCToolBase 629class VCResourceCompilerTool : public VCToolBase
622{ 630{
@@ -716,23 +724,30 @@ class VcprojGenerator;
716class VCFilter 724class VCFilter
717{ 725{
718public: 726public:
719 // Functions 727 // Functions
720 VCFilter(); 728 VCFilter();
721 ~VCFilter(){} 729 ~VCFilter(){}
722 void generateMOC( QTextStream &strm, QString str ) const; 730 void addMOCstage( QTextStream &strm, QString str );
723 void generateUIC( QTextStream &strm, const QString& str ) const; 731 void addUICstage( QTextStream &strm, QString str );
732 bool addIMGstage( QTextStream &strm, QString str );
733 void modifyPCHstage( QTextStream &strm, QString str );
724 734
725 // Variables 735 // Variables
726 QString Name; 736 QString Name;
727 QString Filter; 737 QString Filter;
728 triState ParseFiles; 738 triState ParseFiles;
729 QStringList Files; 739 QStringList Files;
730 VcprojGenerator*Project; 740 VcprojGenerator*Project;
731 VCConfiguration*Config; 741 QValueList<VCConfiguration> *Config;
732 customBuildCheckCustomBuild; 742 customBuildCheckCustomBuild;
743 bool useCustomBuildTool;
744 VCCustomBuildTool CustomBuildTool;
745 bool useCompilerTool;
746 VCCLCompilerTool CompilerTool;
747 bool flat_files;
733}; 748};
734 749
735class VCProject 750class VCProject
736{ 751{
737public: 752public:
738 // Functions 753 // Functions
@@ -745,13 +760,13 @@ public:
745 QString ProjectGUID; 760 QString ProjectGUID;
746 QString SccProjectName; 761 QString SccProjectName;
747 QString SccLocalPath; 762 QString SccLocalPath;
748 QString PlatformName; 763 QString PlatformName;
749 764
750 // XML sub-parts 765 // XML sub-parts
751 VCConfigurationConfiguration; 766 QValueList<VCConfiguration> Configuration;
752 VCFilter SourceFiles; 767 VCFilter SourceFiles;
753 VCFilter HeaderFiles; 768 VCFilter HeaderFiles;
754 VCFilter MOCFiles; 769 VCFilter MOCFiles;
755 VCFilter UICFiles; 770 VCFilter UICFiles;
756 VCFilter FormFiles; 771 VCFilter FormFiles;
757 VCFilter TranslationFiles; 772 VCFilter TranslationFiles;
@@ -764,10 +779,10 @@ QTextStream &operator<<( QTextStream &, const VCLinkerTool & );
764QTextStream &operator<<( QTextStream &, const VCMIDLTool & ); 779QTextStream &operator<<( QTextStream &, const VCMIDLTool & );
765QTextStream &operator<<( QTextStream &, const VCCustomBuildTool & ); 780QTextStream &operator<<( QTextStream &, const VCCustomBuildTool & );
766QTextStream &operator<<( QTextStream &, const VCLibrarianTool & ); 781QTextStream &operator<<( QTextStream &, const VCLibrarianTool & );
767QTextStream &operator<<( QTextStream &, const VCResourceCompilerTool & ); 782QTextStream &operator<<( QTextStream &, const VCResourceCompilerTool & );
768QTextStream &operator<<( QTextStream &, const VCEventTool & ); 783QTextStream &operator<<( QTextStream &, const VCEventTool & );
769QTextStream &operator<<( QTextStream &, const VCConfiguration & ); 784QTextStream &operator<<( QTextStream &, const VCConfiguration & );
770QTextStream &operator<<( QTextStream &, const VCFilter & ); 785QTextStream &operator<<( QTextStream &, VCFilter & );
771QTextStream &operator<<( QTextStream &, const VCProject & ); 786QTextStream &operator<<( QTextStream &, const VCProject & );
772 787
773#endif //__MSVC_OBJECTMODEL_H__ 788#endif //__MSVC_OBJECTMODEL_H__