Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultArchForHost ¶
DefaultArchForHost returns the default Qt arch for a given host platform identifier (e.g. "windows_arm64"). This is used when --host overrides auto-detection so the default arch matches the target host, not the local machine. Returns "" if the host is unrecognized.
func GOARCH ¶
func GOARCH() string
GOARCH returns the current architecture (mirrors runtime.GOARCH).
func GOOS ¶
func GOOS() string
GOOS returns the current operating system name (mirrors runtime.GOOS).
func VCRedistPresent ¶
VCRedistPresent checks whether the Visual C++ redistributable is installed.
Types ¶
type Darwin ¶
type Darwin struct{}
Darwin implements Platform for macOS.
func (*Darwin) CheckCompilerPresent ¶
func (*Darwin) DefaultArch ¶
func (*Darwin) DefaultInstallDir ¶
type Linux ¶
type Linux struct{}
Linux implements Platform for Linux.
func (*Linux) DefaultArch ¶
func (*Linux) DefaultInstallDir ¶
type Platform ¶
type Platform interface {
// DefaultInstallDir returns the default Qt install directory.
DefaultInstallDir() string
// DefaultArch returns the recommended Qt arch for this machine.
DefaultArch(qtVersion string) string
// CheckCompilerPresent reports whether the expected compiler for arch is available.
CheckCompilerPresent(arch string) (bool, string)
}
Platform provides platform-specific information and defaults.
type Windows ¶
type Windows struct{}
Windows implements Platform for Windows.