Browse Source

Added workaround for CLR limitation when searching for native libraries.

pull/22/merge
triton 12 years ago
parent
commit
c2f4122414
  1. 7
      src/Generator/Utils/TestsUtils.cs

7
src/Generator/Utils/TestsUtils.cs

@ -22,8 +22,13 @@ namespace CppSharp.Utils @@ -22,8 +22,13 @@ namespace CppSharp.Utils
options.GeneratorKind = kind;
options.OutputDir = "../gen/" + name;
options.GenerateLibraryNamespace = false;
options.SharedLibraryName = name + ".Native";
// Workaround for CLR which does not check for .dll if the
// name already has a dot.
if (System.Type.GetType("Mono.Runtime") == null)
options.SharedLibraryName += ".dll";
options.CheckSymbols = false;
var path = "../../../tests/" + name;

Loading…
Cancel
Save