mx_sdk_vm.register_graalvm_component(mx_sdk_vm.GraalVmLanguage( suite=_suite, name="GraalWasm", short_name="gwa", dir_name="wasm", license_files=["LICENSE_WASM.txt"], third_party_license_files=[], dependencies=["Truffle"], truffle_jars=["wasm:WASM"], support_distributions=["wasm:WASM_GRAALVM_LICENSES"], launcher_configs=[ mx_sdk_vm.LanguageLauncherConfig( destination="bin/<exe:wasm>", jar_distributions=["wasm:WASM_LAUNCHER"], main_class="org.graalvm.wasm.launcher.WasmLauncher", build_args=[], language="wasm", ), ], installable=True, )) # # Mx commands. # @mx.command("mx", "wasm") def wasm(args):
name='Sulong', short_name='slg', dir_name='llvm', license_files=[], third_party_license_files=[], dependencies=['Truffle', 'Truffle NFI'], truffle_jars=['sulong:SULONG', 'sulong:SULONG_API'], support_distributions=[ 'sulong:SULONG_HOME', 'sulong:SULONG_GRAALVM_DOCS', ], launcher_configs=[ mx_sdk_vm.LanguageLauncherConfig( destination='bin/<exe:lli>', jar_distributions=['sulong:SULONG_LAUNCHER'], main_class='com.oracle.truffle.llvm.launcher.LLVMLauncher', build_args=[], language='llvm', ), ] + _suite.toolchain.get_launcher_configs(), installable=False, )) mx_sdk_vm.register_graalvm_component(mx_sdk_vm.GraalVmJreComponent( suite=_suite, name='LLVM.org toolchain', short_name='llp', installable=True, installable_id='llvm-toolchain', dir_name='llvm', license_files=[],
mx_sdk_vm.register_graalvm_component( mx_sdk_vm.GraalVmLanguage( suite=_suite, name='Espresso Launcher', short_name='elau', installable=False, license_files=[], third_party_license_files=[], dependencies=['Java on Truffle'], truffle_jars=[], launcher_configs=[ mx_sdk_vm.LanguageLauncherConfig( destination='bin/<exe:espresso>', jar_distributions=['espresso:ESPRESSO_LAUNCHER'], main_class= 'com.oracle.truffle.espresso.launcher.EspressoLauncher', build_args=[], language='java', ) ], )) # Register new commands which can be used from the commandline with mx mx.update_commands( _suite, { 'espresso': [_run_espresso_launcher, '[args]'], 'espresso-standalone': [_run_espresso_standalone, '[args]'], 'espresso-java': [_run_espresso_java, '[args]'], 'espresso-meta': [_run_espresso_meta, '[args]'], })
mx_sdk_vm.register_graalvm_component( mx_sdk_vm.GraalVmLanguage( suite=_suite, name='Brainfck', short_name='bf', license_files=[], third_party_license_files=[], dependencies=['Truffle'], truffle_jars=['brainfck:BRAINFCK'], support_distributions=['brainfck:BRAINFCK_SUPPORT'], launcher_configs=[ mx_sdk_vm.LanguageLauncherConfig( destination='bin/<exe:bf>', jar_distributions=['brainfck:BRAINFCK_LAUNCHER'], main_class= 'com.oracle.truffle.brainfck.launcher.BrainfckLauncher', build_args=['--language:bf'], language='bf', ) ], )) # Register new commands which can be used from the commandline with mx mx.update_commands( _suite, { 'bf': [_run_brainfck_launcher, '[args]'], 'bf-standalone': [_run_brainfck_standalone, '[args]'], 'verify-ci': [verify_ci, '[options]'], }) # Build configs