Documentation
¶
Index ¶
- func RemoveInstallSysroot() error
- type BuiltPackage
- type BuiltPackages
- type Sysroot
- func (sysroot *Sysroot) CheckPrerequisites(args *prerequisites.Args) error
- func (sysroot *Sysroot) CopyToSysroot(source string, pack BuiltPackage) error
- func (sysroot *Sysroot) CreateSysrootDir()
- func (sysroot *Sysroot) FillDefault(*prerequisites.Args) error
- func (sysroot *Sysroot) FillDynamic(*prerequisites.Args) error
- func (sysroot *Sysroot) GetDirNameInSysroot() string
- func (sysroot *Sysroot) GetSysrootPath() string
- func (sysroot *Sysroot) IsPackageInSysroot(pack BuiltPackage) bool
- func (sysroot *Sysroot) IsSysrootDirectoryEmpty() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveInstallSysroot ¶
func RemoveInstallSysroot() error
Types ¶
type BuiltPackage ¶
Represents one built Package in sysroot. Before build of a Package, this struct is created and compared to already built Packages in sysroot (a json file in sysroot directory), if any field is changed, the build is performed, else it is skipped. At the end the struct in form of a json is saved to sysroot directory.
func (*BuiltPackage) CheckPrerequisites ¶
func (builtPackage *BuiltPackage) CheckPrerequisites(*prerequisites.Args) error
func (*BuiltPackage) FillDefault ¶
func (builtPackage *BuiltPackage) FillDefault(*prerequisites.Args) error
func (*BuiltPackage) FillDynamic ¶
func (builtPackage *BuiltPackage) FillDynamic(args *prerequisites.Args) error
type BuiltPackages ¶
type BuiltPackages struct {
Packages []BuiltPackage
}
Contains built Packages in sysroot and has functions for Json encoding and decoding of built Packages.
func (*BuiltPackages) AddToBuiltPackages ¶
func (builtPackages *BuiltPackages) AddToBuiltPackages(pack BuiltPackage) error
AddToBuiltPackages Adds packageName to built Packages.
func (*BuiltPackages) Contains ¶
func (builtPackages *BuiltPackages) Contains(pack BuiltPackage) bool
Contains Returns true if given Package is in builtPackages, else false. All fields of BuiltPackage struct are compared. Only if the pack has empty GitCommitHash, the GitCommitHash is not compared.
type Sysroot ¶
type Sysroot struct {
// IsDebug - if true, it marks given sysroot as a sysroot with Debud builds
IsDebug bool
// PlatformString
PlatformString *bacpack_package.PlatformString
// contains filtered or unexported fields
}
Sysroot represents a standard Linux sysroot with all needed libraries installed. Sysroot for each build type (Release, Debug) the separate sysroot is created
func (*Sysroot) CheckPrerequisites ¶
func (sysroot *Sysroot) CheckPrerequisites(args *prerequisites.Args) error
func (*Sysroot) CopyToSysroot ¶
func (sysroot *Sysroot) CopyToSysroot(source string, pack BuiltPackage) error
CopyToSysroot copy source to a sysroot
func (*Sysroot) CreateSysrootDir ¶
func (sysroot *Sysroot) CreateSysrootDir()
CreateSysrootDir Creates a Sysroot dir. If not succeed the panic occurrs.
func (*Sysroot) FillDefault ¶
func (sysroot *Sysroot) FillDefault(*prerequisites.Args) error
func (*Sysroot) FillDynamic ¶
func (sysroot *Sysroot) FillDynamic(*prerequisites.Args) error
func (*Sysroot) GetDirNameInSysroot ¶
GetDirNameInSysroot Returns name of the directory inside Sysroot directory.
func (*Sysroot) GetSysrootPath ¶
GetSysrootPath Returns absolute path to the sysroot.
func (*Sysroot) IsPackageInSysroot ¶
func (sysroot *Sysroot) IsPackageInSysroot(pack BuiltPackage) bool
IsPackageInSysroot Returns true if Package specified by BuiltPackage struct is built in sysroot, else false. If gitCommitHash is empty, it is not checked.
func (*Sysroot) IsSysrootDirectoryEmpty ¶
IsSysrootDirectoryEmpty Returns true if specified dir do not exists or exists but is empty, otherwise returns false.