Files
BloomPatched/src/Targets/TargetDescription/GeneratedMapping.hpp.in
Nav ec51a21846 - Began refactoring TDF build scripts
- Separated TDF validation and mapping generation
- Moving away from the JSON mapping file, to a generated header file containing the TDF mapping.
- Other bits of tidying
2023-12-12 23:19:21 +00:00

40 lines
1.0 KiB
C++

#pragma once
#include <string>
#include <map>
#include "src/Targets/TargetFamily.hpp"
namespace Targets::TargetDescription
{
struct GeneratedMapping
{
struct BriefTargetDescriptor
{
std::string targetName;
std::string configValue;
TargetFamily targetFamily;
std::string relativeTdfPath;
constexpr BriefTargetDescriptor(
const std::string& targetName,
const std::string& configValue,
TargetFamily targetFamily,
const std::string& relativeTdfPath
)
: targetName(targetName)
, configValue(configValue)
, targetFamily(targetFamily)
, relativeTdfPath(relativeTdfPath)
{}
};
/*
* The @MAPPING_PLACEHOLDER@ comment below will be replaced with the TDF mapping
*/
static const inline std::map<std::string, BriefTargetDescriptor> map = {
//@MAPPING_PLACEHOLDER@
};
};
}