Browse Source

Added an option and support for outputting the needed string interop includes.

pull/1/head
triton 12 years ago
parent
commit
f1eb07267f
  1. 1
      src/Generator/Driver.cs
  2. 4
      src/Generator/Generators/CLI/CLISourcesTemplate.cs

1
src/Generator/Driver.cs

@ -169,6 +169,7 @@ namespace Cxxi
public bool Verbose = false; public bool Verbose = false;
public bool ShowHelpText = false; public bool ShowHelpText = false;
public bool OutputDebug = false; public bool OutputDebug = false;
public bool OutputInteropIncludes = true;
public bool GenerateLibraryNamespace; public bool GenerateLibraryNamespace;
public string OutputNamespace; public string OutputNamespace;
public string OutputDir; public string OutputDir;

4
src/Generator/Generators/CLI/CLISourcesTemplate.cs

@ -24,6 +24,10 @@ namespace Cxxi.Generators.CLI
Options.WrapperSuffix); Options.WrapperSuffix);
GenerateForwardReferenceHeaders(); GenerateForwardReferenceHeaders();
if (Options.OutputInteropIncludes)
WriteLine("#include <clix.hpp>");
NewLine(); NewLine();
WriteLine("using namespace System;"); WriteLine("using namespace System;");

Loading…
Cancel
Save