Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
class AndroidPlatform
super Platform
+ redef fun name do return "android"
+
redef fun supports_libgc do return true
redef fun supports_libunwind do return false
class EmscriptenPlatform
super Platform
+ redef fun name do return "emscripten"
redef fun supports_libunwind do return false
redef fun supports_libgc do return false
redef fun supports_linker_script do return false
#
# Services will be added to this class in other modules.
class Platform
+
+ # Simple lower-case name of the platform
+ fun name: nullable String do return null
+
# Does the platform provide and support the library `unwind`?
fun supports_libunwind: Bool do return true
class PnaclPlatform
super Platform
+ redef fun name do return "pnacl"
+
redef fun supports_libunwind do return false
redef fun no_main do return true