Search in sources :

Example 1 with CxxPreprocessorDep

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();
}
Also used : ImmutableList(com.google.common.collect.ImmutableList) CxxPreprocessorDep(com.facebook.buck.cxx.CxxPreprocessorDep) CxxPreprocessorInput(com.facebook.buck.cxx.CxxPreprocessorInput)

Aggregations

CxxPreprocessorDep (com.facebook.buck.cxx.CxxPreprocessorDep)1 CxxPreprocessorInput (com.facebook.buck.cxx.CxxPreprocessorInput)1 ImmutableList (com.google.common.collect.ImmutableList)1