use of com.facebook.buck.cxx.CxxPreprocessorDep in project buck by facebook.
the class AbstractNativeExecutableStarter method getTransitiveCxxPreprocessorInput.
private ImmutableList<CxxPreprocessorInput> getTransitiveCxxPreprocessorInput(CxxPlatform cxxPlatform, Iterable<? extends CxxPreprocessorDep> deps) throws NoSuchBuildTargetException {
ImmutableList.Builder<CxxPreprocessorInput> inputs = ImmutableList.builder();
inputs.addAll(CxxPreprocessables.getTransitiveCxxPreprocessorInput(cxxPlatform, FluentIterable.from(deps).filter(BuildRule.class)));
for (CxxPreprocessorDep dep : Iterables.filter(deps, Predicates.not(BuildRule.class::isInstance))) {
inputs.add(dep.getCxxPreprocessorInput(cxxPlatform, HeaderVisibility.PUBLIC));
}
return inputs.build();
}
Aggregations