2019-10-18 23:18:45 +02:00
|
|
|
package cc
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/google/blueprint"
|
|
|
|
|
|
|
|
"android/soong/android"
|
|
|
|
)
|
|
|
|
|
|
|
|
type LinkableInterface interface {
|
|
|
|
Module() android.Module
|
|
|
|
CcLibrary() bool
|
|
|
|
CcLibraryInterface() bool
|
|
|
|
|
|
|
|
OutputFile() android.OptionalPath
|
|
|
|
|
2019-11-07 04:15:49 +01:00
|
|
|
IncludeDirs() android.Paths
|
2019-10-18 23:18:45 +02:00
|
|
|
SetDepsInLinkOrder([]android.Path)
|
|
|
|
GetDepsInLinkOrder() []android.Path
|
|
|
|
|
|
|
|
HasStaticVariant() bool
|
|
|
|
GetStaticVariant() LinkableInterface
|
|
|
|
|
2019-11-21 21:30:50 +01:00
|
|
|
NonCcVariants() bool
|
|
|
|
|
2019-10-18 23:18:45 +02:00
|
|
|
StubsVersions() []string
|
2019-10-18 23:49:46 +02:00
|
|
|
BuildStubs() bool
|
2019-10-18 23:18:45 +02:00
|
|
|
SetBuildStubs()
|
|
|
|
SetStubsVersions(string)
|
2019-10-18 23:49:46 +02:00
|
|
|
HasStubsVariants() bool
|
|
|
|
SelectedStl() string
|
|
|
|
ApiLevel() string
|
2019-10-18 23:18:45 +02:00
|
|
|
|
|
|
|
BuildStaticVariant() bool
|
|
|
|
BuildSharedVariant() bool
|
|
|
|
SetStatic()
|
|
|
|
SetShared()
|
2019-10-18 23:49:46 +02:00
|
|
|
Static() bool
|
|
|
|
Shared() bool
|
|
|
|
Toc() android.OptionalPath
|
|
|
|
|
2020-01-22 00:53:22 +01:00
|
|
|
InRamdisk() bool
|
|
|
|
OnlyInRamdisk() bool
|
|
|
|
|
2019-10-18 23:49:46 +02:00
|
|
|
InRecovery() bool
|
|
|
|
OnlyInRecovery() bool
|
|
|
|
|
|
|
|
UseVndk() bool
|
|
|
|
MustUseVendorVariant() bool
|
|
|
|
IsVndk() bool
|
|
|
|
HasVendorVariant() bool
|
|
|
|
|
|
|
|
SdkVersion() string
|
|
|
|
|
|
|
|
ToolchainLibrary() bool
|
|
|
|
NdkPrebuiltStl() bool
|
|
|
|
StubDecorator() bool
|
2020-01-14 10:38:44 +01:00
|
|
|
|
|
|
|
AllStaticDeps() []string
|
2019-10-18 23:18:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type DependencyTag struct {
|
|
|
|
blueprint.BaseDependencyTag
|
|
|
|
Name string
|
|
|
|
Library bool
|
|
|
|
Shared bool
|
|
|
|
|
|
|
|
ReexportFlags bool
|
|
|
|
|
|
|
|
ExplicitlyVersioned bool
|
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
|
|
SharedDepTag = DependencyTag{Name: "shared", Library: true, Shared: true}
|
|
|
|
StaticDepTag = DependencyTag{Name: "static", Library: true}
|
|
|
|
|
|
|
|
CrtBeginDepTag = DependencyTag{Name: "crtbegin"}
|
|
|
|
CrtEndDepTag = DependencyTag{Name: "crtend"}
|
|
|
|
)
|