Move native DLL directory to 'lib'
This commit is contained in:
@@ -435,11 +435,11 @@ class CommandLineTools
|
||||
|
||||
if (FileSystem.exists("tools.n"))
|
||||
{
|
||||
path = Path.combine(Sys.getCwd(), "../ndll/");
|
||||
path = Path.combine(Sys.getCwd(), "../lib/");
|
||||
}
|
||||
else if (FileSystem.exists("run.n"))
|
||||
{
|
||||
path = Sys.getCwd() + "/ndll/";
|
||||
path = Sys.getCwd() + "/lib/";
|
||||
}
|
||||
|
||||
if (path == "")
|
||||
@@ -452,9 +452,21 @@ class CommandLineTools
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user