Documentation
¶
Overview ¶
Package cmakegen handles the templating and generation of CMake configuration files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CurrentVersion, _ = manifest.VersionFromString("0.0.1")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Sources lists the project's source files. Sources []string `yaml:"sources"` // Headers lists the project's header files. Headers []string `yaml:"headers"` // TestSources lists the project's tests source files TestSources []string `yaml:"test_sources"` // TestHeaders list the tests' header files TestHeaders []string `yaml:"test_headers"` // IncludeDirs lists the projects additional header directories. IncludeDirs []string `yaml:"include_dirs"` // LinuxConfig holds Linux specific configuration LinuxConfig *LinuxConfig `yaml:"linux,omitempty"` }
Config holds the config for the builtin adapter
type DefaultAdapter ¶
type DefaultAdapter struct {
// contains filtered or unexported fields
}
DefaultAdapter is the builtin adapter used by default in c3pm
func New ¶
func New(adapterGetter adapter_interface.AdapterGetter) *DefaultAdapter
New creates a new builtin DefaultAdapter
func (*DefaultAdapter) Build ¶
func (a *DefaultAdapter) Build(pc *config.ProjectConfig) error
func (*DefaultAdapter) CmakeConfig ¶ added in v0.2.0
func (a *DefaultAdapter) CmakeConfig(_ *config.ProjectConfig) (string, error)
func (*DefaultAdapter) Targets ¶
func (a *DefaultAdapter) Targets(_ *config.ProjectConfig) ([]string, error)
func (*DefaultAdapter) Test ¶ added in v0.3.0
func (a *DefaultAdapter) Test(pc *config.ProjectConfig) error
type LinuxConfig ¶
type LinuxConfig struct {
UsePthread bool `yaml:"use_pthread"`
}
LinuxConfig holds specific configuration on Linux operating systems.
Click to show internal directories.
Click to hide internal directories.