mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Check for custom build properties in DoResolveConfigString.
This commit is contained in:
parent
d929e1bfe9
commit
fe967e6a04
1 changed files with 8 additions and 3 deletions
|
@ -10942,6 +10942,13 @@ namespace IDE
|
|||
}
|
||||
case "BeefPath":
|
||||
newString = gApp.mInstallDir;
|
||||
default:
|
||||
// Check if any custom properties match the string.
|
||||
if (CustomBuildProperties.Contains(replaceStr))
|
||||
{
|
||||
newString = scope:ReplaceBlock String();
|
||||
newString.Append(CustomBuildProperties.Get(replaceStr));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -11062,9 +11069,7 @@ namespace IDE
|
|||
String errorString = scope String();
|
||||
if (!DoResolveConfigString(platformName, workspaceOptions, project, options, configString, errorString, outResult))
|
||||
{
|
||||
if (!CustomBuildProperties.Contains(errorString))
|
||||
OutputErrorLine("Invalid macro in {0}: {1}", errorContext, errorString);
|
||||
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue