Ivan Lozano | 183a321 | 2019-10-18 14:18:45 -0700 | [diff] [blame^] | 1 | package cc |
| 2 | |
| 3 | import ( |
| 4 | "github.com/google/blueprint" |
| 5 | |
| 6 | "android/soong/android" |
| 7 | ) |
| 8 | |
| 9 | type 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 | |
| 34 | type DependencyTag struct { |
| 35 | blueprint.BaseDependencyTag |
| 36 | Name string |
| 37 | Library bool |
| 38 | Shared bool |
| 39 | |
| 40 | ReexportFlags bool |
| 41 | |
| 42 | ExplicitlyVersioned bool |
| 43 | } |
| 44 | |
| 45 | var ( |
| 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 | ) |