예제 #1
0
mx_sdk_vm.register_graalvm_component(mx_sdk_vm.GraalVmJdkComponent(
    suite=_suite,
    name='Component installer',
    short_name='gu',
    dir_name='installer',
    license_files=[],
    third_party_license_files=[],
    dependencies=['sdk'],
    jar_distributions=[
        'vm:INSTALLER',
        'truffle:TruffleJSON'
    ],
    support_distributions=['vm:INSTALLER_GRAALVM_SUPPORT'],
    launcher_configs=[
        mx_sdk_vm.LauncherConfig(
            destination="bin/<exe:gu>",
            jar_distributions=[
                'vm:INSTALLER',
                'truffle:TruffleJSON'
            ],
            dir_jars=True,
            main_class="org.graalvm.component.installer.ComponentInstaller",
            link_at_build_time=False,
            build_args=gu_build_args,
            # Please see META-INF/native-image in the project for custom build options for native-image
            is_sdk_launcher=True,
            custom_launcher_script="mx.vm/gu.cmd" if mx.is_windows() else None,
        ),
    ],
    stability="supported",
))
예제 #2
0
파일: mx_vm.py 프로젝트: rh-jmc-team/graal
_suite = mx.suite('vm')
""":type: mx.SourceSuite | mx.Suite"""

mx_sdk_vm.register_graalvm_component(
    mx_sdk_vm.GraalVmJdkComponent(
        suite=_suite,
        name='Component installer',
        short_name='gu',
        dir_name='installer',
        license_files=[],
        third_party_license_files=[],
        dependencies=['sdk'],
        jar_distributions=['vm:INSTALLER', 'truffle:TruffleJSON'],
        support_distributions=['vm:INSTALLER_GRAALVM_SUPPORT'],
        launcher_configs=[
            mx_sdk_vm.LauncherConfig(
                destination="bin/<exe:gu>",
                jar_distributions=['vm:INSTALLER', 'truffle:TruffleJSON'],
                dir_jars=True,
                main_class="org.graalvm.component.installer.ComponentInstaller",
                build_args=[],
                # Please see META-INF/native-image in the project for custom build options for native-image
                is_sdk_launcher=True,
                custom_launcher_script="mx.vm/gu.cmd"
                if mx.is_windows() else None,
            ),
        ],
    ))

mx_sdk_vm.register_graalvm_component(
    mx_sdk_vm.GraalVmComponent(
        suite=_suite,
예제 #3
0
        dir_name='coverage',
        license_files=[],
        third_party_license_files=[],
        dependencies=['Truffle'],
        truffle_jars=['tools:TRUFFLE_COVERAGE'],
        support_distributions=['tools:TRUFFLE_COVERAGE_GRAALVM_SUPPORT'],
        include_by_default=True,
    ))

mx_sdk_vm.register_graalvm_component(
    mx_sdk_vm.GraalVmJdkComponent(
        suite=_suite,
        name='VisualVM',
        short_name='vvm',
        dir_name='visualvm',
        license_files=[],
        third_party_license_files=[],
        dependencies=[],
        support_distributions=['tools:VISUALVM_GRAALVM_SUPPORT'],
        provided_executables=[('tools:VISUALVM_PLATFORM_SPECIFIC',
                               './bin/<exe:jvisualvm>')]))

for mode in ['jvm', 'native']:
    mx_sdk_vm.add_graalvm_hostvm_config(
        mode + '-cpusampler-exclude-inlined-roots',
        launcher_args=[
            '--' + mode, '--cpusampler',
            '--cpusampler.Mode=exclude_inlined_roots'
        ])
    mx_sdk_vm.add_graalvm_hostvm_config(
        mode + '-cpusampler-roots',