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

cBindings

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

std::map<std::string, ConfigCBinding> sun::driver::SunConfig::cBindings

No documentation comment.

Related: ConfigCBinding

configDir

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

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

No documentation comment.

configFile

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

std::filesystem::path sun::driver::SunConfig::configFile

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

exceptionTraceDepth

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

std::optional<unsigned> sun::driver::SunConfig::exceptionTraceDepth

No documentation comment.

exports

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

std::vector<ConfigResource> sun::driver::SunConfig::exports

No documentation comment.

Related: ConfigResource

fmtIgnore

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

std::vector<ConfigFmtIgnore> sun::driver::SunConfig::fmtIgnore

No documentation comment.

Related: ConfigFmtIgnore

kFileName

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

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

No documentation comment.

packageId

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

std::string sun::driver::SunConfig::packageId

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.

projects

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

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

No documentation comment.

resolvedDependencies

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

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

No documentation comment.

root

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

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

No documentation comment.

steps

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

std::vector<ConfigBuildStep> sun::driver::SunConfig::steps

No documentation comment.

Related: ConfigBuildStep

sunPath

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

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

No documentation comment.

systemDependencies

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

std::vector<ConfigSystemDependency> sun::driver::SunConfig::systemDependencies

No documentation comment.

Related: ConfigSystemDependency

targetSupported

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

bool sun::driver::SunConfig::targetSupported =
      true

No documentation comment.

targetTriple

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

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

No documentation comment.