add libsv (#948)
parent
d5991feb40
commit
9e227bfa88
1 changed files with 18 additions and 0 deletions
@ -0,0 +1,18 @@ |
||||
package("libsv") |
||||
set_homepage("https://github.com/uael/sv") |
||||
set_description("libsv - Public domain cross-platform semantic versioning in c99") |
||||
|
||||
add_urls("https://github.com/uael/sv.git") |
||||
add_versions("2021.11.27", "10ee6a807466a5e61309201caea360a113ad3862") |
||||
|
||||
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) |
||||
assert(package:has_cfuncs("semver(0,0)", {includes = "semver.h"})) |
||||
end) |
Loading…
Reference in new issue