Skip to content

Commit 4d692cd

Browse files
Sunrisepeakclaude
andcommitted
fix: install each library target individually instead of phony target
The phony `xpkg` target produces no installable artifacts. Install each of the 5 real library targets individually to properly export module files and static libraries while avoiding examples/tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cdb29af commit 4d692cd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/m/mcpplibs-xpkg/xmake.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,11 @@ package("mcpplibs-xpkg")
1515

1616
on_install(function (package)
1717
local configs = {}
18-
import("package.tools.xmake").install(package, configs, {target = "xpkg"})
18+
local install = import("package.tools.xmake").install
19+
-- Install each library target individually to avoid building examples/tests
20+
install(package, configs, {target = "mcpplibs-xpkg"})
21+
install(package, configs, {target = "mcpplibs-xpkg-loader"})
22+
install(package, configs, {target = "mcpplibs-xpkg-index"})
23+
install(package, configs, {target = "mcpplibs-xpkg-lua-stdlib"})
24+
install(package, configs, {target = "mcpplibs-xpkg-executor"})
1925
end)

0 commit comments

Comments
 (0)