package com.oracle.svm.hosted.image;
import java.lang.reflect.Method;
import java.nio.file.Path;
import java.util.List;
import org.graalvm.compiler.debug.DebugContext;
import com.oracle.svm.core.LinkerInvocation;
import com.oracle.svm.core.util.VMError;
import com.oracle.svm.hosted.FeatureImpl.BeforeImageWriteAccessImpl;
import com.oracle.svm.hosted.c.NativeLibraries;
import com.oracle.svm.hosted.meta.HostedMetaAccess;
import com.oracle.svm.hosted.meta.HostedMethod;
import com.oracle.svm.hosted.meta.HostedUniverse;
public class SharedLibraryViaCCBootImage extends NativeBootImageViaCC {
public SharedLibraryViaCCBootImage(HostedUniverse universe, HostedMetaAccess metaAccess, NativeLibraries nativeLibs, NativeImageHeap heap, NativeImageCodeCache codeCache,
List<HostedMethod> entryPoints, ClassLoader imageLoader) {
super(NativeImageKind.SHARED_LIBRARY, universe, metaAccess, nativeLibs, heap, codeCache, entryPoints, imageLoader);
}
@Override
public String[] makeLaunchCommand(NativeImageKind k, String imageName, Path binPath, Path workPath, Method method) {
throw VMError.unimplemented();
}
@Override
public LinkerInvocation write(DebugContext debug, Path outputDirectory, Path tempDirectory, String imageName, BeforeImageWriteAccessImpl config) {
LinkerInvocation inv = super.write(debug, outputDirectory, tempDirectory, imageName, config);
writeHeaderFiles(outputDirectory, imageName, false);
writeHeaderFiles(outputDirectory, imageName, true);
return inv;
}
}