Home | History | Annotate | Download | only in cc

Lines Matching refs:STL

23 	// select the STL library to use.  Possible values are "libc++", "libc++_static",
26 Stl *string
31 type stl struct {
35 func (stl *stl) props() []interface{} {
36 return []interface{}{&stl.Properties}
39 func (stl *stl) begin(ctx BaseModuleContext) {
40 stl.Properties.SelectedStl = func() string {
42 if stl.Properties.Stl != nil {
43 s = *stl.Properties.Stl
60 ctx.ModuleErrorf("stl: %q is not a supported STL with sdk_version set", s)
71 ctx.ModuleErrorf("stl: %q is not a supported STL for windows", s)
87 ctx.ModuleErrorf("stl: %q is not a supported STL", s)
94 func (stl *stl) deps(ctx BaseModuleContext, deps Deps) Deps {
95 switch stl.Properties.SelectedStl {
99 if stl.Properties.SelectedStl == "libc++" {
100 deps.SharedLibs = append(deps.SharedLibs, stl.Properties.SelectedStl)
102 deps.StaticLibs = append(deps.StaticLibs, stl.Properties.SelectedStl)
117 // TODO: Make a system STL prebuilt for the NDK.
118 // The system STL doesn't have a prebuilt (it uses the system's libstdc++), but it does have
122 deps.SharedLibs = append(deps.SharedLibs, stl.Properties.SelectedStl,
125 deps.StaticLibs = append(deps.StaticLibs, stl.Properties.SelectedStl)
128 deps.SharedLibs = append(deps.SharedLibs, stl.Properties.SelectedStl)
130 deps.StaticLibs = append(deps.StaticLibs, stl.Properties.SelectedStl)
132 panic(fmt.Errorf("Unknown stl: %q", stl.Properties.SelectedStl))
138 func (stl *stl) flags(ctx ModuleContext, flags Flags) Flags {
139 switch stl.Properties.SelectedStl {
159 ndkSrcRoot := android.PathForSource(ctx, "prebuilts/ndk/current/sources/cxx-stl/system/include")
178 panic(fmt.Errorf("Unknown stl: %q", stl.Properties.SelectedStl))