use of org.graalvm.buildtools.gradle.dsl.NativeImageOptions in project native-build-tools by graalvm.
the class NativeImagePlugin method registerGraalVMExtension.
private GraalVMExtension registerGraalVMExtension(Project project) {
NamedDomainObjectContainer<NativeImageOptions> nativeImages = project.getObjects().domainObjectContainer(NativeImageOptions.class, name -> project.getObjects().newInstance(BaseNativeImageOptions.class, name, project.getObjects(), project.getProviders(), project.getExtensions().findByType(JavaToolchainService.class), project.getName()));
GraalVMExtension graalvmNative = project.getExtensions().create(GraalVMExtension.class, "graalvmNative", DefaultGraalVmExtension.class, nativeImages, this, project);
graalvmNative.getGeneratedResourcesDirectory().set(project.getLayout().getBuildDirectory().dir("native/generated/"));
configureNativeConfigurationRepo((ExtensionAware) graalvmNative);
return graalvmNative;
}
Aggregations