Add default compiler paths for DASM, KICKASS and TASS

This commit is contained in:
Peter Dell 2022-12-27 02:51:29 +01:00
parent 1e557b0e76
commit 85b1fb08eb

View File

@ -82,8 +82,8 @@ public final class CompilerPaths {
*/
public CompilerPaths() {
compilerPaths = new TreeMap<String, CompilerPath>();
// TODO: Complete default compiler paths for all assemblers and compilers DSAM/KickAss/TASS.
// See https://github.com/peterdell/wudsn-ide-tools
// TODO: Add MERLIN32
add(Language.ASM, "acme", Platform.OS_WIN32, Platform.ARCH_X86, "acme.exe");
add(Language.ASM, "asm6", Platform.OS_WIN32, Platform.ARCH_X86, "asm6.exe");
add(Language.ASM, "atasm", Platform.OS_LINUX, Platform.ARCH_X86, "atasm.linux-i386");
@ -92,10 +92,19 @@ public final class CompilerPaths {
add(Language.ASM, "atasm", Platform.OS_MACOSX, Platform.ARCH_X86_64, "atasm.macos-x86-64");
add(Language.ASM, "atasm", Platform.OS_MACOSX, Platform.ARCH_PPC, "atasm.macos-powerpc");
add(Language.ASM, "atasm", Platform.OS_WIN32, Platform.ARCH_X86, "atasm.exe");
add(Language.ASM, "dasm", Platform.OS_LINUX, Platform.ARCH_X86, "bin/dasm.linux-i386");
add(Language.ASM, "dasm", Platform.OS_LINUX, Platform.ARCH_X86_64, "bin/dasm.linux-x86-64");
add(Language.ASM, "dasm", Platform.OS_MACOSX, Platform.ARCH_X86, "bin/dasm.macos-i386");
add(Language.ASM, "dasm", Platform.OS_MACOSX, Platform.ARCH_X86_64, "bin/dasm.macos-x86-64");
add(Language.ASM, "dasm", Platform.OS_WIN32, Platform.ARCH_X86, "bin/dasm.exe");
add(Language.ASM, "kickass", Platform.OS_LINUX, Platform.ARCH_X86, "KickAss.jar");
add(Language.ASM, "kickass", Platform.OS_MACOSX, Platform.ARCH_X86, "KickAss.jar");
add(Language.ASM, "kickass", Platform.OS_WIN32, Platform.ARCH_X86, "KickAss.jar");
add(Language.ASM, "mads", Platform.OS_MACOSX, Platform.ARCH_X86, "mads.macos-i386");
add(Language.ASM, "mads", Platform.OS_MACOSX, Platform.ARCH_X86_64, "mads.macos-x86-64");
add(Language.ASM, "mads", Platform.OS_MACOSX, Platform.ARCH_PPC, "mads.macos-powerpc");
add(Language.ASM, "mads", Platform.OS_WIN32, Platform.ARCH_X86_64, "mads.exe");
add(Language.ASM, "tass", Platform.OS_WIN32, Platform.ARCH_X86, "64tass.exe");
add(Language.ASM, "xasm", Platform.OS_LINUX, Platform.ARCH_X86, "xasm.linux-i386");
add(Language.ASM, "xasm", Platform.OS_MACOSX, Platform.ARCH_X86, "xasm.macos-i386");
add(Language.ASM, "xasm", Platform.OS_WIN32, Platform.ARCH_X86, "xasm.exe");
@ -123,9 +132,10 @@ public final class CompilerPaths {
}
/**
* Gets the absolute file path the default executable on the current OS and OS architecture.
* Gets the absolute file path the default executable on the current OS and OS
* architecture.
*
* @param language The language, not empty and not <code>null</code>.
* @param language The language, not empty and not <code>null</code>.
* @param compilerId The compiler ID, not empty and not <code>null</code>.
* @return The file or <code>null</code> is no file could be determined.
*/