From e66286ebe30afc9acc4531fc2bea29b7fb924f93 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Mon, 30 May 2022 17:03:20 -0700 Subject: Changeset: 56 Buildsystem cleanup: change to layered structure for different targets --- source/20-codegen-runtime/MacrosCodegen.hpp | 7 +++++++ source/20-codegen-runtime/Metadata.cpp | 1 + source/20-codegen-runtime/Metadata.hpp | 4 ++++ source/20-codegen-runtime/MetadataBase.cpp | 1 + source/20-codegen-runtime/MetadataBase.hpp | 14 ++++++++++++++ 5 files changed, 27 insertions(+) create mode 100644 source/20-codegen-runtime/MacrosCodegen.hpp create mode 100644 source/20-codegen-runtime/Metadata.cpp create mode 100644 source/20-codegen-runtime/Metadata.hpp create mode 100644 source/20-codegen-runtime/MetadataBase.cpp create mode 100644 source/20-codegen-runtime/MetadataBase.hpp (limited to 'source/20-codegen-runtime') diff --git a/source/20-codegen-runtime/MacrosCodegen.hpp b/source/20-codegen-runtime/MacrosCodegen.hpp new file mode 100644 index 0000000..6803023 --- /dev/null +++ b/source/20-codegen-runtime/MacrosCodegen.hpp @@ -0,0 +1,7 @@ +// NOTE: contents of this file is coupled with buildtools/codegen/ +// when updating, change both sides at the same time + +#pragma once + +#define BRUSSEL_CLASS(name, options) +#define BRUSSEL_ENUM(name, options) diff --git a/source/20-codegen-runtime/Metadata.cpp b/source/20-codegen-runtime/Metadata.cpp new file mode 100644 index 0000000..ee32054 --- /dev/null +++ b/source/20-codegen-runtime/Metadata.cpp @@ -0,0 +1 @@ +#include "Metadata.hpp" diff --git a/source/20-codegen-runtime/Metadata.hpp b/source/20-codegen-runtime/Metadata.hpp new file mode 100644 index 0000000..a038c15 --- /dev/null +++ b/source/20-codegen-runtime/Metadata.hpp @@ -0,0 +1,4 @@ +#pragma once + +#include "MacrosCodegen.hpp" +#include "MetadataBase.hpp" diff --git a/source/20-codegen-runtime/MetadataBase.cpp b/source/20-codegen-runtime/MetadataBase.cpp new file mode 100644 index 0000000..3ccf870 --- /dev/null +++ b/source/20-codegen-runtime/MetadataBase.cpp @@ -0,0 +1 @@ +#include "MetadataBase.hpp" diff --git a/source/20-codegen-runtime/MetadataBase.hpp b/source/20-codegen-runtime/MetadataBase.hpp new file mode 100644 index 0000000..8be668d --- /dev/null +++ b/source/20-codegen-runtime/MetadataBase.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include +#include + +namespace Metadata { + +template +std::string_view EnumToString(TEnum value); + +template +std::optional EnumFromString(std::string_view str); + +} // namespace Metadata -- cgit v1.2.3-70-g09d2