|
|
|
@ -35,8 +35,7 @@ namespace CppSharp.Utils
@@ -35,8 +35,7 @@ namespace CppSharp.Utils
|
|
|
|
|
testModule.LibraryName, options.GeneratorKind.ToString()); |
|
|
|
|
|
|
|
|
|
if (Platform.IsMacOS) |
|
|
|
|
driver.ParserOptions.TargetTriple = Environment.Is64BitProcess ? |
|
|
|
|
"x86_64-apple-darwin" : "i686-apple-darwin"; |
|
|
|
|
driver.ParserOptions.TargetTriple = "x86_64-apple-darwin"; |
|
|
|
|
|
|
|
|
|
var path = Path.GetFullPath(GetTestsDirectory(name)); |
|
|
|
|
testModule.IncludeDirs.Add(path); |
|
|
|
@ -47,11 +46,11 @@ namespace CppSharp.Utils
@@ -47,11 +46,11 @@ namespace CppSharp.Utils
|
|
|
|
|
var files = Directory.EnumerateFiles(path, "*.h", SearchOption.AllDirectories); |
|
|
|
|
foreach (var file in files) |
|
|
|
|
{ |
|
|
|
|
string includeDir = Path.GetDirectoryName(file); |
|
|
|
|
var includeDir = Path.GetDirectoryName(file); |
|
|
|
|
|
|
|
|
|
if (!testModule.IncludeDirs.Contains(includeDir)) |
|
|
|
|
{ |
|
|
|
|
testModule.IncludeDirs.Add(includeDir); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
testModule.Headers.Add(Path.GetFileName(file)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|