pkgconfig

package module
v0.0.0-...-6351b37 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

README

go-pkgconfig

Go package for wrangling pkg-config data

Documentation

Index

Constants

View Source
const (
	VersionEqual            = VersionCompare(0)
	VersionLessThan         = VersionCompare(-2)
	VersionLessThanEqual    = VersionCompare(-1)
	VersionGreaterThanEqual = VersionCompare(1)
	VersionGreaterThan      = VersionCompare(2)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Identifier     string
	VersionCompare VersionCompare
	Version        string
}

Dependency describes a dependency relationship between pkg-config files.

type DependencyList

type DependencyList struct {
	Key          string
	Dependencies []Dependency
}

type Package

type Package struct {
	Vars map[string]string

	Name          string
	Description   string
	Version       string
	URL           string
	Cflags        string
	CflagsPrivate string
	Libs          string
	LibsPrivate   string

	Requires         []Dependency
	RequiresPrivate  []Dependency
	RequiresInternal []Dependency
	Provides         []Dependency
}

Package contains the relevant information from a pkg-config file.

func Load

func Load(path string) (*Package, error)

Load loads a pkg-config data file from disk and returns a Package or an error.

func Parse

func Parse(data string) (*Package, error)

Parse parses a pkg-config data blob into a Package or returns an error.

type Property

type Property struct {
	Key   string
	Value string
}

type Variable

type Variable struct {
	Key   string
	Value string
}

type VersionCompare

type VersionCompare int

Jump to

Keyboard shortcuts

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