mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Better handling of disabled projects
This commit is contained in:
parent
9f084649c7
commit
e16be338ea
1 changed files with 12 additions and 9 deletions
|
@ -845,7 +845,7 @@ namespace IDE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool depIsDynLib = (depProject.mGeneralOptions.mTargetType == Project.TargetType.BeefLib) && (depOptions.mBuildOptions.mBuildKind == .DynamicLib);
|
bool depIsDynLib = (depProject.mGeneralOptions.mTargetType == Project.TargetType.BeefLib) && (depOptions?.mBuildOptions.mBuildKind == .DynamicLib);
|
||||||
if (depIsDynLib)
|
if (depIsDynLib)
|
||||||
{
|
{
|
||||||
if (mImpLibMap.TryGetValue(depProject, var libPath))
|
if (mImpLibMap.TryGetValue(depProject, var libPath))
|
||||||
|
@ -858,6 +858,8 @@ namespace IDE
|
||||||
if (depProject.mGeneralOptions.mTargetType == .BeefLib)
|
if (depProject.mGeneralOptions.mTargetType == .BeefLib)
|
||||||
{
|
{
|
||||||
let depProjectOptions = gApp.GetCurProjectOptions(depProject);
|
let depProjectOptions = gApp.GetCurProjectOptions(depProject);
|
||||||
|
if (depProjectOptions != null)
|
||||||
|
{
|
||||||
var linkFlags = scope String();
|
var linkFlags = scope String();
|
||||||
gApp.ResolveConfigString(gApp.mPlatformName, workspaceOptions, depProject, depProjectOptions, depProjectOptions.mBuildOptions.mOtherLinkFlags, "link flags", linkFlags);
|
gApp.ResolveConfigString(gApp.mPlatformName, workspaceOptions, depProject, depProjectOptions, depProjectOptions.mBuildOptions.mOtherLinkFlags, "link flags", linkFlags);
|
||||||
if (!linkFlags.IsWhiteSpace)
|
if (!linkFlags.IsWhiteSpace)
|
||||||
|
@ -871,6 +873,7 @@ namespace IDE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void UpdateCacheStr(Project project, StringView linkLine, Workspace.Options workspaceOptions, Project.Options options, List<String> depPaths, List<String> libPaths)
|
void UpdateCacheStr(Project project, StringView linkLine, Workspace.Options workspaceOptions, Project.Options options, List<String> depPaths, List<String> libPaths)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue