sun::driver::SunConfig
struct · Source (opens in a new tab)
struct sun::driver::SunConfigParsed 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
- configDir
- configFile
- dependencies
- entrypoints
- exceptionTraceDepth
- exports
- fmtIgnore
- kFileName
- packageId
- packages
- pathVariables
- projects
- resolvedDependencies
- root
- steps
- sunPath
- systemDependencies
- targetSupported
- targetTriple
cBindings
public · variable · Source (opens in a new tab)
std::map<std::string, ConfigCBinding> sun::driver::SunConfig::cBindingsNo documentation comment.
Related: ConfigCBinding
configDir
public · variable · Source (opens in a new tab)
std::filesystem::path sun::driver::SunConfig::configDirNo documentation comment.
configFile
public · variable · Source (opens in a new tab)
std::filesystem::path sun::driver::SunConfig::configFileNo documentation comment.
dependencies
public · variable · Source (opens in a new tab)
std::map<std::string, ConfigDependency> sun::driver::SunConfig::dependenciesNo documentation comment.
Related: ConfigDependency
entrypoints
public · variable · Source (opens in a new tab)
std::vector<ConfigEntrypoint> sun::driver::SunConfig::entrypointsNo documentation comment.
Related: ConfigEntrypoint
exceptionTraceDepth
public · variable · Source (opens in a new tab)
std::optional<unsigned> sun::driver::SunConfig::exceptionTraceDepthNo documentation comment.
exports
public · variable · Source (opens in a new tab)
std::vector<ConfigResource> sun::driver::SunConfig::exportsNo documentation comment.
Related: ConfigResource
fmtIgnore
public · variable · Source (opens in a new tab)
std::vector<ConfigFmtIgnore> sun::driver::SunConfig::fmtIgnoreNo 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::packageIdNo documentation comment.
packages
public · variable · Source (opens in a new tab)
std::vector<ConfigPackage> sun::driver::SunConfig::packagesNo documentation comment.
Related: ConfigPackage
pathVariables
public · variable · Source (opens in a new tab)
std::map<std::string, std::string> sun::driver::SunConfig::pathVariablesNo documentation comment.
projects
public · variable · Source (opens in a new tab)
std::vector<std::string> sun::driver::SunConfig::projectsNo documentation comment.
resolvedDependencies
public · variable · Source (opens in a new tab)
std::map<std::string, std::string> sun::driver::SunConfig::resolvedDependenciesNo documentation comment.
root
public · variable · Source (opens in a new tab)
bool sun::driver::SunConfig::root = falseNo documentation comment.
steps
public · variable · Source (opens in a new tab)
std::vector<ConfigBuildStep> sun::driver::SunConfig::stepsNo documentation comment.
Related: ConfigBuildStep
sunPath
public · variable · Source (opens in a new tab)
std::vector<std::string> sun::driver::SunConfig::sunPathNo documentation comment.
systemDependencies
public · variable · Source (opens in a new tab)
std::vector<ConfigSystemDependency> sun::driver::SunConfig::systemDependenciesNo documentation comment.
Related: ConfigSystemDependency
targetSupported
public · variable · Source (opens in a new tab)
bool sun::driver::SunConfig::targetSupported =
trueNo documentation comment.
targetTriple
public · variable · Source (opens in a new tab)
std::string sun::driver::SunConfig::targetTripleNo documentation comment.