mirror of https://gitlab.com/basile.b/dexed.git
added project-specific -I to dcd -I
This commit is contained in:
parent
4caebcfa57
commit
4ea86602a2
|
@ -103,6 +103,7 @@ end;
|
||||||
procedure TCEDcdWrapper.projChanged(aProject: TCEProject);
|
procedure TCEDcdWrapper.projChanged(aProject: TCEProject);
|
||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
|
fold: string;
|
||||||
begin
|
begin
|
||||||
if fProj <> aProject then
|
if fProj <> aProject then
|
||||||
exit;
|
exit;
|
||||||
|
@ -111,6 +112,12 @@ begin
|
||||||
//
|
//
|
||||||
for i:= 0 to fProj.Sources.Count-1 do
|
for i:= 0 to fProj.Sources.Count-1 do
|
||||||
addImportFolder(extractFilePath(fProj.getAbsoluteSourceName(i)));
|
addImportFolder(extractFilePath(fProj.getAbsoluteSourceName(i)));
|
||||||
|
for i := 0 to fProj.currentConfiguration.pathsOptions.includes.Count-1 do
|
||||||
|
begin
|
||||||
|
fold := fProj.currentConfiguration.pathsOptions.includes.Strings[i];
|
||||||
|
if DirectoryExists(fold) then
|
||||||
|
addImportFolder(fold);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCEDcdWrapper.projClosing(aProject: TCEProject);
|
procedure TCEDcdWrapper.projClosing(aProject: TCEProject);
|
||||||
|
|
Loading…
Reference in New Issue