renamed compiler options includefiles to IncludePath

git-svn-id: trunk@9127 -
This commit is contained in:
mattias 2006-04-15 11:52:04 +00:00
parent 6704fbd47c
commit a70721d9df
10 changed files with 70 additions and 70 deletions

View File

@ -302,12 +302,12 @@ begin
AProject.CompilerOptions.OtherUnitFiles:=MinimizeSearchPath( AProject.CompilerOptions.OtherUnitFiles:=MinimizeSearchPath(
RemoveNonExistingPaths(NewSearchPath,AProject.ProjectDirectory)); RemoveNonExistingPaths(NewSearchPath,AProject.ProjectDirectory));
// set include path // set include path
NewSearchPath:=MergeSearchPaths(AProject.CompilerOptions.IncludeFiles, NewSearchPath:=MergeSearchPaths(AProject.CompilerOptions.IncludePath,
AProject.SourceDirectories.CreateSearchPathFromAllFiles); AProject.SourceDirectories.CreateSearchPathFromAllFiles);
NewSearchPath:=RemoveSearchPaths(NewSearchPath, NewSearchPath:=RemoveSearchPaths(NewSearchPath,
'.;'+VirtualDirectory+';'+VirtualTempDir '.;'+VirtualDirectory+';'+VirtualTempDir
+';'+AProject.ProjectDirectory); +';'+AProject.ProjectDirectory);
AProject.CompilerOptions.IncludeFiles:=MinimizeSearchPath( AProject.CompilerOptions.IncludePath:=MinimizeSearchPath(
RemoveNonExistingPaths(NewSearchPath,AProject.ProjectDirectory)); RemoveNonExistingPaths(NewSearchPath,AProject.ProjectDirectory));
// clear caches // clear caches
AProject.DefineTemplates.SourceDirectoriesChanged; AProject.DefineTemplates.SourceDirectoriesChanged;
@ -543,12 +543,12 @@ begin
APackage.CompilerOptions.OtherUnitFiles:=MinimizeSearchPath( APackage.CompilerOptions.OtherUnitFiles:=MinimizeSearchPath(
RemoveNonExistingPaths(NewSearchPath,APackage.Directory)); RemoveNonExistingPaths(NewSearchPath,APackage.Directory));
// set include path // set include path
NewSearchPath:=MergeSearchPaths(APackage.CompilerOptions.IncludeFiles, NewSearchPath:=MergeSearchPaths(APackage.CompilerOptions.IncludePath,
APackage.SourceDirectories.CreateSearchPathFromAllFiles); APackage.SourceDirectories.CreateSearchPathFromAllFiles);
NewSearchPath:=RemoveSearchPaths(NewSearchPath, NewSearchPath:=RemoveSearchPaths(NewSearchPath,
'.;'+VirtualDirectory+';'+VirtualTempDir '.;'+VirtualDirectory+';'+VirtualTempDir
+';'+APackage.Directory); +';'+APackage.Directory);
APackage.CompilerOptions.IncludeFiles:=MinimizeSearchPath( APackage.CompilerOptions.IncludePath:=MinimizeSearchPath(
RemoveNonExistingPaths(NewSearchPath,APackage.Directory)); RemoveNonExistingPaths(NewSearchPath,APackage.Directory));
// clear caches // clear caches
APackage.DefineTemplates.SourceDirectoriesChanged; APackage.DefineTemplates.SourceDirectoriesChanged;
@ -943,7 +943,7 @@ var
begin begin
BasePath:=Options.BaseDirectory; BasePath:=Options.BaseDirectory;
Options.OtherUnitFiles:=CleanProjectSearchPath(Options.OtherUnitFiles); Options.OtherUnitFiles:=CleanProjectSearchPath(Options.OtherUnitFiles);
Options.IncludeFiles:=CleanProjectSearchPath(Options.IncludeFiles); Options.IncludePath:=CleanProjectSearchPath(Options.IncludePath);
Options.Libraries:=CleanProjectSearchPath(Options.Libraries); Options.Libraries:=CleanProjectSearchPath(Options.Libraries);
Options.ObjectPath:=CleanProjectSearchPath(Options.ObjectPath); Options.ObjectPath:=CleanProjectSearchPath(Options.ObjectPath);
Options.SrcPath:=CleanProjectSearchPath(Options.SrcPath); Options.SrcPath:=CleanProjectSearchPath(Options.SrcPath);

View File

@ -564,7 +564,7 @@ var
procedure AddSearchPath(const SearchPath: string); procedure AddSearchPath(const SearchPath: string);
begin begin
CompOpts.IncludeFiles:=MergeSearchPaths(CompOpts.IncludeFiles,SearchPath); CompOpts.IncludePath:=MergeSearchPaths(CompOpts.IncludePath,SearchPath);
CompOpts.Libraries:=MergeSearchPaths(CompOpts.Libraries,SearchPath); CompOpts.Libraries:=MergeSearchPaths(CompOpts.Libraries,SearchPath);
CompOpts.OtherUnitFiles:=MergeSearchPaths(CompOpts.OtherUnitFiles,SearchPath); CompOpts.OtherUnitFiles:=MergeSearchPaths(CompOpts.OtherUnitFiles,SearchPath);
CompOpts.ObjectPath:=MergeSearchPaths(CompOpts.ObjectPath,SearchPath); CompOpts.ObjectPath:=MergeSearchPaths(CompOpts.ObjectPath,SearchPath);
@ -683,8 +683,8 @@ begin
IncludePath:=ExpandDelphiSearchPath(copy(Line,4,length(Line)-4),AProject); IncludePath:=ExpandDelphiSearchPath(copy(Line,4,length(Line)-4),AProject);
if IncludePath<>'' then begin if IncludePath<>'' then begin
DebugLn('ExtractOptionsFromCFG adding IncludePath "',IncludePath,'"'); DebugLn('ExtractOptionsFromCFG adding IncludePath "',IncludePath,'"');
CompOpts.IncludeFiles:= CompOpts.IncludePath:=
MergeSearchPaths(CompOpts.IncludeFiles,IncludePath); MergeSearchPaths(CompOpts.IncludePath,IncludePath);
end; end;
end; end;
end; end;

View File

@ -257,10 +257,10 @@ type
procedure SetBaseDirectory(const AValue: string); override; procedure SetBaseDirectory(const AValue: string); override;
procedure SetCompilerPath(const AValue: String); override; procedure SetCompilerPath(const AValue: String); override;
procedure SetCustomOptions(const AValue: string); override; procedure SetCustomOptions(const AValue: string); override;
procedure SetIncludeFiles(const AValue: String); override; procedure SetIncludePaths(const AValue: String); override;
procedure SetLibraries(const AValue: String); override; procedure SetLibraryPaths(const AValue: String); override;
procedure SetLinkerOptions(const AValue: String); override; procedure SetLinkerOptions(const AValue: String); override;
procedure SetOtherUnitFiles(const AValue: String); override; procedure SetUnitPaths(const AValue: String); override;
procedure SetUnitOutputDir(const AValue: string); override; procedure SetUnitOutputDir(const AValue: string); override;
procedure SetObjectPath(const AValue: string); override; procedure SetObjectPath(const AValue: string); override;
procedure SetSrcPath(const AValue: string); override; procedure SetSrcPath(const AValue: string); override;
@ -819,17 +819,17 @@ begin
end; end;
{------------------------------------------------------------------------------ {------------------------------------------------------------------------------
procedure TBaseCompilerOptions.SetIncludeFiles(const AValue: String); procedure TBaseCompilerOptions.SetIncludePaths(const AValue: String);
------------------------------------------------------------------------------} ------------------------------------------------------------------------------}
procedure TBaseCompilerOptions.SetIncludeFiles(const AValue: String); procedure TBaseCompilerOptions.SetIncludePaths(const AValue: String);
var var
NewValue: String; NewValue: String;
begin begin
NewValue:=ShortenPath(AValue,false); NewValue:=ShortenPath(AValue,false);
if NewValue<>AValue then if NewValue<>AValue then
if fIncludeFiles=NewValue then exit; if fIncludePaths=NewValue then exit;
fIncludeFiles:=NewValue; fIncludePaths:=NewValue;
ParsedOpts.SetUnparsedValue(pcosIncludePath,fIncludeFiles); ParsedOpts.SetUnparsedValue(pcosIncludePath,fIncludePaths);
end; end;
procedure TBaseCompilerOptions.SetCompilerPath(const AValue: String); procedure TBaseCompilerOptions.SetCompilerPath(const AValue: String);
@ -901,14 +901,14 @@ begin
ParsedOpts.SetUnparsedValue(pcosCustomOptions,fCustomOptions); ParsedOpts.SetUnparsedValue(pcosCustomOptions,fCustomOptions);
end; end;
procedure TBaseCompilerOptions.SetLibraries(const AValue: String); procedure TBaseCompilerOptions.SetLibraryPaths(const AValue: String);
var var
NewValue: String; NewValue: String;
begin begin
NewValue:=ShortenPath(AValue,false); NewValue:=ShortenPath(AValue,false);
if fLibraries=NewValue then exit; if fLibraryPaths=NewValue then exit;
fLibraries:=NewValue; fLibraryPaths:=NewValue;
ParsedOpts.SetUnparsedValue(pcosLibraryPath,fLibraries); ParsedOpts.SetUnparsedValue(pcosLibraryPath,fLibraryPaths);
end; end;
procedure TBaseCompilerOptions.SetLinkerOptions(const AValue: String); procedure TBaseCompilerOptions.SetLinkerOptions(const AValue: String);
@ -918,14 +918,14 @@ begin
ParsedOpts.SetUnparsedValue(pcosLinkerOptions,fLinkerOptions); ParsedOpts.SetUnparsedValue(pcosLinkerOptions,fLinkerOptions);
end; end;
procedure TBaseCompilerOptions.SetOtherUnitFiles(const AValue: String); procedure TBaseCompilerOptions.SetUnitPaths(const AValue: String);
var var
NewValue: String; NewValue: String;
begin begin
NewValue:=ShortenPath(AValue,false); NewValue:=ShortenPath(AValue,false);
if fOtherUnitFiles=NewValue then exit; if fUnitPaths=NewValue then exit;
fOtherUnitFiles:=NewValue; fUnitPaths:=NewValue;
ParsedOpts.SetUnparsedValue(pcosUnitPath,fOtherUnitFiles); ParsedOpts.SetUnparsedValue(pcosUnitPath,fUnitPaths);
end; end;
procedure TBaseCompilerOptions.SetUnitOutputDir(const AValue: string); procedure TBaseCompilerOptions.SetUnitOutputDir(const AValue: string);
@ -1010,7 +1010,7 @@ begin
{ SearchPaths } { SearchPaths }
p:=Path+'SearchPaths/'; p:=Path+'SearchPaths/';
IncludeFiles := sp(XMLConfigFile.GetValue(p+'IncludeFiles/Value', '')); IncludePath := sp(XMLConfigFile.GetValue(p+'IncludeFiles/Value', ''));
Libraries := sp(XMLConfigFile.GetValue(p+'Libraries/Value', '')); Libraries := sp(XMLConfigFile.GetValue(p+'Libraries/Value', ''));
OtherUnitFiles := sp(XMLConfigFile.GetValue(p+'OtherUnitFiles/Value', '')); OtherUnitFiles := sp(XMLConfigFile.GetValue(p+'OtherUnitFiles/Value', ''));
UnitOutputDirectory := sp(XMLConfigFile.GetValue(p+'UnitOutputDirectory/Value', '')); UnitOutputDirectory := sp(XMLConfigFile.GetValue(p+'UnitOutputDirectory/Value', ''));
@ -1163,7 +1163,7 @@ begin
{ SearchPaths } { SearchPaths }
p:=Path+'SearchPaths/'; p:=Path+'SearchPaths/';
XMLConfigFile.SetDeleteValue(p+'IncludeFiles/Value', IncludeFiles,''); XMLConfigFile.SetDeleteValue(p+'IncludeFiles/Value', IncludePath,'');
XMLConfigFile.SetDeleteValue(p+'Libraries/Value', Libraries,''); XMLConfigFile.SetDeleteValue(p+'Libraries/Value', Libraries,'');
XMLConfigFile.SetDeleteValue(p+'OtherUnitFiles/Value', OtherUnitFiles,''); XMLConfigFile.SetDeleteValue(p+'OtherUnitFiles/Value', OtherUnitFiles,'');
XMLConfigFile.SetDeleteValue(p+'UnitOutputDirectory/Value', UnitOutputDirectory,''); XMLConfigFile.SetDeleteValue(p+'UnitOutputDirectory/Value', UnitOutputDirectory,'');
@ -2207,7 +2207,7 @@ begin
FModified := false; FModified := false;
// search paths // search paths
IncludeFiles := ''; IncludePath := '';
Libraries := ''; Libraries := '';
OtherUnitFiles := ''; OtherUnitFiles := '';
UnitOutputDirectory := ''; UnitOutputDirectory := '';
@ -2311,9 +2311,9 @@ begin
fLoaded := CompOpts.fLoaded; fLoaded := CompOpts.fLoaded;
// Search Paths // Search Paths
IncludeFiles := CompOpts.fIncludeFiles; IncludePath := CompOpts.fIncludePaths;
Libraries := CompOpts.fLibraries; Libraries := CompOpts.fLibraryPaths;
OtherUnitFiles := CompOpts.fOtherUnitFiles; OtherUnitFiles := CompOpts.fUnitPaths;
UnitOutputDirectory := CompOpts.fUnitOutputDir; UnitOutputDirectory := CompOpts.fUnitOutputDir;
fLCLWidgetType := CompOpts.fLCLWidgetType; fLCLWidgetType := CompOpts.fLCLWidgetType;
ObjectPath := CompOpts.FObjectPath; ObjectPath := CompOpts.FObjectPath;
@ -2406,9 +2406,9 @@ function TBaseCompilerOptions.IsEqual(CompOpts: TBaseCompilerOptions): boolean;
begin begin
Result:= Result:=
// search paths // search paths
(fIncludeFiles = CompOpts.fIncludeFiles) (fIncludePaths = CompOpts.fIncludePaths)
and (fLibraries = CompOpts.fLibraries) and (fLibraryPaths = CompOpts.fLibraryPaths)
and (fOtherUnitFiles = CompOpts.fOtherUnitFiles) and (fUnitPaths = CompOpts.fUnitPaths)
and (fUnitOutputDir = CompOpts.fUnitOutputDir) and (fUnitOutputDir = CompOpts.fUnitOutputDir)
and (FObjectPath = CompOpts.FObjectPath) and (FObjectPath = CompOpts.FObjectPath)
and (FSrcPath = CompOpts.FSrcPath) and (FSrcPath = CompOpts.FSrcPath)

View File

@ -619,7 +619,7 @@ begin
// paths // paths
edtOtherUnits.Text := Options.OtherUnitFiles; edtOtherUnits.Text := Options.OtherUnitFiles;
edtIncludeFiles.Text := Options.IncludeFiles; edtIncludeFiles.Text := Options.IncludePath;
edtLibraries.Text := Options.Libraries; edtLibraries.Text := Options.Libraries;
grpLibraries.Enabled:=EnabledLinkerOpts; grpLibraries.Enabled:=EnabledLinkerOpts;
edtOtherSources.Text := Options.SrcPath; edtOtherSources.Text := Options.SrcPath;
@ -893,7 +893,7 @@ begin
OldCompOpts.Assign(Options); OldCompOpts.Assign(Options);
// paths // paths
Options.IncludeFiles := edtIncludeFiles.Text; Options.IncludePath := edtIncludeFiles.Text;
Options.Libraries := edtLibraries.Text; Options.Libraries := edtLibraries.Text;
Options.OtherUnitFiles := edtOtherUnits.Text; Options.OtherUnitFiles := edtOtherUnits.Text;
Options.SrcPath := edtOtherSources.Text; Options.SrcPath := edtOtherSources.Text;

View File

@ -5150,8 +5150,8 @@ begin
Project1.CompilerOptions.OtherUnitFiles:= Project1.CompilerOptions.OtherUnitFiles:=
RebaseSearchPath(Project1.CompilerOptions.OtherUnitFiles,OldProjectPath, RebaseSearchPath(Project1.CompilerOptions.OtherUnitFiles,OldProjectPath,
Project1.ProjectDirectory,true); Project1.ProjectDirectory,true);
Project1.CompilerOptions.IncludeFiles:= Project1.CompilerOptions.IncludePath:=
RebaseSearchPath(Project1.CompilerOptions.IncludeFiles,OldProjectPath, RebaseSearchPath(Project1.CompilerOptions.IncludePath,OldProjectPath,
Project1.ProjectDirectory,true); Project1.ProjectDirectory,true);
Project1.CompilerOptions.Libraries:= Project1.CompilerOptions.Libraries:=
RebaseSearchPath(Project1.CompilerOptions.Libraries,OldProjectPath, RebaseSearchPath(Project1.CompilerOptions.Libraries,OldProjectPath,

View File

@ -277,12 +277,12 @@ type
procedure SetTargetCPU(const AValue: string); override; procedure SetTargetCPU(const AValue: string); override;
procedure SetTargetOS(const AValue: string); override; procedure SetTargetOS(const AValue: string); override;
procedure SetCustomOptions(const AValue: string); override; procedure SetCustomOptions(const AValue: string); override;
procedure SetIncludeFiles(const AValue: string); override; procedure SetIncludePaths(const AValue: string); override;
procedure SetLibraries(const AValue: string); override; procedure SetLibraryPaths(const AValue: string); override;
procedure SetLinkerOptions(const AValue: string); override; procedure SetLinkerOptions(const AValue: string); override;
procedure SetObjectPath(const AValue: string); override; procedure SetObjectPath(const AValue: string); override;
procedure SetSrcPath(const AValue: string); override; procedure SetSrcPath(const AValue: string); override;
procedure SetOtherUnitFiles(const AValue: string); override; procedure SetUnitPaths(const AValue: string); override;
procedure SetUnitOutputDir(const AValue: string); override; procedure SetUnitOutputDir(const AValue: string); override;
procedure UpdateGlobals; virtual; procedure UpdateGlobals; virtual;
public public
@ -2903,7 +2903,7 @@ procedure TProject.GetVirtualDefines(DefTree: TDefineTree;
begin begin
if (not IsVirtual) then exit; if (not IsVirtual) then exit;
ExtendPath(UnitPathMacroName,CompilerOptions.OtherUnitFiles); ExtendPath(UnitPathMacroName,CompilerOptions.OtherUnitFiles);
ExtendPath(IncludePathMacroName,CompilerOptions.IncludeFiles); ExtendPath(IncludePathMacroName,CompilerOptions.IncludePath);
ExtendPath(SrcPathMacroName,CompilerOptions.SrcPath); ExtendPath(SrcPathMacroName,CompilerOptions.SrcPath);
end; end;
@ -3682,18 +3682,18 @@ begin
Project.DefineTemplates.CustomDefinesChanged; Project.DefineTemplates.CustomDefinesChanged;
end; end;
procedure TProjectCompilerOptions.SetIncludeFiles(const AValue: string); procedure TProjectCompilerOptions.SetIncludePaths(const AValue: string);
begin begin
if IncludeFiles=AValue then exit; if IncludePath=AValue then exit;
InvalidateOptions; InvalidateOptions;
inherited SetIncludeFiles(AValue); inherited SetIncludePaths(AValue);
end; end;
procedure TProjectCompilerOptions.SetLibraries(const AValue: string); procedure TProjectCompilerOptions.SetLibraryPaths(const AValue: string);
begin begin
if Libraries=AValue then exit; if Libraries=AValue then exit;
InvalidateOptions; InvalidateOptions;
inherited SetLibraries(AValue); inherited SetLibraryPaths(AValue);
end; end;
procedure TProjectCompilerOptions.SetLinkerOptions(const AValue: string); procedure TProjectCompilerOptions.SetLinkerOptions(const AValue: string);
@ -3717,11 +3717,11 @@ begin
inherited SetSrcPath(AValue); inherited SetSrcPath(AValue);
end; end;
procedure TProjectCompilerOptions.SetOtherUnitFiles(const AValue: string); procedure TProjectCompilerOptions.SetUnitPaths(const AValue: string);
begin begin
if OtherUnitFiles=AValue then exit; if OtherUnitFiles=AValue then exit;
InvalidateOptions; InvalidateOptions;
inherited SetOtherUnitFiles(AValue); inherited SetUnitPaths(AValue);
end; end;
procedure TProjectCompilerOptions.SetUnitOutputDir(const AValue: string); procedure TProjectCompilerOptions.SetUnitOutputDir(const AValue: string);
@ -3753,7 +3753,7 @@ end;
procedure TProjectCompilerOptions.InvalidateOptions; procedure TProjectCompilerOptions.InvalidateOptions;
begin begin
if (Project=nil) then exit; if (Project=nil) then exit;
// TODO: propagate change to all dependants projects // TODO: propagate change to all dependant projects
end; end;
procedure TProjectCompilerOptions.UpdateGlobals; procedure TProjectCompilerOptions.UpdateGlobals;

View File

@ -63,9 +63,9 @@ type
FModified: boolean; FModified: boolean;
// Paths: // Paths:
fIncludeFiles: String; fIncludePaths: String;
fLibraries: String; fLibraryPaths: String;
fOtherUnitFiles: String; fUnitPaths: String;
FObjectPath: string; FObjectPath: string;
FSrcPath: string; FSrcPath: string;
fUnitOutputDir: string; fUnitOutputDir: string;
@ -153,10 +153,10 @@ type
procedure SetBaseDirectory(const AValue: string); virtual; abstract; procedure SetBaseDirectory(const AValue: string); virtual; abstract;
procedure SetCompilerPath(const AValue: String); virtual; abstract; procedure SetCompilerPath(const AValue: String); virtual; abstract;
procedure SetCustomOptions(const AValue: string); virtual; abstract; procedure SetCustomOptions(const AValue: string); virtual; abstract;
procedure SetIncludeFiles(const AValue: String); virtual; abstract; procedure SetIncludePaths(const AValue: String); virtual; abstract;
procedure SetLibraries(const AValue: String); virtual; abstract; procedure SetLibraryPaths(const AValue: String); virtual; abstract;
procedure SetLinkerOptions(const AValue: String); virtual; abstract; procedure SetLinkerOptions(const AValue: String); virtual; abstract;
procedure SetOtherUnitFiles(const AValue: String); virtual; abstract; procedure SetUnitPaths(const AValue: String); virtual; abstract;
procedure SetUnitOutputDir(const AValue: string); virtual; abstract; procedure SetUnitOutputDir(const AValue: string); virtual; abstract;
procedure SetObjectPath(const AValue: string); virtual; abstract; procedure SetObjectPath(const AValue: string); virtual; abstract;
procedure SetSrcPath(const AValue: string); virtual; abstract; procedure SetSrcPath(const AValue: string); virtual; abstract;
@ -173,9 +173,9 @@ type
property OnModified: TNotifyEvent read FOnModified write FOnModified; property OnModified: TNotifyEvent read FOnModified write FOnModified;
// search paths: // search paths:
property IncludeFiles: String read fIncludeFiles write SetIncludeFiles; property IncludePath: String read fIncludePaths write SetIncludePaths;
property Libraries: String read fLibraries write SetLibraries; property Libraries: String read fLibraryPaths write SetLibraryPaths;
property OtherUnitFiles: String read fOtherUnitFiles write SetOtherUnitFiles; property OtherUnitFiles: String read fUnitPaths write SetUnitPaths;
property ObjectPath: string read FObjectPath write SetObjectPath; property ObjectPath: string read FObjectPath write SetObjectPath;
property SrcPath: string read FSrcPath write SetSrcPath; property SrcPath: string read FSrcPath write SetSrcPath;
property UnitOutputDirectory: string read fUnitOutputDir write SetUnitOutputDir; property UnitOutputDirectory: string read fUnitOutputDir write SetUnitOutputDir;

View File

@ -354,12 +354,12 @@ type
procedure SetLazPackage(const AValue: TLazPackage); procedure SetLazPackage(const AValue: TLazPackage);
procedure SetModified(const NewValue: boolean); override; procedure SetModified(const NewValue: boolean); override;
procedure SetCustomOptions(const AValue: string); override; procedure SetCustomOptions(const AValue: string); override;
procedure SetIncludeFiles(const AValue: string); override; procedure SetIncludePaths(const AValue: string); override;
procedure SetLibraries(const AValue: string); override; procedure SetLibraryPaths(const AValue: string); override;
procedure SetLinkerOptions(const AValue: string); override; procedure SetLinkerOptions(const AValue: string); override;
procedure SetObjectPath(const AValue: string); override; procedure SetObjectPath(const AValue: string); override;
procedure SetSrcPath(const AValue: string); override; procedure SetSrcPath(const AValue: string); override;
procedure SetOtherUnitFiles(const AValue: string); override; procedure SetUnitPaths(const AValue: string); override;
procedure SetUnitOutputDir(const AValue: string); override; procedure SetUnitOutputDir(const AValue: string); override;
public public
constructor Create(const AOwner: TObject); override; constructor Create(const AOwner: TObject); override;
@ -3301,18 +3301,18 @@ begin
LazPackage.DefineTemplates.CustomDefinesChanged; LazPackage.DefineTemplates.CustomDefinesChanged;
end; end;
procedure TPkgCompilerOptions.SetIncludeFiles(const AValue: string); procedure TPkgCompilerOptions.SetIncludePaths(const AValue: string);
begin begin
if IncludeFiles=AValue then exit; if IncludePath=AValue then exit;
InvalidateOptions; InvalidateOptions;
inherited SetIncludeFiles(AValue); inherited SetIncludePaths(AValue);
end; end;
procedure TPkgCompilerOptions.SetLibraries(const AValue: string); procedure TPkgCompilerOptions.SetLibraryPaths(const AValue: string);
begin begin
if Libraries=AValue then exit; if Libraries=AValue then exit;
InvalidateOptions; InvalidateOptions;
inherited SetLibraries(AValue); inherited SetLibraryPaths(AValue);
end; end;
procedure TPkgCompilerOptions.SetLinkerOptions(const AValue: string); procedure TPkgCompilerOptions.SetLinkerOptions(const AValue: string);
@ -3336,11 +3336,11 @@ begin
inherited SetSrcPath(AValue); inherited SetSrcPath(AValue);
end; end;
procedure TPkgCompilerOptions.SetOtherUnitFiles(const AValue: string); procedure TPkgCompilerOptions.SetUnitPaths(const AValue: string);
begin begin
if OtherUnitFiles=AValue then exit; if OtherUnitFiles=AValue then exit;
InvalidateOptions; InvalidateOptions;
inherited SetOtherUnitFiles(AValue); inherited SetUnitPaths(AValue);
end; end;
procedure TPkgCompilerOptions.SetUnitOutputDir(const AValue: string); procedure TPkgCompilerOptions.SetUnitOutputDir(const AValue: string);

View File

@ -1942,7 +1942,7 @@ begin
// the unit is in untipath, but the include file not in the incpath // the unit is in untipath, but the include file not in the incpath
// -> auto extend the include path // -> auto extend the include path
with LazPackage.CompilerOptions do with LazPackage.CompilerOptions do
IncludeFiles:=MergeSearchPaths(IncludeFiles,ShortIncDirectory); IncludePath:=MergeSearchPaths(IncludePath,ShortIncDirectory);
end; end;
end; end;

View File

@ -977,7 +977,7 @@ begin
+'$(LazarusDir)/lcl/units/$(TargetCPU)-$(TargetOS)/$(LCLWidgetType)'); +'$(LazarusDir)/lcl/units/$(TargetCPU)-$(TargetOS)/$(LCLWidgetType)');
UsageOptions.CustomOptions:='-dLCL -dLCL$(LCLWidgetType)'; UsageOptions.CustomOptions:='-dLCL -dLCL$(LCLWidgetType)';
// add include path // add include path
CompilerOptions.IncludeFiles:=SetDirSeparators( CompilerOptions.IncludePath:=SetDirSeparators(
'$(LazarusDir)/lcl/include;$(LazarusDir)/lcl/interfaces/$(LCLWidgetType)'); '$(LazarusDir)/lcl/include;$(LazarusDir)/lcl/interfaces/$(LCLWidgetType)');
AddLCLLinkPaths(UsageOptions); AddLCLLinkPaths(UsageOptions);