Documentation
¶
Overview ¶
Package pkgconfig creates, configures, and queries pkg-config metadata.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StaticLibs ¶
StaticLibs returns the static linker flags for name.
Types ¶
type File ¶ added in v0.3.3
type File struct {
// contains filtered or unexported fields
}
File is pkg-config metadata ready to be written.
func (*File) Cflags ¶ added in v0.3.3
func (f *File) Cflags() *fragments
Cflags returns the compiler fragments.
type Spec ¶ added in v0.3.3
type Spec struct {
// Variables defines pkg-config variables. Values override the default
// prefix, exec_prefix, libdir, and includedir variables with the same name.
Variables map[string]string
// Name: The displayed name of the package.
Name string
// Description: A description of the package.
Description string
// Version: The version of the package.
Version string
// URL: A URL to a webpage for the package. This is used to recommend where
// newer versions of the package can be acquired.
URL string
// Requires: Required dependencies that must be met for the package to be
// usable. All dependencies must be satisfied or the pkg-config
// implementation must not use the package.
Requires []string
// Libs: Required linking flags for this package.
Libs []string
// Cflags: Required compiler flags. These flags are always used, regardless
// of whether static compilation is requested.
Cflags []string
}
Spec describes the variables and properties written to a pkg-config file.
Click to show internal directories.
Click to hide internal directories.