mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Can set project macro project name like $(BuildDir ProjName)
This commit is contained in:
parent
fd5756a93b
commit
f9ea536d4a
1 changed files with 22 additions and 1 deletions
|
@ -9164,7 +9164,8 @@ namespace IDE
|
|||
|
||||
public bool DoResolveConfigString(String platformName, Workspace.Options workspaceOptions, Project project, Project.Options options, StringView configString, String error, String result)
|
||||
{
|
||||
int i = result.Length;
|
||||
int startIdx = result.Length;
|
||||
int i = startIdx;
|
||||
result.Append(configString);
|
||||
|
||||
bool hadError = false;
|
||||
|
@ -9259,6 +9260,26 @@ namespace IDE
|
|||
cmdErr = "Invalid number of arguments";
|
||||
case "Var":
|
||||
break ReplaceBlock;
|
||||
case "TargetDir",
|
||||
"TargetPath",
|
||||
"ProjectDir",
|
||||
"BuildDir",
|
||||
"LinkFlags":
|
||||
var selProject = mWorkspace.FindProject(args[0]);
|
||||
if (selProject != null)
|
||||
{
|
||||
Workspace.Options selWorkspaceOptions = gApp.GetCurWorkspaceOptions();
|
||||
Project.Options selOptions = gApp.GetCurProjectOptions(selProject);
|
||||
String selConfigString = scope String()..Append(configString);
|
||||
selConfigString.Remove(i - startIdx + 2 + cmd.Length, parenPos - i - 2 - cmd.Length);
|
||||
|
||||
result.RemoveToEnd(startIdx);
|
||||
return DoResolveConfigString(platformName, selWorkspaceOptions, selProject, selOptions, selConfigString, error, result);
|
||||
}
|
||||
else
|
||||
cmdErr = "Unable to find project";
|
||||
default:
|
||||
cmdErr = "Invalid command";
|
||||
}
|
||||
|
||||
if (newString == null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue