config

package
v0.0.0-...-8c24a35 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadProfiles

func LoadProfiles(configPath string) (map[string]Profile, error)

LoadProfiles load all profiles inside config file in the specified configPath.

func SaveProfiles

func SaveProfiles(configPath string, profiles map[string]Profile) error

SaveProfiles saves the profile as JSON in the specified configPath.

Types

type Profile

type Profile struct {
	OS     string
	Arch   string
	Static bool

	Qmake   string
	Moc     string
	Rcc     string
	Gcc     string
	Gxx     string
	Windres string
	Objdump string
}

Profile is struct containing path to qmake, moc, rcc, C compiler and C++ compiler

func LoadProfile

func LoadProfile(configPath string, name string) (Profile, error)

LoadProfile loads profile with specified name from config file.

Jump to

Keyboard shortcuts

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