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

@@ -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;
}
}

View File

@@ -17,30 +17,15 @@ class RunScript
toolsDirectory = Path.combine(limeDirectory, "../tools");
}
/*var extendedToolsDirectory = Haxelib.getPath (new Haxelib ("lime-extended"), false);
if (extendedToolsDirectory != null && extendedToolsDirectory != "") {
var buildScript = File.getContent (Path.combine (extendedToolsDirectory, "tools.hxml"));
buildScript = StringTools.replace (buildScript, "\r\n", "\n");
buildScript = StringTools.replace (buildScript, "\n", " ");
System.runCommand (toolsDirectory, "haxe", buildScript.split (" "));
} else {*/
System.runCommand(toolsDirectory, "haxe", ["tools.hxml"]);
// }
if (!rebuildBinaries) return;
var platforms = ["Windows", "Mac", "Mac64", "Linux", "Linux64"];
for (platform in platforms)
{
var source = Path.combine(limeDirectory, "ndll/" + platform + "/lime.ndll");
// var target = Path.combine (toolsDirectory, "ndll/" + platform + "/lime.ndll");
var source = Path.combine(limeDirectory, "lib/" + platform + "/lime.ndll");
if (!FileSystem.exists(source))
{
@@ -91,10 +76,6 @@ class RunScript
Log.warn("", "Source path \"" + source + "\" does not exist");
}
}
else
{
// System.copyIfNewer (source, target);
}
}
}

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;
}
}

View File

@@ -56,16 +56,6 @@ class CreateTemplate
FileSystem.rename(title + "/dependencies/android/src/main/java/org/haxe/extension/Extension.java",
title + "/dependencies/android/src/main/java/org/haxe/extension/" + file + ".java");
}
if (FileSystem.exists(title))
{
System.mkdir(title + "/ndll");
System.mkdir(title + "/ndll/Linux");
System.mkdir(title + "/ndll/Linux64");
System.mkdir(title + "/ndll/Mac");
System.mkdir(title + "/ndll/Mac64");
System.mkdir(title + "/ndll/Windows");
}
}
public static function createProject(words:Array<String>, userDefines:Map<String, Dynamic>, overrides:HXProject):Void