Merge "Clients of PackagingBase can customize dependency tag to use"

This commit is contained in:
Jiyong Park
2020-12-01 03:44:38 +00:00
committed by Gerrit Code Review
4 changed files with 19 additions and 8 deletions

View File

@@ -694,6 +694,14 @@ type dependencyTag struct {
proc_macro bool
}
// InstallDepNeeded returns true for rlibs, dylibs, and proc macros so that they or their transitive
// dependencies (especially C/C++ shared libs) are installed as dependencies of a rust binary.
func (d dependencyTag) InstallDepNeeded() bool {
return d.library || d.proc_macro
}
var _ android.InstallNeededDependencyTag = dependencyTag{}
var (
customBindgenDepTag = dependencyTag{name: "customBindgenTag"}
rlibDepTag = dependencyTag{name: "rlibTag", library: true}