backend

package
v0.0.0-...-472ff39 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

The backend package provides platform specific configuration for the generator. Based on the type of generator used, different paths will be required.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(env *config.EnvironmentVariables, cfg *config.Properties)

Types

type AndroidPlatform

type AndroidPlatform struct {
	// contains filtered or unexported fields
}

func (*AndroidPlatform) BinaryOutputDir

func (g *AndroidPlatform) BinaryOutputDir(toolchain.TgtType) string

func (*AndroidPlatform) BobScriptsDir

func (g *AndroidPlatform) BobScriptsDir() string

func (*AndroidPlatform) BuildDir

func (g *AndroidPlatform) BuildDir() string

func (*AndroidPlatform) EscapeFlag

func (g *AndroidPlatform) EscapeFlag(s string) string

func (*AndroidPlatform) GetToolchain

func (g *AndroidPlatform) GetToolchain(tgt toolchain.TgtType) toolchain.Toolchain

func (*AndroidPlatform) Init

func (g *AndroidPlatform) Init(config *config.Properties)

func (*AndroidPlatform) KernelModOutputDir

func (g *AndroidPlatform) KernelModOutputDir() string

func (*AndroidPlatform) SharedLibsDir

func (g *AndroidPlatform) SharedLibsDir(toolchain.TgtType) string

func (*AndroidPlatform) SourceDir

func (g *AndroidPlatform) SourceDir() string

func (*AndroidPlatform) SourceOutputDir

func (g *AndroidPlatform) SourceOutputDir(m blueprint.Module) string

func (*AndroidPlatform) StaticLibOutputDir

func (g *AndroidPlatform) StaticLibOutputDir(tgt toolchain.TgtType) string

type LinuxPlatform

type LinuxPlatform struct {
	// contains filtered or unexported fields
}

func (*LinuxPlatform) BinaryOutputDir

func (g *LinuxPlatform) BinaryOutputDir(tgt toolchain.TgtType) string

func (*LinuxPlatform) BobScriptsDir

func (g *LinuxPlatform) BobScriptsDir() string

func (*LinuxPlatform) BuildDir

func (g *LinuxPlatform) BuildDir() string

func (*LinuxPlatform) EscapeFlag

func (g *LinuxPlatform) EscapeFlag(s string) string

func (*LinuxPlatform) GetToolchain

func (g *LinuxPlatform) GetToolchain(tgt toolchain.TgtType) toolchain.Toolchain

func (*LinuxPlatform) Init

func (g *LinuxPlatform) Init(config *config.Properties)

func (*LinuxPlatform) KernelModOutputDir

func (g *LinuxPlatform) KernelModOutputDir() string

func (*LinuxPlatform) SharedLibsDir

func (g *LinuxPlatform) SharedLibsDir(tgt toolchain.TgtType) string

func (*LinuxPlatform) SourceDir

func (g *LinuxPlatform) SourceDir() string

func (*LinuxPlatform) SourceOutputDir

func (g *LinuxPlatform) SourceOutputDir(m blueprint.Module) string

func (*LinuxPlatform) StaticLibOutputDir

func (g *LinuxPlatform) StaticLibOutputDir(tgt toolchain.TgtType) string

type Platform

type Platform interface {
	BuildDir() string
	SourceDir() string
	BobScriptsDir() string
	SourceOutputDir(blueprint.Module) string
	SharedLibsDir(tgt toolchain.TgtType) string
	StaticLibOutputDir(tgt toolchain.TgtType) string
	BinaryOutputDir(tgt toolchain.TgtType) string
	KernelModOutputDir() string
	EscapeFlag(string) string
	Init(*config.Properties)
	GetToolchain(tgt toolchain.TgtType) toolchain.Toolchain
}

Backend platform singleton. Abstracts platform specific (AOSP, Ninja) parameters and stores toolchains.

func Get

func Get() Platform

func NewAndroidPlatform

func NewAndroidPlatform(env *config.EnvironmentVariables, cfg *config.Properties) Platform

Jump to

Keyboard shortcuts

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