diff options
author | rtk0c <[email protected]> | 2022-05-30 16:38:45 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-05-30 16:38:45 -0700 |
commit | 366ef5a5450c6e0e680c924c3454943a9ae9814d (patch) | |
tree | 87ef5741bae89aaac6f502130b339fa7cd7be525 /buildtools/codegen-companion | |
parent | 66ee4d47d55516ff55f72dfe2de1fb16c04dcb5b (diff) |
Changeset: 55 Buildsystem cleanup: add "projectized" targets
Diffstat (limited to 'buildtools/codegen-companion')
-rw-r--r-- | buildtools/codegen-companion/MacrosCodegen.hpp | 7 | ||||
-rw-r--r-- | buildtools/codegen-companion/Metadata.cpp | 1 | ||||
-rw-r--r-- | buildtools/codegen-companion/Metadata.hpp | 4 | ||||
-rw-r--r-- | buildtools/codegen-companion/MetadataBase.cpp | 1 | ||||
-rw-r--r-- | buildtools/codegen-companion/MetadataBase.hpp | 14 |
5 files changed, 27 insertions, 0 deletions
diff --git a/buildtools/codegen-companion/MacrosCodegen.hpp b/buildtools/codegen-companion/MacrosCodegen.hpp new file mode 100644 index 0000000..6803023 --- /dev/null +++ b/buildtools/codegen-companion/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/buildtools/codegen-companion/Metadata.cpp b/buildtools/codegen-companion/Metadata.cpp new file mode 100644 index 0000000..ee32054 --- /dev/null +++ b/buildtools/codegen-companion/Metadata.cpp @@ -0,0 +1 @@ +#include "Metadata.hpp" diff --git a/buildtools/codegen-companion/Metadata.hpp b/buildtools/codegen-companion/Metadata.hpp new file mode 100644 index 0000000..a038c15 --- /dev/null +++ b/buildtools/codegen-companion/Metadata.hpp @@ -0,0 +1,4 @@ +#pragma once + +#include "MacrosCodegen.hpp" +#include "MetadataBase.hpp" diff --git a/buildtools/codegen-companion/MetadataBase.cpp b/buildtools/codegen-companion/MetadataBase.cpp new file mode 100644 index 0000000..3ccf870 --- /dev/null +++ b/buildtools/codegen-companion/MetadataBase.cpp @@ -0,0 +1 @@ +#include "MetadataBase.hpp" diff --git a/buildtools/codegen-companion/MetadataBase.hpp b/buildtools/codegen-companion/MetadataBase.hpp new file mode 100644 index 0000000..8be668d --- /dev/null +++ b/buildtools/codegen-companion/MetadataBase.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include <optional> +#include <string_view> + +namespace Metadata { + +template <class TEnum> +std::string_view EnumToString(TEnum value); + +template <class TEnum> +std::optional<TEnum> EnumFromString(std::string_view str); + +} // namespace Metadata |