class EmoEnvironment
Holds checks and data about the current environment, which is used for selecting the correct libraries and natives
EmoEnvironment()
Holds checks and data about the current environment, which is used for selecting the correct libraries and natives |
val osArch: String
Normalized OS architecture for this environment |
|
val osName: String
Normalized OS name for this environment |
fun passesOSCheck(check: OS): Boolean
Check if this environment passes the given OS check, returns true on pass, false on fail |
|
fun passesRule(rule: Rule): Boolean
Check if this environment passes the given rule, returns true on pass, false on fail |
|
fun passesRules(rules: Iterable<Rule>): Boolean
Check if this environment passes the given rules, returns true on pass, false on fail |
|
fun selectNative(library: Library): Artifact?
Select if there is a native artifact that we should select in this library, Returns the native artifact if found |