Skip to content

feat: add mcpp.toml for mcpp build support#2

Merged
Sunrisepeak merged 1 commit intomainfrom
feat/mcpp-build-support
May 9, 2026
Merged

feat: add mcpp.toml for mcpp build support#2
Sunrisepeak merged 1 commit intomainfrom
feat/mcpp-build-support

Conversation

@Sunrisepeak
Copy link
Copy Markdown
Member

Summary

Adds mcpp.toml so mcpplibs.capi.lua can be built (and indexed) by mcpp.

  • Targets capi-lua (lib), with [lib].path = "src/capi/lua.cppm" overriding 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-index (added 2026-05-09).

mcpp 0.0.3's transitive walker propagates lua's headers (lua.h / lauxlib.h / lualib.h) into our compile rule, so the existing extern "C" { #include <lua.h> ... } in src/capi/lua_headers.h keeps working with no path tweaking.

Test plan

  • mcpp build clean against a fresh target/
  • After merge: tag 0.0.3 so the tarball flows into mcpp-index

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/`.
@Sunrisepeak Sunrisepeak merged commit d56abcb into main May 9, 2026
3 checks passed
@Sunrisepeak Sunrisepeak deleted the feat/mcpp-build-support branch May 9, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant