feat: add mcpp build support (mcpp.toml)#1
Merged
Sunrisepeak merged 2 commits intomasterfrom May 9, 2026
Merged
Conversation
Adds the mcpp-build manifest alongside the existing xmake.lua so
tinyhttps can be consumed/built by both ecosystems. The mcpp side
relies on:
* mbedtls 3.6.1 — pulled from mcpp-index (the descriptor lands in a
parallel mcpp-community/mcpp-index PR). mcpp 0.0.2's C-language
compile rule (`c_object`) builds mbedtls from source and packs
it into libtinyhttps.a alongside the modular C++23 .m.o files.
* gtest 1.15.2 — dev-only, picked up by `mcpp test` to run the
existing tests/test_*.cpp.
Verified:
$ mcpp build
...
Compiling mcpplibs.tinyhttps v0.2.0 (.)
Cached mbedtls v3.6.1
Finished release [optimized] in 1.52s
$ ar t target/.../bin/libtinyhttps.a | grep -c '\\.o$' # all 6 partitions + 108 mbedtls .c
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.luasotinyhttps can be consumed/built via both ecosystems.
What lands
mcpp.toml: declares modular C++23 libtinyhttpsexporting modulemcpplibs.tinyhttps, sourcessrc/**/*.cppm, runtime depmbedtls 3.6.1and dev depgtest 1.15.2.What's required upstream
A parallel PR adds the
mbedtls 3.6.1descriptor tomcpp-community/mcpp-index.
That descriptor uses mcpp 0.0.2's C-language compile rule
(
c_object) to compile all 108 of mbedtls'slibrary/*.cintolibmbedtls.a, which mcpp's path-dep machinery then merges intolibtinyhttps.a. The two PRs land independently.Verification
The archive contains all 6 module-interface objects plus mbedtls's
crypto + x509 + ssl translation units.
There's a benign warning from mcpp's module scanner about partition
imports (
module 'mcpplibs.tinyhttps:http:tls' imported but not provided)— it concatenates the source filename with the partition name when
guessing the logical name. GCC's dyndep step resolves it correctly,
the build/link succeed. Filed as a follow-up against mcpp-community/mcpp.