Browse Source

Added an option to compile the generated C# code.

pull/224/head
triton 11 years ago
parent
commit
2426c3eedb
  1. 3
      src/Generator/Driver.cs
  2. 5
      src/Generator/Options.cs

3
src/Generator/Driver.cs

@ -353,6 +353,9 @@ namespace CppSharp @@ -353,6 +353,9 @@ namespace CppSharp
public void CompileCode()
{
if (!Options.CompileCode)
return;
var assemblyFile = string.IsNullOrEmpty(Options.LibraryName) ?
"out.dll" : Options.LibraryName + ".dll";

5
src/Generator/Options.cs

@ -101,6 +101,11 @@ namespace CppSharp @@ -101,6 +101,11 @@ namespace CppSharp
public List<string> NoGenIncludeDirs;
public string NoGenIncludePrefix = "";
/// <summary>
/// Wether the generated C# code should be automatically compiled.
/// </summary>
public bool CompileCode;
/// <summary>
/// Enable this option to enable generation of finalizers.
/// Works in both CLI and C# backends.

Loading…
Cancel
Save