-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathxmake.lua
More file actions
25 lines (20 loc) · 1.04 KB
/
xmake.lua
File metadata and controls
25 lines (20 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package("mcpplibs-xpkg")
set_homepage("https://github.com/Sunrisepeak/libxpkg")
set_description("C++23 reference implementation of the xpkg package specification")
set_license("MIT")
add_urls(
"https://github.com/Sunrisepeak/libxpkg/archive/refs/tags/v$(version).tar.gz",
"https://github.com/Sunrisepeak/libxpkg.git v$(version)"
)
add_versions("0.0.1", "4bbf178c9225e6be09302408ebe70edfdae237adbf142ddf10d1535aec2ae0cd")
add_deps("mcpplibs-capi-lua")
on_install(function (package)
local configs = {}
local install = import("package.tools.xmake").install
-- Install each library target individually to avoid building examples/tests
install(package, configs, {target = "mcpplibs-xpkg"})
install(package, configs, {target = "mcpplibs-xpkg-loader"})
install(package, configs, {target = "mcpplibs-xpkg-index"})
install(package, configs, {target = "mcpplibs-xpkg-lua-stdlib"})
install(package, configs, {target = "mcpplibs-xpkg-executor"})
end)