cabal-buck2-0.6.0.0: buck2/prelude/toolchains/android/src/com/facebook/buck/jvm/cd/LibraryStepsBuilder.java
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is dual-licensed under either the MIT license found in the
* LICENSE-MIT file in the root directory of this source tree or the Apache
* License, Version 2.0 found in the LICENSE-APACHE file in the root directory
* of this source tree. You may select, at your option, one of the
* above-listed licenses.
*/
package com.facebook.buck.jvm.cd;
import com.facebook.buck.cd.model.java.AbiGenerationMode;
import com.facebook.buck.core.filesystems.AbsPath;
import com.facebook.buck.core.filesystems.RelPath;
import com.facebook.buck.jvm.core.BuildTargetValue;
import com.facebook.buck.jvm.java.ActionMetadata;
import com.facebook.buck.jvm.java.CompileToJarStepFactory;
import com.facebook.buck.jvm.java.CompilerOutputPathsValue;
import com.facebook.buck.jvm.java.JarParameters;
import com.facebook.buck.jvm.java.ResolvedJavac;
import com.facebook.infer.annotation.Nullsafe;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSortedSet;
import org.jetbrains.annotations.Nullable;
/** Builder that creates library jar steps. */
@Nullsafe(Nullsafe.Mode.LOCAL)
public interface LibraryStepsBuilder extends CompileStepsBuilder {
void addMakeMissingOutputsStep(RelPath annotationsPath);
void addBuildStepsForLibrary(
AbiGenerationMode abiCompatibilityMode,
AbiGenerationMode abiGenerationMode,
boolean isRequiredForSourceOnlyAbi,
boolean trackClassUsage,
RelPath buckOut,
BuildTargetValue buildTargetValue,
CompilerOutputPathsValue compilerOutputPathsValue,
ImmutableList<RelPath> compileTimeClasspathPaths,
ImmutableList<RelPath> compileTimeClasspathSnapshotPaths,
ImmutableSortedSet<RelPath> javaSrcs,
ImmutableMap<RelPath, RelPath> resourcesMap,
@Nullable JarParameters libraryJarParameters,
AbsPath buildCellRootPath,
ResolvedJavac resolvedJavac,
@Nullable ActionMetadata actionMetadata,
CompileToJarStepFactory.ExtraParams extraParams);
}