Finality Engine
Loading...
Searching...
No Matches
BuildSupport.h File Reference

Shared support for native builds, IDE generation and engine build metadata. More...

#include <filesystem>
#include <map>
#include <string>
#include <vector>
#include <yaml-cpp/yaml.h>

Go to the source code of this file.

Classes

struct  FI::Build::Toolchain
 Installed compiler, SDK and build tool matching an engine's recorded ABI inputs. More...

Namespaces

namespace  FI
namespace  FI::Build

Typedefs

using FI::Build::Options = std::map<std::string, std::string>
 Parsed command-line switches; paths are encoded as UTF-8.

Functions

std::string FI::Build::Read (const fs::path &path)
void FI::Build::Write (const fs::path &path, const std::string &text)
std::string FI::Build::Text (const fs::path &path)
fs::path FI::Build::Path (const std::string &text)
std::string FI::Build::Hash (const std::string &bytes)
std::string FI::Build::HeaderHash (const fs::path &engine)
std::string FI::Build::Run (const std::vector< std::string > &args, const fs::path &cwd)
 Run an argument vector without a shell and capture output; throw on failure.
std::string FI::Build::Json (const YAML::Node &node)
std::string FI::Build::Xml (std::string text)
bool FI::Build::Inside (const fs::path &path, const fs::path &parent)
std::string FI::Build::Name (std::string text)
Toolchain FI::Build::FindToolchain (const fs::path &engine, const fs::path &bin, const std::string &config)
void FI::Build::GenerateIDE (const fs::path &root, const fs::path &engine, const fs::path &bin, const fs::path &source, const std::string &name, const std::string &config, const Toolchain &tools)
void FI::Build::Native (const Options &options)
void FI::Build::BuildInfo (const Options &options)
void FI::Build::Dependencies (const Options &options)

Detailed Description

Shared support for native builds, IDE generation and engine build metadata.

Definition in file BuildSupport.h.