buildtoolmodel

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package buildtoolmodel contains the model for buildtool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies interface {
	// AbsoluteCurDir returns the absolute current directory.
	AbsoluteCurDir() string

	// AndroidNDKCheck checks we have the right NDK
	// inside the SDK and returns its dir.
	AndroidNDKCheck(androidHome string) string

	// AndroidSDKCheck ensures we have the right
	// tools installed to build for Android. This
	// function returns the Android home path.
	AndroidSDKCheck() string

	// GOOS returns the current GOOS.
	GOOS() string

	// GOPATH returns the current GOPATH.
	GOPATH() string

	// GolangCheck ensures we have the correct
	// version of golang as the "go" binary.
	GolangCheck()

	// LinuxWriteDockerfile writes the dockerfile for linux.
	LinuxWriteDockerfile(filename string, content []byte, mode fs.FileMode)

	// LinuxReadGOVERSION reads the GOVERSION file for linux.
	LinuxReadGOVERSION(filename string) []byte

	// MustChdir changes the current working directory and returns the
	// function to return to the original working directory.
	MustChdir(dirname string) func()

	// PsiphonFilesExist returns true if the psiphon
	// config files are in the correct location.
	PsiphonFilesExist() bool

	// PsiphonMaybeCopyConfigFiles copies psiphon
	// config files if possible
	PsiphonMaybeCopyConfigFiles()

	// VerifySHA256 verifies that the tarball has the given checksum.
	VerifySHA256(expectedSHA256, tarball string)

	// WindowsMingwCheck makes sure we're using the
	// expected version of mingw-w64.
	WindowsMingwCheck()

	// XCRun executes Xcode's xcrun tool with the given arguments and returns
	// the first line of text emitted by xcrun or PANICS on failure.
	XCRun(args ...string) string
}

Dependencies abstracts the commands and checks required to perform all the builds in this package.

Jump to

Keyboard shortcuts

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