• Home
  • Raw
  • Download

Lines Matching refs:ctx

61 func (stl *stl) begin(ctx BaseModuleContext) {
67 if ctx.useSdk() && ctx.Device() {
80 ctx.ModuleErrorf("stl: %q is not a supported STL with sdk_version set", s)
83 } else if ctx.Windows() {
91 ctx.ModuleErrorf("stl: %q is not a supported STL for windows", s)
94 } else if ctx.Fuchsia() {
105 if ctx.static() {
111 ctx.ModuleErrorf("stl: %q is not a supported STL on Fuchsia", s)
121 if ctx.static() {
127 ctx.ModuleErrorf("stl: %q is not a supported STL", s)
134 func needsLibAndroidSupport(ctx BaseModuleContext) bool {
135 versionStr, err := normalizeNdkApiLevel(ctx, ctx.sdkVersion(), ctx.Arch())
137 ctx.PropertyErrorf("sdk_version", err.Error())
154 func (stl *stl) deps(ctx BaseModuleContext, deps Deps) Deps {
164 if ctx.toolchain().Bionic() {
165 if ctx.Arch().ArchType == android.Arm {
168 if ctx.staticBinary() {
185 if needsLibAndroidSupport(ctx) {
188 if ctx.Arch().ArchType == android.Arm {
198 func (stl *stl) flags(ctx ModuleContext, flags Flags) Flags {
203 if ctx.Darwin() {
215 if !ctx.toolchain().Bionic() {
218 if ctx.staticBinary() {
219 flags.LdFlags = append(flags.LdFlags, hostStaticGccLibs[ctx.Os()]...)
221 flags.LdFlags = append(flags.LdFlags, hostDynamicGccLibs[ctx.Os()]...)
223 if ctx.Windows() {
226 if ctx.Arch().ArchType == android.X86 {
238 if ctx.Arch().ArchType == android.Arm {
245 ndkSrcRoot := android.PathForSource(ctx, "prebuilts/ndk/current/sources/cxx-stl/system/include")
248 if ctx.Arch().ArchType == android.Arm {
254 if !ctx.toolchain().Bionic() {
257 if ctx.staticBinary() {
258 flags.LdFlags = append(flags.LdFlags, hostStaticGccLibs[ctx.Os()]...)
260 flags.LdFlags = append(flags.LdFlags, hostDynamicGccLibs[ctx.Os()]...)