feat: add mcpp build support (mcpp.toml)#9
Merged
Sunrisepeak merged 1 commit intomainfrom May 9, 2026
Merged
Conversation
Adds the mcpp 0.0.2+ manifest alongside the existing xmake.lua. Both build paths coexist; consumers of either ecosystem can pick. Manifest highlights: * `mcpplibs.llmapi@0.2.3`, kind = "lib"; lib root convention picks `src/llmapi.cppm` (already exports `module mcpplibs.llmapi;` and re-exports every partition). * `[build].include_dirs = ["src/json"]` — needed because `src/json/json.cppm` does `#include <json.hpp>`. * Direct deps: `mbedtls = "3.6.1"` and `mcpplibs.tinyhttps = "0.2.1"`. mbedtls is technically a transitive (tinyhttps depends on it), but mcpp 0.0.2 doesn't propagate dep includes through the graph yet, so we list it explicitly. Will be cleaned up once that lands upstream. Adds `target/` to `.gitignore` for the same reason as tinyhttps. Verified: `mcpp build` produces `libllmapi.a` containing 125 objects (llmapi modules + tinyhttps modules + mbedtls translation units).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an
mcpp.tomlmanifest alongside the existingxmake.luasollmapi can be consumed/built via either ecosystem.
mcpplibs.llmapi@0.2.3,kind = "lib". Lib-root convention pickssrc/llmapi.cppmautomatically (already exportsmodule mcpplibs.llmapi;+ re-exports every partition).[build].include_dirs = ["src/json"]—src/json/json.cppmdoes#include <json.hpp>.mbedtls = "3.6.1",mcpplibs.tinyhttps = "0.2.1".mbedtls is technically a transitive of tinyhttps, but mcpp 0.0.2
doesn't propagate dep includes through the graph yet, so we list
it explicitly. Will be cleaned up once that lands upstream.
After merge a
0.2.4tag will be cut so themcpp-community/mcpp-index
descriptor can point at the first tag containing
mcpp.toml.Test plan
mcpp build(musl-static) —libllmapi.acontains 125 objects(llmapi + tinyhttps + mbedtls)