Lines Matching full:go
15 # This file provides GN build integration for Go. These templates are limited,
21 # Defines a Go package.
23 # A Go package consists of one or more Go files in a single directory. The
24 # package can depend on other Go packages or generated Go code.
27 # sources: List of Go source files.
29 # external_deps: Optional list of Go package dependencies outside of Pigweed.
34 # # In //my_module/go/src/example.com/foo/BUILD.gn
36 # sources = [ "main.go" ]
43 # gopath = "//my_module/go"
72 # Builds a Go executable from a Go package.
74 # The package must include only a main.go file labelled "package main". It may
75 # depend on other Go packages defined in the build.
78 # deps: List of size one specifying the GN path to the Go package target.
79 # package: Name of the Go package as resolved by the Go compiler.
83 # # In //my_module/go
85 # deps = [ "//my_module/go/src/example.com/foo:foo_package" ]
91 "pw_go_executable requires at least one Go package as a dependency")
115 _default_gopath = rebase_path("$root_gen_dir/go")
118 # GOPATH in the out directory. This is only run once; "go get" does not
122 program = "go"
128 # If the args file is empty, don't run the "go get" command.
135 # Run a "go build" command with the environment configured from metadata.
137 program = "go"