xmake-repo/xmake.lua
2025-03-21 02:51:31 +00:00

20 lines
592 B
Lua

package("test-string")
set_kind("binary")
set_description("The test-string package")
add_urls("https://github.com/myrepo/foo.git")
add_versions("1.0", "<shasum256 or gitcommit>")
on_install(function (package)
local configs = {}
if package:config("shared") then
configs.kind = "shared"
end
import("package.tools.xmake").install(package, configs)
end)
on_test(function (package)
-- TODO check includes and interfaces
-- assert(package:has_cfuncs("foo", {includes = "foo.h"})
end)