• Home
  • Raw
  • Download

Lines Matching refs:b

92 func (b *bindgenDecorator) getStdVersion(ctx ModuleContext, src android.Path) (string, bool) {
102 if String(b.ClangProperties.Cpp_std) != "" && String(b.ClangProperties.C_std) != "" {
106 if String(b.ClangProperties.Cpp_std) != "" {
107 if String(b.ClangProperties.Cpp_std) == "experimental" {
109 } else if String(b.ClangProperties.Cpp_std) == "default" {
112 stdVersion = String(b.ClangProperties.Cpp_std)
114 } else if b.ClangProperties.C_std != nil {
115 if String(b.ClangProperties.C_std) == "experimental" {
117 } else if String(b.ClangProperties.C_std) == "default" {
120 stdVersion = String(b.ClangProperties.C_std)
131 func (b *bindgenDecorator) GenerateSource(ctx ModuleContext, deps PathDeps) android.Path {
162 for _, flag := range b.ClangProperties.Cflags {
174 cflags = append(cflags, esc(b.ClangProperties.Cflags)...)
175 for _, include := range b.ClangProperties.Local_include_dirs {
181 bindgenFlags = append(bindgenFlags, esc(b.Properties.Bindgen_flags)...)
183 wrapperFile := android.OptionalPathForModuleSrc(ctx, b.Properties.Wrapper_src)
189 stdVersion, isCpp := b.getStdVersion(ctx, wrapperFile.Path())
196 cflags = append(cflags, esc(b.ClangProperties.Cppflags)...)
201 outputFile := android.PathForModuleOut(ctx, b.BaseSourceProvider.getStem(ctx)+".rs")
204 if b.Properties.Custom_bindgen != "" {
205 …cmd = ctx.GetDirectDepWithTag(b.Properties.Custom_bindgen, customBindgenDepTag).(*Module).HostTool…
206 cmdDesc = b.Properties.Custom_bindgen
225 b.BaseSourceProvider.OutputFiles = android.Paths{outputFile}
229 func (b *bindgenDecorator) SourceProviderProps() []interface{} {
230 return append(b.BaseSourceProvider.SourceProviderProps(),
231 &b.Properties, &b.ClangProperties)
261 func (b *bindgenDecorator) SourceProviderDeps(ctx DepsContext, deps Deps) Deps {
262 deps = b.BaseSourceProvider.SourceProviderDeps(ctx, deps)
267 deps.SharedLibs = append(deps.SharedLibs, b.ClangProperties.Shared_libs...)
268 deps.StaticLibs = append(deps.StaticLibs, b.ClangProperties.Static_libs...)
269 deps.HeaderLibs = append(deps.StaticLibs, b.ClangProperties.Header_libs...)