Browse Source

Removed non generated headers from includes collected.

pull/228/merge
marcos henrich 11 years ago committed by triton
parent
commit
94eda74596
  1. 5
      src/Generator/Generators/CLI/CLITypeReferences.cs
  2. 1
      src/Generator/Options.cs

5
src/Generator/Generators/CLI/CLITypeReferences.cs

@ -115,7 +115,7 @@ namespace CppSharp.Generators.CLI
if (translationUnit.IsSystemHeader) if (translationUnit.IsSystemHeader)
return; return;
if(!decl.IsDeclared) if (!decl.IsGenerated)
return; return;
if(IsBuiltinTypedef(decl)) if(IsBuiltinTypedef(decl))
@ -139,9 +139,6 @@ namespace CppSharp.Generators.CLI
private string GetIncludePath(TranslationUnit translationUnit) private string GetIncludePath(TranslationUnit translationUnit)
{ {
if (!translationUnit.IsGenerated)
return DriverOptions.NoGenIncludePrefix + translationUnit.FileRelativePath;
if (!DriverOptions.UseHeaderDirectories) if (!DriverOptions.UseHeaderDirectories)
return translationUnit.FileName; return translationUnit.FileName;

1
src/Generator/Options.cs

@ -114,7 +114,6 @@ namespace CppSharp
//List of include directories that are used but not generated //List of include directories that are used but not generated
public List<string> NoGenIncludeDirs; public List<string> NoGenIncludeDirs;
public string NoGenIncludePrefix = "";
/// <summary> /// <summary>
/// Wether the generated C# code should be automatically compiled. /// Wether the generated C# code should be automatically compiled.

Loading…
Cancel
Save