asset compression
Some checks failed
CI / build-test-release (push) Failing after 15m11s

This commit is contained in:
Jorijn van der Graaf 2026-05-12 01:16:40 +02:00
commit 03717b5f33
9 changed files with 230 additions and 14 deletions

View file

@ -125,6 +125,15 @@ export namespace Crafter {
std::vector<fs::path> buildFiles;
std::vector<Define> defines;
std::vector<Shader> shaders;
// Source assets (.png, .obj) compressed via Crafter.Asset's
// SaveCompressed → .ctex/.cmesh in this configuration's bin dir.
// Requires Crafter.Asset in cfg.dependencies (transitively): the
// build engine locates it by name and uses its library API to do
// the conversion (an auxiliary host-target executable, generated
// once per build host, links Crafter.Asset and is invoked per
// asset). Forwarded to a consuming executable's bin dir alongside
// .spv shaders and cfg.files entries.
std::vector<fs::path> assets;
std::vector<ExternalDependency> externalDependencies;
std::vector<std::string> compileFlags;
std::vector<std::string> linkFlags;