public class OcamlNativePluginStep extends ShellStep
This builds a `.cmxs` file from the corresponding `.cmo`/`cma` file that was built as part of the static library compilation.
`.cmxs` files are generally used as dynamically-linked plugins for native-compiled ocaml. See the built-in `Dynlink` ocaml module for more info.
| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.ImmutableList<Arg> |
cDepInput |
com.google.common.collect.ImmutableList<String> |
cxxCompiler |
com.google.common.collect.ImmutableMap<String,String> |
environment |
com.google.common.collect.ImmutableList<String> |
flags |
com.google.common.collect.ImmutableList<Path> |
input |
com.google.common.collect.ImmutableList<String> |
ocamlCompilerCommandPrefix |
Path |
output |
Optional<String> |
stdlib |
workingDirectory| Constructor and Description |
|---|
OcamlNativePluginStep(AbsPath workingDirectory,
com.google.common.collect.ImmutableMap<String,String> environment,
com.google.common.collect.ImmutableList<String> cxxCompiler,
com.google.common.collect.ImmutableList<String> ocamlCompilerCommandPrefix,
com.google.common.collect.ImmutableList<String> flags,
Optional<String> stdlib,
Path output,
com.google.common.collect.ImmutableList<Arg> cDepInput,
com.google.common.collect.ImmutableList<Path> input,
com.google.common.collect.ImmutableList<String> ocamlInput) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<String,String> |
getEnvironmentVariables(ExecutionContext context)
Returns the environment variables to include when running this
ShellStep. |
protected com.google.common.collect.ImmutableList<String> |
getShellCommandInternal(ExecutionContext context)
Implementations of this method should not have any observable side-effects.
|
String |
getShortName() |
addOptions, execute, getDescription, getDuration, getExitCodeFromResult, getShellCommand, getShellCommandArgsForDescription, getStderr, getStdin, getStdout, getTimeout, getTimeoutHandler, shouldPrintStderr, shouldPrintStdoutpublic final com.google.common.collect.ImmutableList<String> cxxCompiler
public final com.google.common.collect.ImmutableList<String> ocamlCompilerCommandPrefix
public final com.google.common.collect.ImmutableList<String> flags
public final Path output
public final com.google.common.collect.ImmutableList<Arg> cDepInput
public final com.google.common.collect.ImmutableList<Path> input
public OcamlNativePluginStep(AbsPath workingDirectory, com.google.common.collect.ImmutableMap<String,String> environment, com.google.common.collect.ImmutableList<String> cxxCompiler, com.google.common.collect.ImmutableList<String> ocamlCompilerCommandPrefix, com.google.common.collect.ImmutableList<String> flags, Optional<String> stdlib, Path output, com.google.common.collect.ImmutableList<Arg> cDepInput, com.google.common.collect.ImmutableList<Path> input, com.google.common.collect.ImmutableList<String> ocamlInput)
public String getShortName()
protected com.google.common.collect.ImmutableList<String> getShellCommandInternal(ExecutionContext context)
ShellStepgetShellCommandInternal in class ShellSteppublic com.google.common.collect.ImmutableMap<String,String> getEnvironmentVariables(ExecutionContext context)
ShellStepShellStep.
By default, this method returns an empty map.
getEnvironmentVariables in class ShellStepcontext - that may be useful when determining environment variables to include.