Lines Matching refs:b
125 func (b *bindgenDecorator) getStdVersion(ctx ModuleContext, src android.Path) (string, bool) {
135 if String(b.ClangProperties.Cpp_std) != "" && String(b.ClangProperties.C_std) != "" {
139 if b.ClangProperties.Cpp_std != nil {
141 if String(b.ClangProperties.Cpp_std) == "experimental" {
143 …} else if String(b.ClangProperties.Cpp_std) == "default" || String(b.ClangProperties.Cpp_std) == "…
146 stdVersion = String(b.ClangProperties.Cpp_std)
148 } else if b.ClangProperties.C_std != nil {
150 if String(b.ClangProperties.C_std) == "experimental" {
152 } else if String(b.ClangProperties.C_std) == "default" || String(b.ClangProperties.C_std) == "" {
155 stdVersion = String(b.ClangProperties.C_std)
166 func (b *bindgenDecorator) GenerateSource(ctx ModuleContext, deps PathDeps) android.Path {
174 if Bool(b.Properties.Handle_static_inline) && b.Properties.Static_inline_library == nil {
179 if b.Properties.Static_inline_library != nil && !Bool(b.Properties.Handle_static_inline) {
239 cflagsProp := b.ClangProperties.Cflags.GetOrDefault(ctx, nil)
253 for _, include := range b.ClangProperties.Local_include_dirs {
259 bindgenFlags = append(bindgenFlags, esc(b.Properties.Bindgen_flags)...)
260 if Bool(b.Properties.Handle_static_inline) {
261 outputStaticFnsFile := android.PathForModuleOut(ctx, b.BaseSourceProvider.getStem(ctx)+".c")
270 for _, flagFile := range b.Properties.Bindgen_flag_files {
275 wrapperFile := android.OptionalPathForModuleSrc(ctx, b.Properties.Wrapper_src)
281 stdVersion, isCpp := b.getStdVersion(ctx, wrapperFile.Path())
288 cflags = append(cflags, esc(b.ClangProperties.Cppflags)...)
301 outputFile := android.PathForModuleOut(ctx, b.BaseSourceProvider.getStem(ctx)+".rs")
304 if b.Properties.Custom_bindgen != "" {
305 …cmd = ctx.GetDirectDepWithTag(b.Properties.Custom_bindgen, customBindgenDepTag).(android.HostToolP…
306 cmdDesc = b.Properties.Custom_bindgen
328 b.BaseSourceProvider.OutputFiles = android.Paths{outputFile}
335 …b.BaseSourceProvider.OutputFiles = append(b.BaseSourceProvider.OutputFiles, implicitOutputs.Paths(…
340 func (b *bindgenDecorator) SourceProviderProps() []interface{} {
341 return append(b.BaseSourceProvider.SourceProviderProps(),
342 &b.Properties, &b.ClangProperties)
380 func (b *bindgenDecorator) SourceProviderDeps(ctx DepsContext, deps Deps) Deps {
381 deps = b.BaseSourceProvider.SourceProviderDeps(ctx, deps)
388 if !ctx.RustModule().Source() && b.Properties.Static_inline_library != nil {
393 deps.StaticLibs = append(deps.StaticLibs, String(b.Properties.Static_inline_library))
396 deps.SharedLibs = append(deps.SharedLibs, b.ClangProperties.Shared_libs...)
397 deps.StaticLibs = append(deps.StaticLibs, b.ClangProperties.Static_libs...)
398 deps.HeaderLibs = append(deps.HeaderLibs, b.ClangProperties.Header_libs...)