Beispiel #1
0
 @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);
 }
Beispiel #2
0
  @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);
  }