mirror of https://gitlab.com/basile.b/dexed.git
fix, only handle source, not obj/o
This commit is contained in:
parent
4fb2794763
commit
2fbed556fb
|
@ -451,6 +451,8 @@ begin
|
||||||
fDmdProc.CurrentDirectory := extractFilePath(fProj.fileName);
|
fDmdProc.CurrentDirectory := extractFilePath(fProj.fileName);
|
||||||
for i := 0 to fProj.Sources.Count-1 do begin
|
for i := 0 to fProj.Sources.Count-1 do begin
|
||||||
itm := fProj.getAbsoluteSourceName(i);
|
itm := fProj.getAbsoluteSourceName(i);
|
||||||
|
if dExtList.IndexOf(ExtractFileExt(itm)) = -1 then
|
||||||
|
continue;
|
||||||
if srcFname <> itm then fDmdProc.Parameters.Add(itm);
|
if srcFname <> itm then fDmdProc.Parameters.Add(itm);
|
||||||
end;
|
end;
|
||||||
for itm in fProj.currentConfiguration.pathsOptions.importModulePaths do
|
for itm in fProj.currentConfiguration.pathsOptions.importModulePaths do
|
||||||
|
|
|
@ -118,6 +118,7 @@ procedure TCESymbolExpander.updateSymbols;
|
||||||
var
|
var
|
||||||
hasProj: boolean;
|
hasProj: boolean;
|
||||||
hasDoc: boolean;
|
hasDoc: boolean;
|
||||||
|
fname: string;
|
||||||
i: Integer;
|
i: Integer;
|
||||||
const
|
const
|
||||||
na = '``';
|
na = '``';
|
||||||
|
@ -166,7 +167,10 @@ begin
|
||||||
fSymbols[CPFS] := '';
|
fSymbols[CPFS] := '';
|
||||||
for i := 0 to fProj.Sources.Count-1 do
|
for i := 0 to fProj.Sources.Count-1 do
|
||||||
begin
|
begin
|
||||||
fSymbols[CPFS] += fProj.getAbsoluteSourceName(i);
|
fname := fProj.getAbsoluteSourceName(i);
|
||||||
|
if dExtList.IndexOf(ExtractFileExt(fname)) = -1 then
|
||||||
|
continue;
|
||||||
|
fSymbols[CPFS] += fname;
|
||||||
if fProj.Sources.Count > 1 then
|
if fProj.Sources.Count > 1 then
|
||||||
if i <> fProj.Sources.Count-1 then
|
if i <> fProj.Sources.Count-1 then
|
||||||
fSymbols[CPFS] += LineEnding;
|
fSymbols[CPFS] += LineEnding;
|
||||||
|
|
Loading…
Reference in New Issue