sun::driver::SunConfig

sun::driver::SunConfig

struct · Source (opens in a new tab)

struct sun::driver::SunConfig

Parsed project configuration used to build and run Sun targets.

Public Functions

findFrom

public · function · static · Source (opens in a new tab)

std::optional< SunConfig > sun::driver::SunConfig::findFrom(const std::filesystem::path &startDir, const std::string &targetTriple="")

The merged view of every sun-config.json in startDir and its parents (nearest definitions win, search dirs and entrypoints concatenate nearest-first, a "root": true file ends the walk); nullopt when no folder has one.

Related: SunConfig

loadFile

public · function · static · Source (opens in a new tab)

SunConfig sun::driver::SunConfig::loadFile(const std::filesystem::path &file, const std::string &targetTriple="")

Parse a config and select settings for the requested target or host.

Report malformed content, invalid target settings, and unknown keys.

Related: SunConfig

Public Fields

configDir

public · variable · Source (opens in a new tab)

std::filesystem::path sun::driver::SunConfig::configDir

No documentation comment.

dependencies

public · variable · Source (opens in a new tab)

std::map<std::string, ConfigDependency> sun::driver::SunConfig::dependencies

No documentation comment.

Related: ConfigDependency

entrypoints

public · variable · Source (opens in a new tab)

std::vector<ConfigEntrypoint> sun::driver::SunConfig::entrypoints

No documentation comment.

Related: ConfigEntrypoint

kFileName

public · variable · static · Source (opens in a new tab)

const char* sun::driver::SunConfig::kFileName = "sun-config.json"

No documentation comment.

packages

public · variable · Source (opens in a new tab)

std::vector<ConfigPackage> sun::driver::SunConfig::packages

No documentation comment.

Related: ConfigPackage

pathVariables

public · variable · Source (opens in a new tab)

std::map<std::string, std::string> sun::driver::SunConfig::pathVariables

No documentation comment.

root

public · variable · Source (opens in a new tab)

bool sun::driver::SunConfig::root = false

No documentation comment.

sunPath

public · variable · Source (opens in a new tab)

std::vector<std::string> sun::driver::SunConfig::sunPath

No documentation comment.

targetTriple

public · variable · Source (opens in a new tab)

std::string sun::driver::SunConfig::targetTriple

No documentation comment.