Crafter.Build/interfaces/Crafter.Build-Implementation.cppm

39 lines
1.5 KiB
Text
Raw Normal View History

2025-10-31 16:50:47 +01:00
/*
Crafter® Build
2026-03-09 20:14:44 +01:00
Copyright (C) 2026 Catcrafts®
2025-10-31 16:50:47 +01:00
Catcrafts.net
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 3.0 as published by the Free Software Foundation;
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
module;
#include "Crafter.Build-Api.h"
2025-10-31 16:50:47 +01:00
export module Crafter.Build:Implementation;
import std;
namespace fs = std::filesystem;
namespace Crafter {
export class Module;
export class ModulePartition;
export class Implementation {
public:
std::vector<Module*> moduleDependencies;
std::vector<ModulePartition*> partitionDependencies;
2026-04-27 07:04:42 +02:00
std::vector<std::pair<Module*, fs::path>> externalModuleDependencies;
2025-10-31 16:50:47 +01:00
fs::path path;
CRAFTER_API Implementation(fs::path&& path);
CRAFTER_API bool Check(const fs::path& buildDir, const fs::path& pcmDir, fs::file_time_type sourceFloor = fs::file_time_type::min()) const;
CRAFTER_API void Compile(const std::string_view clang, const fs::path& buildDir, std::atomic<bool>& buildCancelled, std::string& buildError) const;
2025-10-31 16:50:47 +01:00
};
}