mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-13 13:54:11 +02:00
Performing recursive search for libs
This commit is contained in:
parent
e8678b8b82
commit
e0588e83aa
1 changed files with 38 additions and 29 deletions
|
@ -63,21 +63,8 @@ namespace IDE
|
||||||
regEntry.mLocation.Parse(data).IgnoreError();
|
regEntry.mLocation.Parse(data).IgnoreError();
|
||||||
}
|
}
|
||||||
|
|
||||||
for (data.Enumerate("UnversionedLibDirs"))
|
void AddFromLibraryPath(String absPath)
|
||||||
{
|
{
|
||||||
String dirStr = scope .();
|
|
||||||
data.GetCurString(dirStr);
|
|
||||||
|
|
||||||
if (!dirStr.IsWhiteSpace)
|
|
||||||
{
|
|
||||||
LibDirectory libDir = new .();
|
|
||||||
libDir.mPath = new String(dirStr);
|
|
||||||
libDir.mConfigFile = configFile;
|
|
||||||
mLibDirectories.Add(libDir);
|
|
||||||
|
|
||||||
String absPath = scope .();
|
|
||||||
Path.GetAbsolutePath(libDir.mPath, configFile.mConfigDir, absPath);
|
|
||||||
|
|
||||||
for (var entry in Directory.EnumerateDirectories(absPath))
|
for (var entry in Directory.EnumerateDirectories(absPath))
|
||||||
{
|
{
|
||||||
String projName = scope .();
|
String projName = scope .();
|
||||||
|
@ -106,10 +93,32 @@ namespace IDE
|
||||||
using (data.Open("Location"))
|
using (data.Open("Location"))
|
||||||
regEntry.mLocation.SetPath(filePath);
|
regEntry.mLocation.SetPath(filePath);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
AddFromLibraryPath(filePath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (data.Enumerate("UnversionedLibDirs"))
|
||||||
|
{
|
||||||
|
String dirStr = scope .();
|
||||||
|
data.GetCurString(dirStr);
|
||||||
|
|
||||||
|
if (!dirStr.IsWhiteSpace)
|
||||||
|
{
|
||||||
|
LibDirectory libDir = new .();
|
||||||
|
libDir.mPath = new String(dirStr);
|
||||||
|
libDir.mConfigFile = configFile;
|
||||||
|
mLibDirectories.Add(libDir);
|
||||||
|
|
||||||
|
String absPath = scope .();
|
||||||
|
Path.GetAbsolutePath(libDir.mPath, configFile.mConfigDir, absPath);
|
||||||
|
|
||||||
|
AddFromLibraryPath(absPath);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
mConfigFiles.Add(configFile);
|
mConfigFiles.Add(configFile);
|
||||||
|
|
||||||
return .Ok;
|
return .Ok;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue