@Override public CxxPreprocessorInput getCxxPreprocessorInput( TargetGraph targetGraph, CxxPlatform cxxPlatform, HeaderVisibility headerVisibility) { return CxxPreprocessables.getCxxPreprocessorInput( targetGraph, params, ruleResolver, cxxPlatform.getFlavor(), headerVisibility, CxxPreprocessables.IncludeType.LOCAL, exportedPreprocessorFlags.apply(cxxPlatform), cxxPlatform, frameworks); }
@Override public CxxPreprocessorInput getCxxPreprocessorInput( TargetGraph targetGraph, CxxPlatform cxxPlatform, HeaderVisibility headerVisibility) { switch (headerVisibility) { case PUBLIC: return CxxPreprocessorInput.builder() .from( CxxPreprocessables.getCxxPreprocessorInput( targetGraph, params, ruleResolver, cxxPlatform.getFlavor(), headerVisibility, CxxPreprocessables.IncludeType.SYSTEM, ImmutableMultimap.<CxxSource.Type, String>of(), /* exportedPreprocessorFlags */ cxxPlatform, ImmutableList.<FrameworkPath>of())) /* frameworks */ .build(); case PRIVATE: return CxxPreprocessorInput.EMPTY; } throw new RuntimeException("Invalid header visibility: " + headerVisibility); }