// SPDX-License-Identifier: LGPL-3.0-only // SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts® export module Crafter.Build:Implementation; import std; import :Jobs; namespace fs = std::filesystem; namespace Crafter { export class Module; export class ModulePartition; export class Implementation { public: std::vector moduleDependencies; std::vector partitionDependencies; std::vector> externalModuleDependencies; // See ModulePartition::pendingImports — imports this TU declared that // no reachable Configuration provided when the source was scanned. std::vector pendingImports; fs::path path; Implementation(fs::path&& path); // Whether `object`, the object Build() keeps for this unit // (ObjectPath), has to be written again. bool Check(const fs::path& object, const fs::path& pcmDir, fs::file_time_type sourceFloor = fs::file_time_type::min()) const; // Adds the job that compiles this unit into `object` to `jobs`, after // the BMIs of the stale interface units it imports // (ModulePartition::Schedule, Module::Schedule), whose own objects go // to `buildDir`. For a unit Check found stale. `shown` is the source // as the job's progress line names it. void Schedule(JobGroup& jobs, std::string_view clang, const fs::path& pcmDir, const fs::path& buildDir, const fs::path& object, std::string_view shown) const; }; }