blob: 09c728e030519b4925ffda548ea4d4fa9d347576 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
using System.Collections.Generic;
using Mono.Linker.Tests.Extensions;
namespace Mono.Linker.Tests.TestCasesRunner {
public class LinkerArgumentBuilder {
private readonly List<string> _arguments = new List<string> ();
public virtual void AddSearchDirectory (NPath directory)
{
Append ("-d");
Append (directory.ToString ());
}
public virtual void AddOutputDirectory (NPath directory)
{
Append ("-o");
Append (directory.ToString ());
}
public virtual void AddLinkXmlFile (NPath path)
{
Append ("-x");
Append (path.ToString ());
}
public virtual void AddCoreLink (string value)
{
Append ("-c");
Append (value);
}
public virtual void IncludeBlacklist (string value)
{
Append ("-z");
Append (value);
}
public virtual void AddIl8n (string value)
{
Append ("-l");
Append (value);
}
public string [] ToArgs ()
{
return _arguments.ToArray ();
}
protected void Append (string arg)
{
_arguments.Add (arg);
}
}
}
|