packages/s/str
This commit is contained in:
parent
db70d27460
commit
569179d3c5
17
xmake.lua
17
xmake.lua
@ -1,19 +1,8 @@
|
|||||||
package("test-string")
|
package("str")
|
||||||
set_kind("binary")
|
set_description("基于 C++26/23 与模块的现代字符串库 | Modern String Library Built with C++26/23 and Modules")
|
||||||
set_description("The test-string package")
|
|
||||||
|
|
||||||
add_urls("https://github.com/myrepo/foo.git")
|
add_urls("https://github.com/myrepo/foo.git")
|
||||||
add_versions("1.0", "<shasum256 or gitcommit>")
|
|
||||||
|
|
||||||
on_install(function(package)
|
on_install(function(package)
|
||||||
local configs = {}
|
import("package.tools.xmake").install(package, {})
|
||||||
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)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user