bpwriter

package
v0.0.0-...-c3cb3ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Escape

func Escape(s string) string

func EscapeList

func EscapeList(slice []string) []string

Types

type File

type File interface {
	NewModule(modType, name string) (Module, error)
	Render(b *strings.Builder)
}

Content for an Android.bp file

func FileFactory

func FileFactory() File

type Group

type Group interface {
	AddString(name, value string)
	AddOptionalString(name string, value *string)
	AddBool(name string, value bool)
	AddOptionalBool(name string, value *bool)
	AddStringList(name string, list []string)
	AddStringCmd(name string, argLists ...[]string)
	AddInt(name string, value int)
	NewGroup(name string) Group
	NewGroupList(name string) GroupList
}

Adjacent properties within an Android.bp file

type GroupList

type GroupList interface {
	NewGroup(name string) Group
}

Group list cannot have inner list. Only group is able to have inner group list

type Module

type Module interface {
	Group
}

Arbitrary Android.bp module

No locking for modules, as the creation of each module is done in a single thread.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL