sun::moon_bundling::MoonBuilder

sun::moon_bundling::MoonBuilder

class · Source (opens in a new tab)

class sun::moon_bundling::MoonBuilder

Compiles source modules and packages them into a reusable Moon library.

Public Functions

build

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

MoonBuildReport sun::moon_bundling::MoonBuilder::build(const std::string &entrypoint, const std::filesystem::path &outputPath, const MoonBuildOptions &options={})

Build outputPath from entrypoint.

A bundle already there and built from the same inputs is left alone (see input_hash.h) unless options.forceRebuild or debug output asks for the work anyway. Throws SunError on manifest, proto import, compilation, bundle write, or debug output failure.

Related: MoonBuildReport, MoonBuildOptions, input_hash.h, SunError

defaultOutputPath

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

std::filesystem::path sun::moon_bundling::MoonBuilder::defaultOutputPath(const std::string &entrypoint)

Default output path for an entrypoint: <entrypoint without .sun>.moon.