From 02d0f0e752ec9d9ab099c7005a9eedd7bf4b94a1 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 2 Jun 2022 17:18:37 -0400 Subject: cmCxxModuleMapper: add source to handle module mapper contents This will allow all generators to share an implementation for actually writing out the module map formats. --- Source/cmCxxModuleMapper.cxx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Source/cmCxxModuleMapper.cxx (limited to 'Source/cmCxxModuleMapper.cxx') diff --git a/Source/cmCxxModuleMapper.cxx b/Source/cmCxxModuleMapper.cxx new file mode 100644 index 0000000000..ddb95e38dd --- /dev/null +++ b/Source/cmCxxModuleMapper.cxx @@ -0,0 +1,30 @@ +/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying + file Copyright.txt or https://cmake.org/licensing for details. */ +#include "cmCxxModuleMapper.h" + +#include + +#include "cmScanDepFormat.h" + +cm::optional CxxModuleLocations::BmiGeneratorPathForModule( + std::string const& logical_name) const +{ + if (auto l = this->BmiLocationForModule(logical_name)) { + return this->PathForGenerator(*l); + } + return {}; +} + +cm::static_string_view CxxModuleMapExtension( + cm::optional format) +{ + return ".bmi"_s; +} + +std::string CxxModuleMapContent(CxxModuleMapFormat format, + CxxModuleLocations const& loc, + cmScanDepInfo const& obj) +{ + assert(false); + return {}; +} -- cgit v1.2.1