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 | |
Ivan Lozano | 183a321 | 2019-10-18 14:18:45 -0700 | [diff] [blame] | 14 | OutputFile() android.OptionalPath |
| 15 | |
Ivan Lozano | 52767be | 2019-10-18 14:49:46 -0700 | [diff] [blame^] | 16 | IncludeDirs(ctx android.BaseModuleContext) android.Paths |
Ivan Lozano | 183a321 | 2019-10-18 14:18:45 -0700 | [diff] [blame] | 17 | SetDepsInLinkOrder([]android.Path) |
| 18 | GetDepsInLinkOrder() []android.Path |
| 19 | |
| 20 | HasStaticVariant() bool |
| 21 | GetStaticVariant() LinkableInterface |
| 22 | |
| 23 | StubsVersions() []string |
Ivan Lozano | 52767be | 2019-10-18 14:49:46 -0700 | [diff] [blame^] | 24 | BuildStubs() bool |
Ivan Lozano | 183a321 | 2019-10-18 14:18:45 -0700 | [diff] [blame] | 25 | SetBuildStubs() |
| 26 | SetStubsVersions(string) |
Ivan Lozano | 52767be | 2019-10-18 14:49:46 -0700 | [diff] [blame^] | 27 | HasStubsVariants() bool |
| 28 | SelectedStl() string |
| 29 | ApiLevel() string |
Ivan Lozano | 183a321 | 2019-10-18 14:18:45 -0700 | [diff] [blame] | 30 | |
| 31 | BuildStaticVariant() bool |
| 32 | BuildSharedVariant() bool |
| 33 | SetStatic() |
| 34 | SetShared() |
Ivan Lozano | 52767be | 2019-10-18 14:49:46 -0700 | [diff] [blame^] | 35 | Static() bool |
| 36 | Shared() bool |
| 37 | Toc() android.OptionalPath |
| 38 | |
| 39 | InRecovery() bool |
| 40 | OnlyInRecovery() bool |
| 41 | |
| 42 | UseVndk() bool |
| 43 | MustUseVendorVariant() bool |
| 44 | IsVndk() bool |
| 45 | HasVendorVariant() bool |
| 46 | |
| 47 | SdkVersion() string |
| 48 | |
| 49 | ToolchainLibrary() bool |
| 50 | NdkPrebuiltStl() bool |
| 51 | StubDecorator() bool |
Ivan Lozano | 183a321 | 2019-10-18 14:18:45 -0700 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | type DependencyTag struct { |
| 55 | blueprint.BaseDependencyTag |
| 56 | Name string |
| 57 | Library bool |
| 58 | Shared bool |
| 59 | |
| 60 | ReexportFlags bool |
| 61 | |
| 62 | ExplicitlyVersioned bool |
| 63 | } |
| 64 | |
| 65 | var ( |
| 66 | SharedDepTag = DependencyTag{Name: "shared", Library: true, Shared: true} |
| 67 | StaticDepTag = DependencyTag{Name: "static", Library: true} |
| 68 | |
| 69 | CrtBeginDepTag = DependencyTag{Name: "crtbegin"} |
| 70 | CrtEndDepTag = DependencyTag{Name: "crtend"} |
| 71 | ) |