Class OcamlLinkStep

  • All Implemented Interfaces:

    public class OcamlLinkStep
    extends ShellStep
    OCaml linking step. Dependencies and inputs should be topologically ordered
    • Field Detail

      • environment

        public final<String,​String> environment
      • cxxCompiler

        public final<String> cxxCompiler
      • ocamlCompilerCommandPrefix

        public final<String> ocamlCompilerCommandPrefix
      • flags

        public final<String> flags
      • output

        public final Path output
      • argFile

        public final Path argFile
      • cDepInput

        public final<String> cDepInput
      • input

        public final<Path> input
      • isLibrary

        public final boolean isLibrary
      • isBytecode

        public final boolean isBytecode
    • Method Detail

      • create

        public static OcamlLinkStep create​(ProjectFilesystem filesystem,
                                 <String,​String> environment,
                                 <String> cxxCompiler,
                                 <String> ocamlCompilerCommandPrefix,
                                 <Arg> flags,
                                           Optional<String> stdlib,
                                           Path output,
                                           Path argFile,
                                 <Arg> depInput,
                                 <Arg> cDepInput,
                                 <Path> input,
                                           boolean isLibrary,
                                           boolean isBytecode,
                                           SourcePathResolverAdapter pathResolver)
        Factory method for OcamlLinkStep.
      • getShortName

        public String getShortName()
        a short name/description for the command, such as "javac". Should fit on one line.
      • getShellCommandInternal

        protected<String> getShellCommandInternal​(ExecutionContext context)
        Description copied from class: ShellStep
        Implementations of this method should not have any observable side-effects.
        Specified by:
        getShellCommandInternal in class ShellStep
      • getEnvironmentVariables

        public<String,​String> getEnvironmentVariables​(ExecutionContext context)
        Description copied from class: ShellStep
        Returns the environment variables to include when running this ShellStep.

        By default, this method returns an empty map.

        getEnvironmentVariables in class ShellStep
        context - that may be useful when determining environment variables to include.