mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 12:40:02 +02:00
Remove IdeIntf dependency from CompilerOptions.
This commit is contained in:
parent
304ea4ee5b
commit
68e341be20
@ -540,7 +540,7 @@ procedure TLazCompilationToolOptions.SetParsers(const AValue: TStrings);
|
||||
begin
|
||||
if FParsers.Equals(AValue) then Exit;
|
||||
{$IFDEF VerboseIDEModified}
|
||||
debugln(['TCompilationToolOptions.SetParsers ',AValue.Text]);
|
||||
debugln(['TLazCompilationToolOptions.SetParsers ',AValue.Text]);
|
||||
{$ENDIF}
|
||||
FParsers.Assign(AValue);
|
||||
Owner.IncreaseChangeStamp;
|
||||
|
@ -51,8 +51,6 @@ uses
|
||||
KeywordFuncLists, BasicCodeTools, LinkScanner, DirectoryCacher,
|
||||
// BuildIntf
|
||||
ProjectIntf, MacroIntf, IDEExternToolIntf, CompOptsIntf, IDEOptionsIntf,
|
||||
// IDEIntf
|
||||
SrcEditorIntf,
|
||||
// IdeConfig
|
||||
LazConf, EnvironmentOpts, SearchPathProcs, IdeXmlConfigProcs, TransferMacros,
|
||||
IDEProcs, ModeMatrixOpts, CompOptsModes,
|
||||
@ -167,6 +165,7 @@ type
|
||||
FParsedCommandStamp: integer;
|
||||
FParsedCommand: string;
|
||||
protected
|
||||
procedure DoClearErrorLines; virtual;
|
||||
procedure SetCommand(AValue: string); override;
|
||||
procedure SubstituteMacros(var s: string); virtual;
|
||||
public
|
||||
@ -3157,6 +3156,11 @@ end;
|
||||
|
||||
{ TCompilationToolOptions }
|
||||
|
||||
procedure TCompilationToolOptions.DoClearErrorLines;
|
||||
begin
|
||||
; // Do nothing.
|
||||
end;
|
||||
|
||||
procedure TCompilationToolOptions.SetCommand(AValue: string);
|
||||
begin
|
||||
inherited SetCommand(AValue);
|
||||
@ -3282,9 +3286,7 @@ var
|
||||
ExtTool: TAbstractExternalTool;
|
||||
begin
|
||||
if Command='' then exit(mrOk);
|
||||
if SourceEditorManagerIntf<>nil then
|
||||
SourceEditorManagerIntf.ClearErrorLines;
|
||||
|
||||
DoClearErrorLines;
|
||||
ExtTool:=CreateExtTool(WorkingDir,ToolTitle,CompileHint);
|
||||
if ExtTool=nil then exit(mrOk);
|
||||
ExtTool.Reference(Self,ClassName);
|
||||
|
@ -40,7 +40,7 @@ uses
|
||||
Graphics,
|
||||
// LazUtils
|
||||
LazFileUtils, LazFileCache, Laz2_XMLCfg, LazLoggerBase,
|
||||
// IdeIntf
|
||||
// BuildIntf
|
||||
ProjectResourcesIntf;
|
||||
|
||||
type
|
||||
|
@ -35,13 +35,15 @@ unit ProjectUserResources;
|
||||
interface
|
||||
|
||||
uses
|
||||
// RTL + LCL
|
||||
// RTL + FCL
|
||||
Classes, SysUtils,
|
||||
resource, bitmapresource, groupresource, groupiconresource, groupcursorresource,
|
||||
// LazUtils
|
||||
LazFileUtils, LazUTF8, Laz2_XMLCfg, LazLoggerBase,
|
||||
// BuildIntf
|
||||
ProjectResourcesIntf, MacroIntf, IDEExternToolIntf,
|
||||
// IdeIntf
|
||||
ProjectResourcesIntf, IDEMsgIntf, MacroIntf, IDEExternToolIntf,
|
||||
IDEMsgIntf,
|
||||
// IDE
|
||||
LazarusIDEStrConsts;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user