diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/cpp/CppRunfilesProvider.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CppRunfilesProvider.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppRunfilesProvider.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppRunfilesProvider.java index 30f7bc9e11..e5f48e04df 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppRunfilesProvider.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppRunfilesProvider.java @@ -19,18 +19,23 @@ import com.google.devtools.build.lib.analysis.Runfiles; import com.google.devtools.build.lib.analysis.TransitiveInfoCollection; import com.google.devtools.build.lib.analysis.TransitiveInfoProvider; import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable; +import com.google.devtools.build.lib.skyframe.serialization.ObjectCodec; +import com.google.devtools.build.lib.skyframe.serialization.autocodec.AutoCodec; /** * Runfiles provider for C++ targets. * - * <p>Contains two {@link Runfiles} objects: one for the eventual statically linked binary and - * one for the one that uses shared libraries. Data dependencies are present in both. + * <p>Contains two {@link Runfiles} objects: one for the eventual statically linked binary and one + * for the one that uses shared libraries. Data dependencies are present in both. */ @Immutable +@AutoCodec public final class CppRunfilesProvider implements TransitiveInfoProvider { + public static final ObjectCodec<CppRunfilesProvider> CODEC = new CppRunfilesProvider_AutoCodec(); private final Runfiles staticRunfiles; private final Runfiles sharedRunfiles; + @AutoCodec.Instantiator public CppRunfilesProvider(Runfiles staticRunfiles, Runfiles sharedRunfiles) { this.staticRunfiles = staticRunfiles; this.sharedRunfiles = sharedRunfiles; |