-
Notifications
You must be signed in to change notification settings - Fork 4
/
MultipleResourceCompile.cs
78 lines (68 loc) · 1.46 KB
/
MultipleResourceCompile.cs
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
namespace DSPtoVCXPROJ;
/// <summary>
/// A wrapper around multiple <see cref="ResourceCompile" /> objects, to allow all of them to set the same property all at once.
/// </summary>
class MultipleResourceCompile
{
public List<ResourceCompile> Objects { get; set; } = new();
public void PreprocessorDefinitionsAdd(string value)
{
foreach (var obj in this.Objects)
_ = obj.PreprocessorDefinitions.Add(value);
}
public void UndefinePreprocessorDefinitionsAdd(string value)
{
foreach (var obj in this.Objects)
_ = obj.UndefinePreprocessorDefinitions.Add(value);
}
public string? Culture
{
set
{
foreach (var obj in this.Objects)
obj.Culture = value;
}
}
public void AdditionalIncludeDirectoriesAdd(string value)
{
foreach (var obj in this.Objects)
_ = obj.AdditionalIncludeDirectories.Add(value);
}
public bool? IgnoreStandardIncludePath
{
set
{
foreach (var obj in this.Objects)
obj.IgnoreStandardIncludePath = value;
}
}
public bool? ShowProgress
{
set
{
foreach (var obj in this.Objects)
obj.ShowProgress = value;
}
}
public string? ResourceOutputFileName
{
set
{
foreach (var obj in this.Objects)
obj.ResourceOutputFileName = value;
}
}
public bool? NullTerminateStrings
{
set
{
foreach (var obj in this.Objects)
obj.NullTerminateStrings = value;
}
}
public void AdditionalOptionsAdd(string value)
{
foreach (var obj in this.Objects)
_ = obj.AdditionalOptions.Add(value);
}
}