Documentation
¶
Overview ¶
Package options provides build and packaging option utilities, including binary stripping functionality.
Index ¶
- func Apply(packageDir string, o Options) error
- func Purge(packageDir string) error
- func RemoveDocs(packageDir string) error
- func RemoveEmptyDirs(packageDir string) error
- func RemoveLibtool(packageDir string) error
- func RemoveStatic(packageDir string) error
- func SetDebugDir(dir string)
- func Strip(packageDir string) error
- func ZipMan(packageDir string) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶
Apply runs all enabled/disabled option handlers against packageDir in the correct order (strip first, then cleanup passes).
func Purge ¶
Purge removes files matching PURGE_TARGETS from the package directory, mirroring makepkg's purge option.
func RemoveDocs ¶
RemoveDocs removes documentation directories from the package directory, mirroring makepkg's !docs option.
func RemoveEmptyDirs ¶
RemoveEmptyDirs removes empty directories from the package directory, mirroring makepkg's !emptydirs option. It walks bottom-up so that newly emptied parent dirs are also removed.
func RemoveLibtool ¶
RemoveLibtool removes libtool .la files from the package directory, mirroring makepkg's !libtool option.
func RemoveStatic ¶
RemoveStatic removes static library .a files from the package directory, mirroring makepkg's !static option.
func SetDebugDir ¶
func SetDebugDir(dir string)
SetDebugDir sets the output directory for debug symbols. This function is safe to call concurrently from multiple goroutines.