defaultadapter

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 15 Imported by: 0

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

func Parse

func Parse(c interface{}) (*Config, error)

Parse parses a Config

type DefaultAdapter

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

DefaultAdapter is the builtin adapter used by default in c3pm

func New

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

type LinuxConfig

type LinuxConfig struct {
	UsePthread bool `yaml:"use_pthread"`
}

LinuxConfig holds specific configuration on Linux operating systems.

Jump to

Keyboard shortcuts

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