feat: add mcpp.toml for mcpp build support#2
Merged
Sunrisepeak merged 1 commit intomainfrom May 9, 2026
Merged
Conversation
Wires mcpplibs.capi.lua into the mcpp build system. The descriptor:
- targets `capi-lua` (lib) at `src/capi/lua.cppm` (override the
default lib-root convention which would look at `src/lua.cppm`),
- depends on the upstream Lua 5.4.7 C library shipped via
mcpp-community/mcpp-index (added 2026-05-09).
mcpp 0.0.3's transitive walker propagates lua's headers into our
compile rule, so the existing `extern "C" { #include <lua.h> ... }`
in `src/capi/lua_headers.h` keeps working with no path tweaking.
Verified locally: `mcpp build` is clean against a fresh `target/`.
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
mcpp.tomlsomcpplibs.capi.luacan be built (and indexed) by mcpp.capi-lua(lib), with[lib].path = "src/capi/lua.cppm"overriding the default lib-root convention (which would look atsrc/lua.cppm).mcpp 0.0.3's transitive walker propagates lua's headers (
lua.h/lauxlib.h/lualib.h) into our compile rule, so the existingextern "C" { #include <lua.h> ... }insrc/capi/lua_headers.hkeeps working with no path tweaking.Test plan
mcpp buildclean against a freshtarget/0.0.3so the tarball flows into mcpp-index