build

package
v0.0.0-...-c2f03b5 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2014 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	GOROOT        string
	GOPATH        string
	Verbose       bool
	Watch         bool
	CreateMapFile bool
	Minify        bool
}

func (*Options) Normalize

func (o *Options) Normalize()

type PackageData

type PackageData struct {
	*build.Package
	SrcModTime time.Time
	UpToDate   bool
	Archive    *compiler.Archive
}

type Session

type Session struct {
	T        *compiler.Compiler
	Packages map[string]*PackageData

	Watcher *fsnotify.Watcher
	// contains filtered or unexported fields
}

func NewSession

func NewSession(options *Options) *Session

func (*Session) ArchSuffix

func (s *Session) ArchSuffix() string

func (*Session) BuildDir

func (s *Session) BuildDir(packagePath string, importPath string, pkgObj string) error

func (*Session) BuildFiles

func (s *Session) BuildFiles(filenames []string, pkgObj string, packagePath string) error

func (*Session) BuildPackage

func (s *Session) BuildPackage(pkg *PackageData) error

func (*Session) ImportDependencies

func (s *Session) ImportDependencies(pkg *PackageData) ([]*compiler.Archive, error)

func (*Session) ImportPackage

func (s *Session) ImportPackage(path string) (*compiler.Archive, error)

func (*Session) WaitForChange

func (s *Session) WaitForChange()

func (*Session) WriteCommandPackage

func (s *Session) WriteCommandPackage(pkg *PackageData, pkgObj string) error

Jump to

Keyboard shortcuts

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