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 | e0833b1 | 2019-11-06 19:15:49 -0800 | [diff] [blame] | 16 | IncludeDirs() 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 | |
Ivan Lozano | 2b26297 | 2019-11-21 12:30:50 -0800 | [diff] [blame] | 23 | NonCcVariants() bool |
| 24 | |
Ivan Lozano | 183a321 | 2019-10-18 14:18:45 -0700 | [diff] [blame] | 25 | StubsVersions() []string |
Ivan Lozano | 52767be | 2019-10-18 14:49:46 -0700 | [diff] [blame] | 26 | BuildStubs() bool |
Ivan Lozano | 183a321 | 2019-10-18 14:18:45 -0700 | [diff] [blame] | 27 | SetBuildStubs() |
| 28 | SetStubsVersions(string) |
Jooyung Han | 03b5185 | 2020-02-26 22:45:42 +0900 | [diff] [blame] | 29 | StubsVersion() string |
Ivan Lozano | 52767be | 2019-10-18 14:49:46 -0700 | [diff] [blame] | 30 | HasStubsVariants() bool |
| 31 | SelectedStl() string |
| 32 | ApiLevel() string |
Ivan Lozano | 183a321 | 2019-10-18 14:18:45 -0700 | [diff] [blame] | 33 | |
| 34 | BuildStaticVariant() bool |
| 35 | BuildSharedVariant() bool |
| 36 | SetStatic() |
| 37 | SetShared() |
Ivan Lozano | 52767be | 2019-10-18 14:49:46 -0700 | [diff] [blame] | 38 | Static() bool |
| 39 | Shared() bool |
| 40 | Toc() android.OptionalPath |
| 41 | |
Yifan Hong | 1b3348d | 2020-01-21 15:53:22 -0800 | [diff] [blame] | 42 | InRamdisk() bool |
| 43 | OnlyInRamdisk() bool |
| 44 | |
Ivan Lozano | 52767be | 2019-10-18 14:49:46 -0700 | [diff] [blame] | 45 | InRecovery() bool |
| 46 | OnlyInRecovery() bool |
| 47 | |
| 48 | UseVndk() bool |
| 49 | MustUseVendorVariant() bool |
| 50 | IsVndk() bool |
| 51 | HasVendorVariant() bool |
| 52 | |
| 53 | SdkVersion() string |
| 54 | |
| 55 | ToolchainLibrary() bool |
| 56 | NdkPrebuiltStl() bool |
| 57 | StubDecorator() bool |
Ivan Lozano | 183a321 | 2019-10-18 14:18:45 -0700 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | type DependencyTag struct { |
| 61 | blueprint.BaseDependencyTag |
| 62 | Name string |
| 63 | Library bool |
| 64 | Shared bool |
| 65 | |
| 66 | ReexportFlags bool |
| 67 | |
| 68 | ExplicitlyVersioned bool |
Jiyong Park | d7536ba | 2020-01-16 17:14:23 +0900 | [diff] [blame] | 69 | |
| 70 | FromStatic bool |
Ivan Lozano | 183a321 | 2019-10-18 14:18:45 -0700 | [diff] [blame] | 71 | } |
| 72 | |
| 73 | var ( |
| 74 | SharedDepTag = DependencyTag{Name: "shared", Library: true, Shared: true} |
| 75 | StaticDepTag = DependencyTag{Name: "static", Library: true} |
| 76 | |
Jiyong Park | d7536ba | 2020-01-16 17:14:23 +0900 | [diff] [blame] | 77 | // Same as SharedDepTag, but from a static lib |
| 78 | SharedFromStaticDepTag = DependencyTag{Name: "shared from static", Library: true, Shared: true, FromStatic: true} |
| 79 | |
Ivan Lozano | 183a321 | 2019-10-18 14:18:45 -0700 | [diff] [blame] | 80 | CrtBeginDepTag = DependencyTag{Name: "crtbegin"} |
| 81 | CrtEndDepTag = DependencyTag{Name: "crtend"} |
| 82 | ) |