public class LuaBinary extends AbstractBuildRuleWithDeclaredAndExtraDeps implements BinaryBuildRule, HasRuntimeDeps
| Constructor and Description |
|---|
LuaBinary(BuildTarget buildTarget,
ProjectFilesystem projectFilesystem,
BuildRuleParams buildRuleParams,
Path output,
Tool wrappedBinary,
String mainModule,
com.facebook.buck.features.lua.LuaPackageComponents components,
Tool lua,
LuaPlatform.PackageStyle packageStyle) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<Step> |
getBuildSteps(BuildContext context,
BuildableContext buildableContext) |
Tool |
getExecutableCommand(OutputLabel outputLabel)
Command to execute the output of this rule.
|
java.util.stream.Stream<BuildTarget> |
getRuntimeDeps(BuildRuleResolver buildRuleResolver) |
SourcePath |
getSourcePathToOutput() |
boolean |
outputFileCanBeCopied() |
deprecatedGetExtraDeps, getBuildDeps, getDeclaredDeps, getTargetGraphOnlyDepsequals, getBuildTarget, getDependencies, getProjectFilesystem, getSourcePathOutputs, getType, hasBuildSteps, hashCode, injectFields, isCacheable, toString, updateBuildRuleResolverclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, getBuildDeps, getBuildTarget, getFullyQualifiedName, getProjectFilesystem, hasBuildSteps, isCacheable, shouldRespectInputSizeLimitForRemoteExecution, toString, updateBuildRuleResolvergetDependencies, getSourcePathOutputsgetTypepublic LuaBinary(BuildTarget buildTarget, ProjectFilesystem projectFilesystem, BuildRuleParams buildRuleParams, Path output, Tool wrappedBinary, String mainModule, com.facebook.buck.features.lua.LuaPackageComponents components, Tool lua, LuaPlatform.PackageStyle packageStyle)
public Tool getExecutableCommand(OutputLabel outputLabel)
BinaryBuildRulegetExecutableCommand in interface BinaryBuildRuleoutputLabel - associated with the executablepublic boolean outputFileCanBeCopied()
outputFileCanBeCopied in interface BuildRulebuck build --out. To
be compatible, that means (1) BuildRule.getSourcePathToOutput() cannot return null,
and (2) the output file works as intended when copied to an arbitrary path (i.e., does not
have any dependencies on relative symlinks).public com.google.common.collect.ImmutableList<Step> getBuildSteps(BuildContext context, BuildableContext buildableContext)
getBuildSteps in interface BuildRulepublic SourcePath getSourcePathToOutput()
getSourcePathToOutput in interface BuildRulepublic java.util.stream.Stream<BuildTarget> getRuntimeDeps(BuildRuleResolver buildRuleResolver)
getRuntimeDeps in interface HasRuntimeDeps