Add SDK v1.0.0

This commit is contained in:
alejo committed 2026-10-24 08:05:45 -03:00
commit 40688938ef
76 files changed
+11805

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
# An objects module: compiled to object files and nothing else -- no library of
# its own. source/Core names it in its DEPENDS, so the objects end up inside
# demo_core, and because that is a library, the header below is visible to
# everything that uses core_lib. OUTPUT_NAME is only the name MODULE_NAME
# carries: the farewell still says "(from demo_core)". fmt::fmt is declared in
# source/Core/CMakeLists.txt.
add_objects_module(core_farewell OUTPUT_NAME "demo_core" DEPENDS fmt::fmt)
@@ -0,0 +1,18 @@
#pragma once
#include <string>
/// @file
/// The farewell half of the "core" module. It is a piece of core_lib that is
/// a module of its own: an objects module (source/CoreFarewell/CMakeLists.txt),
/// compiled to object files that the library in source/Core takes in.
namespace demo::core
{
/// Builds a farewell for @p name.
///
/// @param name the person (or thing) being bid farewell.
/// @return a formatted farewell string, e.g. "Farewell, Ale. (from demo_core)".
std::string makeFarewell(const std::string& name);
}
+13
View File
@@ -0,0 +1,13 @@
#include "core/Farewell.hpp"
#include <fmt/format.h>
namespace demo::core
{
std::string makeFarewell(const std::string& name)
{
return fmt::format("Farewell, {}. (from {})", name, MODULE_NAME);
}
}