Default hlc target directory is not the same as hl
This commit is contained in:
@@ -160,7 +160,13 @@ class LinuxPlatform extends PlatformTarget
|
||||
targetType = "cpp";
|
||||
}
|
||||
|
||||
targetDirectory = Path.combine(project.app.path, project.config.getString("linux.output-directory", targetType == "cpp" ? "linux" : targetType));
|
||||
var defaultTargetDirectory = switch (targetType)
|
||||
{
|
||||
case "cpp": "linux";
|
||||
case "hl": project.targetFlags.exists("hlc") ? "hlc" : targetType;
|
||||
default: targetType;
|
||||
}
|
||||
targetDirectory = Path.combine(project.app.path, project.config.getString("linux.output-directory", defaultTargetDirectory));
|
||||
targetDirectory = StringTools.replace(targetDirectory, "arch64", is64 ? "64" : "");
|
||||
applicationDirectory = targetDirectory + "/bin/";
|
||||
executablePath = Path.combine(applicationDirectory, project.app.file);
|
||||
|
||||
@@ -147,7 +147,13 @@ class MacPlatform extends PlatformTarget
|
||||
targetType = "cpp";
|
||||
}
|
||||
|
||||
targetDirectory = Path.combine(project.app.path, project.config.getString("mac.output-directory", targetType == "cpp" ? "macos" : targetType));
|
||||
var defaultTargetDirectory = switch (targetType)
|
||||
{
|
||||
case "cpp": "macos";
|
||||
case "hl": project.targetFlags.exists("hlc") ? "hlc" : targetType;
|
||||
default: targetType;
|
||||
}
|
||||
targetDirectory = Path.combine(project.app.path, project.config.getString("mac.output-directory", defaultTargetDirectory));
|
||||
targetDirectory = StringTools.replace(targetDirectory, "arch64", dirSuffix);
|
||||
applicationDirectory = targetDirectory + "/bin/" + project.app.file + ".app";
|
||||
contentDirectory = applicationDirectory + "/Contents/Resources";
|
||||
|
||||
@@ -203,7 +203,13 @@ class WindowsPlatform extends PlatformTarget
|
||||
}
|
||||
}
|
||||
|
||||
targetDirectory = Path.combine(project.app.path, project.config.getString("windows.output-directory", targetType == "cpp" ? "windows" : targetType));
|
||||
var defaultTargetDirectory = switch (targetType)
|
||||
{
|
||||
case "cpp": "windows";
|
||||
case "hl": project.targetFlags.exists("hlc") ? "hlc" : targetType;
|
||||
default: targetType;
|
||||
}
|
||||
targetDirectory = Path.combine(project.app.path, project.config.getString("windows.output-directory", defaultTargetDirectory));
|
||||
targetDirectory = StringTools.replace(targetDirectory, "arch64", is64 ? "64" : "");
|
||||
|
||||
if (targetType == "winjs")
|
||||
|
||||
Reference in New Issue
Block a user