pkgconfig

package module
v0.0.0-...-897a0d5 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: MIT Imports: 13 Imported by: 0

README

cmd/pkg-config GoDoc Build Status Build Status Build status

Go-centric and GOPATH-aware pkg-config replacement for a use with the cgo tool.

Installation

$ go get github.com/rjeczalik/pkgconfig/cmd/pkg-config

Documentation

godoc.org/github.com/rjeczalik/pkgconfig/cmd/pkg-config

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyPC = errors.New("the package configuration is empty")

ErrEmptyPC TODO(rjeczalik): document

Functions

func GopathLibrary

func GopathLibrary(path, pkg string) (include, lib string)

GopathLibrary TODO(rjeczalik): document

Types

type PC

type PC struct {
	Name        string
	Desc        string
	Version     string
	URL         string
	Libs        []string
	LibsPrivate []string
	Cflags      []string
	File        string
}

PC TODO(rjeczalik): document

func DefaultLookup

func DefaultLookup(pkg string) (pc *PC, err error)

DefaultLookup TODO(rjeczalik): document

func GenerateGopath

func GenerateGopath(pkg string) (*PC, error)

GenerateGopath TODO(rjeczalik): document

func LookupGithub

func LookupGithub(pkg string) (*PC, error)

LookupGithub TODO(rjeczalik): document

func LookupGithubProj

func LookupGithubProj(pkg, proj string) (*PC, error)

LookupGithunProj TODO(rjeczalik): document

func LookupGopath

func LookupGopath(pkg string) (*PC, error)

LookupGopath TODO(rjeczalik): document

func LookupPC

func LookupPC(pkg string) (*PC, error)

LookupPC TODO(rjeczalik): document

func NewPC

func NewPC(r io.Reader) (*PC, error)

NewPC TODO(rjeczalik): document

func NewPCVars

func NewPCVars(r io.Reader, vars map[string]string) (pc *PC, err error)

NewPCVars TODO(rjeczalik): document

func (*PC) WriteTo

func (pc *PC) WriteTo(w io.Writer) (int64, error)

WriteTo TODO(rjeczalik): document

type Pkg

type Pkg struct {
	Packages []string
	Libs     bool
	Cflags   bool
	Lookup   func(string) (*PC, error)
	// contains filtered or unexported fields
}

Pkg TODO(rjeczalik): document

func NewPkgArgs

func NewPkgArgs(args []string) *Pkg

NewPkgArgs TODO(rjeczalik): document

func (*Pkg) Resolve

func (pkg *Pkg) Resolve() error

Resolve TODO(rjeczalik): document

func (Pkg) WriteTo

func (pkg Pkg) WriteTo(w io.Writer) (int64, error)

WriteTo TODO(rjeczalik): document

Notes

Bugs

  • Handle spaces in paths.

  • Handle spaces in paths.

  • Handle spaces in paths.

Directories

Path Synopsis
cmd
pkg-config
cmd/pkg-config is a Go-centric and GOPATH-aware pkg-config replacement for use with the cgo tool.
cmd/pkg-config is a Go-centric and GOPATH-aware pkg-config replacement for use with the cgo tool.

Jump to

Keyboard shortcuts

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