Skip to content

Commit 0602cf4

Browse files
committed
Group all module options.
1 parent c8f8d01 commit 0602cf4

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

src/Generator/Options.cs

+23-19
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ public DriverOptions()
6060
/// </summary>
6161
public bool UnityBuild { get; set; }
6262

63+
#region Module options
64+
6365
public Module SystemModule { get; }
6466
public List<Module> Modules { get; }
6567

@@ -75,33 +77,47 @@ public Module MainModule
7577

7678
public List<string> Headers => MainModule.Headers;
7779

78-
// Library options
7980
public List<string> Libraries => MainModule.Libraries;
80-
public bool CheckSymbols;
8181

8282
public string SharedLibraryName
8383
{
8484
get { return MainModule.SharedLibraryName; }
8585
set { MainModule.SharedLibraryName = value; }
8686
}
8787

88-
// Generator options
89-
public GeneratorKind GeneratorKind;
90-
9188
public string OutputNamespace
9289
{
9390
get { return MainModule.OutputNamespace; }
9491
set { MainModule.OutputNamespace = value; }
9592
}
9693

97-
public string OutputDir;
98-
9994
public string LibraryName
10095
{
10196
get { return MainModule.LibraryName; }
10297
set { MainModule.LibraryName = value; }
10398
}
10499

100+
public string InlinesLibraryName
101+
{
102+
get { return MainModule.InlinesLibraryName; }
103+
set { MainModule.InlinesLibraryName = value; }
104+
}
105+
106+
public string TemplatesLibraryName
107+
{
108+
get { return MainModule.TemplatesLibraryName; }
109+
set { MainModule.TemplatesLibraryName = value; }
110+
}
111+
112+
#endregion
113+
114+
// Generator options
115+
public GeneratorKind GeneratorKind;
116+
117+
public bool CheckSymbols;
118+
119+
public string OutputDir;
120+
105121
public bool OutputInteropIncludes;
106122
public bool GenerateFunctionTemplates;
107123
public bool GenerateInternalImports;
@@ -135,18 +151,6 @@ public string LibraryName
135151

136152
public Encoding Encoding { get; set; }
137153

138-
public string InlinesLibraryName
139-
{
140-
get { return MainModule.InlinesLibraryName; }
141-
set { MainModule.InlinesLibraryName = value; }
142-
}
143-
144-
public string TemplatesLibraryName
145-
{
146-
get { return MainModule.TemplatesLibraryName; }
147-
set { MainModule.TemplatesLibraryName = value; }
148-
}
149-
150154
public bool IsCSharpGenerator => GeneratorKind == GeneratorKind.CSharp;
151155

152156
public bool IsCLIGenerator => GeneratorKind == GeneratorKind.CLI;

0 commit comments

Comments
 (0)