Move native DLL directory to 'lib'

This commit is contained in:
Joshua Granick
2019-04-11 12:09:26 -07:00
parent b78837602e
commit 20f626dab8
15 changed files with 55 additions and 57 deletions

View File

@@ -24,7 +24,7 @@ class SVGExport
if (FileSystem.exists("svg.n"))
{
path = Path.combine(Sys.getCwd(), "../ndll/");
path = Path.combine(Sys.getCwd(), "../lib/");
}
if (path == "")
@@ -37,9 +37,21 @@ class SVGExport
{
var line = StringTools.trim(process.stdout.readLine());
if (StringTools.startsWith(line, "-L "))
if (line.length > 0 && !StringTools.startsWith(line, "-"))
{
path = StringTools.trim(line.substr(2));
path = StringTools.trim(line);
if (FileSystem.exists(Path.combine(path, "../lib")))
{
path = Path.combine(path, "../lib");
}
else
{
path = Path.combine(path, "../ndll");
}
if (!StringTools.endsWith(path, "/"))
{
path += "/";
}
break;
}
}