mirror of https://gitlab.com/basile.b/dexed.git
fix, files unrelated to D are not anymore accepted
This commit is contained in:
parent
dde0d58921
commit
330190e9a9
|
@ -148,8 +148,13 @@ end;
|
||||||
|
|
||||||
procedure TCEProject.addSource(const aFilename: string);
|
procedure TCEProject.addSource(const aFilename: string);
|
||||||
var
|
var
|
||||||
relSrc, absSrc: string;
|
relSrc, absSrc, ext: string;
|
||||||
begin
|
begin
|
||||||
|
ext := ExtractFileExt(aFilename);
|
||||||
|
if (dExtList.IndexOf(ext) = -1) and
|
||||||
|
(ext <> '.obj') and (ext <> '.o')
|
||||||
|
and (ext <> '.lib') and (ext <> '.a') then
|
||||||
|
exit;
|
||||||
for relSrc in fSrcs do
|
for relSrc in fSrcs do
|
||||||
begin
|
begin
|
||||||
absSrc := expandFilenameEx(fBasePath,relsrc);
|
absSrc := expandFilenameEx(fBasePath,relsrc);
|
||||||
|
|
Loading…
Reference in New Issue