mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +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)
|
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);
|
result.Append(configString);
|
||||||
|
|
||||||
bool hadError = false;
|
bool hadError = false;
|
||||||
|
@ -9259,6 +9260,26 @@ namespace IDE
|
||||||
cmdErr = "Invalid number of arguments";
|
cmdErr = "Invalid number of arguments";
|
||||||
case "Var":
|
case "Var":
|
||||||
break ReplaceBlock;
|
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)
|
if (newString == null)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue