Browse Source

Removed a missed piece of obsolete code.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/778/merge
Dimitar Dobrev 8 years ago
parent
commit
66fdc64828
  1. 8
      tests/NamespacesDerived/NamespacesDerived.cs

8
tests/NamespacesDerived/NamespacesDerived.cs

@ -19,17 +19,15 @@ namespace CppSharp.Tests @@ -19,17 +19,15 @@ namespace CppSharp.Tests
driver.Options.Modules[1].IncludeDirs.Add(GetTestsDirectory("NamespacesDerived"));
var @base = "NamespacesBase";
var module = new Module();
var module = driver.Options.AddModule(@base);
module.IncludeDirs.Add(Path.GetFullPath(GetTestsDirectory(@base)));
module.Headers.Add(string.Format("{0}.h", @base));
module.Headers.Add($"{@base}.h");
module.OutputNamespace = @base;
module.SharedLibraryName = string.Format("{0}.Native", @base);
module.SharedLibraryName = $"{@base}.Native";
// Workaround for CLR which does not check for .dll if the name already has a dot
if (System.Type.GetType("Mono.Runtime") == null)
module.SharedLibraryName += ".dll";
module.LibraryName = @base;
driver.Options.Modules[1].Dependencies.Add(module);
driver.Options.Modules.Insert(1, module);
}
public override void Postprocess(Driver driver, ASTContext ctx)

Loading…
Cancel
Save