public class NativeRelinker extends Object
The native relinker tries to remedy the situation. When enabled for an apk, the native relinker will take the set of libraries in the apk and relink them in reverse order telling the linker to only export those symbols that are referenced by a higher library.
Constructor and Description |
---|
NativeRelinker(BuildTarget buildTarget,
ProjectFilesystem projectFilesystem,
CellPathResolver cellPathResolver,
SourcePathResolverAdapter resolver,
SourcePathRuleFinder ruleFinder,
CxxBuckConfig cxxBuckConfig,
com.google.common.collect.ImmutableMap<TargetCpuType,NdkCxxPlatform> nativePlatforms,
com.google.common.collect.ImmutableMap<AndroidLinkableMetadata,SourcePath> linkableLibs,
com.google.common.collect.ImmutableMap<AndroidLinkableMetadata,SourcePath> linkableLibsAssets,
com.google.common.collect.ImmutableList<Pattern> symbolPatternWhitelist) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableMap<AndroidLinkableMetadata,SourcePath> |
getRelinkedLibs() |
com.google.common.collect.ImmutableMap<AndroidLinkableMetadata,SourcePath> |
getRelinkedLibsAssets() |
com.google.common.collect.ImmutableList<com.facebook.buck.android.relinker.RelinkerRule> |
getRules() |
public NativeRelinker(BuildTarget buildTarget, ProjectFilesystem projectFilesystem, CellPathResolver cellPathResolver, SourcePathResolverAdapter resolver, SourcePathRuleFinder ruleFinder, CxxBuckConfig cxxBuckConfig, com.google.common.collect.ImmutableMap<TargetCpuType,NdkCxxPlatform> nativePlatforms, com.google.common.collect.ImmutableMap<AndroidLinkableMetadata,SourcePath> linkableLibs, com.google.common.collect.ImmutableMap<AndroidLinkableMetadata,SourcePath> linkableLibsAssets, com.google.common.collect.ImmutableList<Pattern> symbolPatternWhitelist)
public com.google.common.collect.ImmutableMap<AndroidLinkableMetadata,SourcePath> getRelinkedLibs()
public com.google.common.collect.ImmutableMap<AndroidLinkableMetadata,SourcePath> getRelinkedLibsAssets()
public com.google.common.collect.ImmutableList<com.facebook.buck.android.relinker.RelinkerRule> getRules()