gn

package
v0.0.0-...-3c039c4 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package gn implements GN related functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonFlags

type CommonFlags struct {
	subcommands.CommandRunBase
	Args                string
	Color               bool
	Dotfile             string
	FailOnUnusedArgs    bool
	Markdown            bool
	NoColor             bool
	NinjaExecutable     string
	ScriptExecutable    string
	Quiet               bool
	Root                string
	RootTarget          string
	RootPattern         string
	RuntimeDepsListFile string
	Threads             int
	Time                bool
	Tracelog            string
}

CommonFlags contains flags shared amongst all subcommands.

func (*CommonFlags) InitFlags

func (c *CommonFlags) InitFlags()

InitFlags initializes the common flags.

type Setup

type Setup struct {
	// contains filtered or unexported fields
}

Setup is helper to set up the build settings and environment for the various commands to run.

func NewSetup

func NewSetup() *Setup

NewSetup creates a new Setup helper.

func (*Setup) DoSetup

func (s *Setup) DoSetup(buildDir string, forceCreate bool, flags *CommonFlags) error

DoSetup configures the build for the current command line.

func (*Setup) FillSourceDir

func (s *Setup) FillSourceDir(flags *CommonFlags) error

FillSourceDir fills the root directory into the settings.

func (*Setup) RunConfigFile

func (s *Setup) RunConfigFile() error

RunConfigFile runs the config file.

Directories

Path Synopsis
Package build builds a graph of GN targets based on an invocation.
Package build builds a graph of GN targets based on an invocation.
Package fs provides representation of GN input files.
Package fs provides representation of GN input files.
Package parse converts GN syntax tokens into an AST.
Package parse converts GN syntax tokens into an AST.
Package resolve provides an environment for executing a GN AST.
Package resolve provides an environment for executing a GN AST.
Package syntax implements GN syntax tokenizer and parser.
Package syntax implements GN syntax tokenizer and parser.

Jump to

Keyboard shortcuts

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