use of com.facebook.buck.cxx.StripStep in project buck by facebook.
the class StripLinkable method getBuildSteps.
@Override
public ImmutableList<Step> getBuildSteps(BuildContext context, BuildableContext buildableContext) {
ImmutableList.Builder<Step> steps = ImmutableList.builder();
steps.add(new MkdirStep(getProjectFilesystem(), resultDir));
Path output = context.getSourcePathResolver().getRelativePath(getSourcePathToOutput());
steps.add(new StripStep(getProjectFilesystem().getRootPath(), stripTool.getEnvironment(context.getSourcePathResolver()), stripTool.getCommandPrefix(context.getSourcePathResolver()), ImmutableList.of("--strip-unneeded"), context.getSourcePathResolver().getAbsolutePath(sourcePathToStrip), output));
buildableContext.recordArtifact(output);
return steps.build();
}
Aggregations