IDEIntf: started build mode

git-svn-id: trunk@17978 -
This commit is contained in:
mattias 2008-12-29 11:57:07 +00:00
parent df78688646
commit 00ba61e4c2

View File

@ -93,7 +93,8 @@ const
type type
TLazCompOptConditionals = class; TLazCompOptConditionals = class;
{ TCompOptCondNode } { TCompOptCondNode - a node in the conditional tree of the compiler options
of a project or package }
TCompOptCondNode = class TCompOptCondNode = class
private private
@ -132,7 +133,9 @@ type
property Index: integer read GetIndex write SetIndex; property Index: integer read GetIndex write SetIndex;
end; end;
{ TLazCompOptConditionals } { TLazCompOptConditionals
- conditional compiler options
- additions dependending }
TLazCompOptConditionals = class TLazCompOptConditionals = class
private private
@ -145,6 +148,29 @@ type
property Root: TCompOptCondNode read FRoot write FRoot; property Root: TCompOptCondNode read FRoot write FRoot;
end; end;
{ TLazBuildMode }
TLazBuildMode = class
protected
FDefaultValue: TLazCompOptConditionals;
FIdentifier: string;
FLocalizedName: string;
FLocalizedValues: TStrings;
FValues: TStrings;
procedure SetIdentifier(const AValue: string); virtual; abstract;
procedure SetLocalizedName(const AValue: string); virtual; abstract;
procedure SetLocalizedValues(const AValue: TStrings); virtual; abstract;
procedure SetValues(const AValue: TStrings); virtual; abstract;
public
destructor Destroy; override;
procedure Assign(Source: TLazBuildMode); virtual; abstract;
property Identifier: string read FIdentifier write SetIdentifier;
property LocalizedName: string read FLocalizedName write SetLocalizedName;
property Values: TStrings read FValues write SetValues;
property LocalizedValues: TStrings read FLocalizedValues write SetLocalizedValues;
property DefaultValue: TLazCompOptConditionals read FDefaultValue;
end;
{ TLazCompilerOptions } { TLazCompilerOptions }
TCompilationExecutableType = ( TCompilationExecutableType = (
@ -1571,6 +1597,14 @@ begin
inherited Destroy; inherited Destroy;
end; end;
{ TLazBuildMode }
destructor TLazBuildMode.Destroy;
begin
FreeAndNil(FDefaultValue);
inherited Destroy;
end;
initialization initialization
ProjectFileDescriptors:=nil; ProjectFileDescriptors:=nil;