Browse Source

Group all module options.

pull/750/head
Joao Matos 9 years ago
parent
commit
0602cf403b
  1. 42
      src/Generator/Options.cs

42
src/Generator/Options.cs

@ -60,6 +60,8 @@ namespace CppSharp
/// </summary> /// </summary>
public bool UnityBuild { get; set; } public bool UnityBuild { get; set; }
#region Module options
public Module SystemModule { get; } public Module SystemModule { get; }
public List<Module> Modules { get; } public List<Module> Modules { get; }
@ -75,9 +77,7 @@ namespace CppSharp
public List<string> Headers => MainModule.Headers; public List<string> Headers => MainModule.Headers;
// Library options
public List<string> Libraries => MainModule.Libraries; public List<string> Libraries => MainModule.Libraries;
public bool CheckSymbols;
public string SharedLibraryName public string SharedLibraryName
{ {
@ -85,23 +85,39 @@ namespace CppSharp
set { MainModule.SharedLibraryName = value; } set { MainModule.SharedLibraryName = value; }
} }
// Generator options
public GeneratorKind GeneratorKind;
public string OutputNamespace public string OutputNamespace
{ {
get { return MainModule.OutputNamespace; } get { return MainModule.OutputNamespace; }
set { MainModule.OutputNamespace = value; } set { MainModule.OutputNamespace = value; }
} }
public string OutputDir;
public string LibraryName public string LibraryName
{ {
get { return MainModule.LibraryName; } get { return MainModule.LibraryName; }
set { MainModule.LibraryName = value; } set { MainModule.LibraryName = value; }
} }
public string InlinesLibraryName
{
get { return MainModule.InlinesLibraryName; }
set { MainModule.InlinesLibraryName = value; }
}
public string TemplatesLibraryName
{
get { return MainModule.TemplatesLibraryName; }
set { MainModule.TemplatesLibraryName = value; }
}
#endregion
// Generator options
public GeneratorKind GeneratorKind;
public bool CheckSymbols;
public string OutputDir;
public bool OutputInteropIncludes; public bool OutputInteropIncludes;
public bool GenerateFunctionTemplates; public bool GenerateFunctionTemplates;
public bool GenerateInternalImports; public bool GenerateInternalImports;
@ -135,18 +151,6 @@ namespace CppSharp
public Encoding Encoding { get; set; } public Encoding Encoding { get; set; }
public string InlinesLibraryName
{
get { return MainModule.InlinesLibraryName; }
set { MainModule.InlinesLibraryName = value; }
}
public string TemplatesLibraryName
{
get { return MainModule.TemplatesLibraryName; }
set { MainModule.TemplatesLibraryName = value; }
}
public bool IsCSharpGenerator => GeneratorKind == GeneratorKind.CSharp; public bool IsCSharpGenerator => GeneratorKind == GeneratorKind.CSharp;
public bool IsCLIGenerator => GeneratorKind == GeneratorKind.CLI; public bool IsCLIGenerator => GeneratorKind == GeneratorKind.CLI;

Loading…
Cancel
Save