Lines Matching refs:STL
29 stl := m.stl.Properties.SelectedStl
30 switch stl {
40 panic(fmt.Errorf("stl: %q is not a valid STL", stl))
45 // Select the STL library to use. Possible values are "libc++",
48 Stl *string `android:"arch_variant"`
53 type stl struct {
57 func (stl *stl) props() []interface{} {
58 return []interface{}{&stl.Properties}
61 func (stl *stl) begin(ctx BaseModuleContext) {
62 stl.Properties.SelectedStl = func() string {
64 if stl.Properties.Stl != nil {
65 s = *stl.Properties.Stl
80 ctx.ModuleErrorf("stl: %q is not a supported STL with sdk_version set", s)
91 ctx.ModuleErrorf("stl: %q is not a supported STL for windows", s)
111 ctx.ModuleErrorf("stl: %q is not a supported STL on Fuchsia", s)
127 ctx.ModuleErrorf("stl: %q is not a supported STL", s)
154 func (stl *stl) deps(ctx BaseModuleContext, deps Deps) Deps {
155 switch stl.Properties.SelectedStl {
159 if stl.Properties.SelectedStl == "libc++" {
160 deps.SharedLibs = append(deps.SharedLibs, stl.Properties.SelectedStl)
162 deps.StaticLibs = append(deps.StaticLibs, stl.Properties.SelectedStl)
175 // TODO: Make a system STL prebuilt for the NDK.
176 // The system STL doesn't have a prebuilt (it uses the system's libstdc++), but it does have
180 if stl.Properties.SelectedStl == "ndk_libc++_shared" {
181 deps.SharedLibs = append(deps.SharedLibs, stl.Properties.SelectedStl)
183 deps.StaticLibs = append(deps.StaticLibs, stl.Properties.SelectedStl, "ndk_libc++abi")
192 panic(fmt.Errorf("Unknown stl: %q", stl.Properties.SelectedStl))
198 func (stl *stl) flags(ctx ModuleContext, flags Flags) Flags {
199 switch stl.Properties.SelectedStl {
245 ndkSrcRoot := android.PathForSource(ctx, "prebuilts/ndk/current/sources/cxx-stl/system/include")
264 panic(fmt.Errorf("Unknown stl: %q", stl.Properties.SelectedStl))