mirror of https://gitlab.com/basile.b/dexed.git
fix #213, DUB mainSourceFile property is not interpreted correctly
This commit is contained in:
parent
7ed7d51e27
commit
2220f9e070
|
@ -838,7 +838,13 @@ begin
|
||||||
try
|
try
|
||||||
// auto folders & files
|
// auto folders & files
|
||||||
if fJSON.findAny('mainSourceFile', item) then
|
if fJSON.findAny('mainSourceFile', item) then
|
||||||
fSrcs.Add(patchPlateformPath(ExtractRelativepath(fBasePath, item.AsString)));
|
begin
|
||||||
|
pth := item.AsString;
|
||||||
|
if pth.fileExists then
|
||||||
|
fSrcs.Add(patchPlateformPath(ExtractRelativepath(fBasePath, pth)))
|
||||||
|
else if expandFilenameEx(fBasePath, pth).fileExists then
|
||||||
|
fSrcs.Add(pth);
|
||||||
|
end;
|
||||||
tryAddFromFolder(fBasePath + 'src');
|
tryAddFromFolder(fBasePath + 'src');
|
||||||
tryAddFromFolder(fBasePath + 'source');
|
tryAddFromFolder(fBasePath + 'source');
|
||||||
// custom folders
|
// custom folders
|
||||||
|
@ -857,7 +863,13 @@ begin
|
||||||
if conf.isNotNil then
|
if conf.isNotNil then
|
||||||
begin
|
begin
|
||||||
if conf.findAny('mainSourceFile', item) then
|
if conf.findAny('mainSourceFile', item) then
|
||||||
fSrcs.Add(patchPlateformPath(ExtractRelativepath(fBasePath, item.AsString)));
|
begin
|
||||||
|
pth := item.AsString;
|
||||||
|
if pth.fileExists then
|
||||||
|
fSrcs.Add(patchPlateformPath(ExtractRelativepath(fBasePath, pth)))
|
||||||
|
else if expandFilenameEx(fBasePath, pth).fileExists then
|
||||||
|
fSrcs.Add(pth);
|
||||||
|
end;
|
||||||
// custom folders in current config
|
// custom folders in current config
|
||||||
if conf.findArray('sourcePaths', arr) then for i := 0 to arr.Count-1 do
|
if conf.findArray('sourcePaths', arr) then for i := 0 to arr.Count-1 do
|
||||||
begin
|
begin
|
||||||
|
|
Loading…
Reference in New Issue