mirror of https://github.com/mono/CppSharp.git
2 changed files with 87 additions and 38 deletions
@ -0,0 +1,60 @@
@@ -0,0 +1,60 @@
|
||||
using System.Collections.Generic; |
||||
|
||||
namespace CppSharp |
||||
{ |
||||
public class Module |
||||
{ |
||||
public Module() |
||||
{ |
||||
Headers = new List<string>(); |
||||
Libraries = new List<string>(); |
||||
} |
||||
|
||||
public List<string> Headers { get; private set; } |
||||
public List<string> Libraries { get; private set; } |
||||
public string OutputNamespace { get; set; } |
||||
|
||||
public string SharedLibraryName |
||||
{ |
||||
get |
||||
{ |
||||
if (string.IsNullOrEmpty(sharedLibraryName)) |
||||
return LibraryName; |
||||
return sharedLibraryName; |
||||
} |
||||
set { sharedLibraryName = value; } |
||||
} |
||||
|
||||
public string InlinesLibraryName |
||||
{ |
||||
get |
||||
{ |
||||
if (string.IsNullOrEmpty(inlinesLibraryName)) |
||||
{ |
||||
return string.Format("{0}-inlines", OutputNamespace); |
||||
} |
||||
return inlinesLibraryName; |
||||
} |
||||
set { inlinesLibraryName = value; } |
||||
} |
||||
|
||||
public string TemplatesLibraryName |
||||
{ |
||||
get |
||||
{ |
||||
if (string.IsNullOrEmpty(templatesLibraryName)) |
||||
{ |
||||
return string.Format("{0}-templates", OutputNamespace); |
||||
} |
||||
return templatesLibraryName; |
||||
} |
||||
set { templatesLibraryName = value; } |
||||
} |
||||
|
||||
public string LibraryName { get; set; } |
||||
|
||||
private string sharedLibraryName; |
||||
private string inlinesLibraryName; |
||||
private string templatesLibraryName; |
||||
} |
||||
} |
||||
Loading…
Reference in new issue