2using System.Collections.Generic;
4using System.Threading.Tasks;
22 if (!project.EndsWith(
".uproject",
true,
null))
24 throw new ArgumentException(
"Project file path specified is not a *.uproject");
28 AppendArgument(
new(
"-project", project, Meta:
new(AllowMultiple:
true)));
32 AppendArgument(project);
68 AppendArgument($
"-Target={name} {platform} {string.Join('+', config)}",
new(IsRawText:
true));
72 public UbtConfig Targets(params
object[] target) => Targets(target.AsEnumerable());
73 public UbtConfig Targets(IEnumerable<object> target)
75 AppendArgument(
string.Join(
'+', target),
new(IsRawText:
true));
79 public UbtConfig TargetPlatforms(params
object[] platform) => TargetPlatforms(platform.AsEnumerable());
80 public UbtConfig TargetPlatforms(IEnumerable<object> platform)
82 AppendArgument(
string.Join(
'+', platform),
new(IsRawText:
true));
86 public UbtConfig Configurations(params
object[] config) => Configurations(config.AsEnumerable());
87 public UbtConfig Configurations(IEnumerable<object> config)
89 AppendArgument(
string.Join(
'+', config),
new(IsRawText:
true));