mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
2.2 KiB
73 lines
2.2 KiB
using System.Collections.Generic; |
|
|
|
namespace CppSharp.AST |
|
{ |
|
public class Module |
|
{ |
|
public Module() |
|
{ |
|
IncludeDirs = new List<string>(); |
|
Headers = new List<string>(); |
|
LibraryDirs = new List<string>(); |
|
Libraries = new List<string>(); |
|
Defines = new List<string>(); |
|
Undefines = new List<string>(); |
|
Units = new List<TranslationUnit>(); |
|
CodeFiles = new List<string>(); |
|
} |
|
|
|
public List<string> IncludeDirs { get; private set; } |
|
public List<string> Headers { get; private set; } |
|
public List<string> LibraryDirs { get; set; } |
|
public List<string> Libraries { get; private set; } |
|
public List<string> Defines { get; set; } |
|
public List<string> Undefines { get; set; } |
|
public string OutputNamespace { get; set; } |
|
|
|
public List<TranslationUnit> Units { get; private set; } |
|
public List<string> CodeFiles { get; private 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; |
|
} |
|
}
|
|
|