blob: 2c603378c36b4d6b04ea3d6458a4e4d39f9fbf65 [file] [log] [blame]
Ivan Lozano183a3212019-10-18 14:18:45 -07001package cc
2
3import (
4 "github.com/google/blueprint"
5
6 "android/soong/android"
7)
8
9type LinkableInterface interface {
10 Module() android.Module
11 CcLibrary() bool
12 CcLibraryInterface() bool
13
14 InRecovery() bool
15 OutputFile() android.OptionalPath
16
17 IncludeDirs() android.Paths
18 SetDepsInLinkOrder([]android.Path)
19 GetDepsInLinkOrder() []android.Path
20
21 HasStaticVariant() bool
22 GetStaticVariant() LinkableInterface
23
24 StubsVersions() []string
25 SetBuildStubs()
26 SetStubsVersions(string)
27
28 BuildStaticVariant() bool
29 BuildSharedVariant() bool
30 SetStatic()
31 SetShared()
32}
33
34type DependencyTag struct {
35 blueprint.BaseDependencyTag
36 Name string
37 Library bool
38 Shared bool
39
40 ReexportFlags bool
41
42 ExplicitlyVersioned bool
43}
44
45var (
46 SharedDepTag = DependencyTag{Name: "shared", Library: true, Shared: true}
47 StaticDepTag = DependencyTag{Name: "static", Library: true}
48
49 CrtBeginDepTag = DependencyTag{Name: "crtbegin"}
50 CrtEndDepTag = DependencyTag{Name: "crtend"}
51)