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-10-18 23:49:46 +02:00
|
|
|
IncludeDirs(ctx android.BaseModuleContext) android.Paths
|
2019-10-18 23:18:45 +02:00
|
|
|
SetDepsInLinkOrder([]android.Path)
|
|
|
|
GetDepsInLinkOrder() []android.Path
|
|
|
|
|
|
|
|
HasStaticVariant() bool
|
|
|
|
GetStaticVariant() LinkableInterface
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
InRecovery() bool
|
|
|
|
OnlyInRecovery() bool
|
|
|
|
|
|
|
|
UseVndk() bool
|
|
|
|
MustUseVendorVariant() bool
|
|
|
|
IsVndk() bool
|
|
|
|
HasVendorVariant() bool
|
|
|
|
|
|
|
|
SdkVersion() string
|
|
|
|
|
|
|
|
ToolchainLibrary() bool
|
|
|
|
NdkPrebuiltStl() bool
|
|
|
|
StubDecorator() bool
|
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"}
|
|
|
|
)
|