com.jtransc.gen.common.BaseCompiler.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtransc-core Show documentation
Show all versions of jtransc-core Show documentation
JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.
package com.jtransc.gen.common
import com.jtransc.io.ProcessUtils
import java.io.File
abstract class BaseCompiler(val cmdName: String) {
val cmd by lazy { ProcessUtils.which(cmdName) }
val available by lazy { cmd != null }
abstract fun genCommand(programFile: File, debug: Boolean = false, libs: List = listOf()): List
}