Skip to content

Commit 49c4e92

Browse files
Sunrisepeakclaude
andcommitted
fix lua package: correct directory, namespace and install
- Move package from packages/l/lua to packages/m/mcpplibs-capi-lua (directory must match package name) - Build only library target to avoid parallel std module conflicts - Install lua_headers.h for cppm dependency - Fix test namespace to mcpplibs::capi::lua Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e8fd0ab commit 49c4e92

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ package("mcpplibs-capi-lua")
1414
add_deps("lua")
1515

1616
on_install(function (package)
17-
import("package.tools.xmake").install(package)
17+
local configs = {}
18+
import("package.tools.xmake").install(package, configs, {target = "mcpplibs-capi-lua"})
19+
os.cp("src/capi/lua_headers.h", package:installdir("include"))
1820
end)

tests/l/lua/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import std;
22
import mcpplibs.capi.lua;
33

44
int main() {
5+
using namespace mcpplibs::capi;
6+
57
auto L = lua::L_newstate();
68
lua::L_openlibs(L);
79

0 commit comments

Comments
 (0)