package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
666 B
18 lines
666 B
9 months ago
|
package("tinydir")
|
||
|
set_kind("library", {headeronly = true})
|
||
|
set_homepage("https://github.com/cxong/tinydir")
|
||
|
set_description("Lightweight, portable and easy to integrate C directory and file reader")
|
||
|
|
||
|
add_urls("https://github.com/cxong/tinydir/archive/refs/tags/$(version).tar.gz",
|
||
|
"https://github.com/cxong/tinydir.git")
|
||
|
|
||
|
add_versions("1.2.6", "1ecbdf8d04b079f8a9404662708d2333d6b72b956effb0d5296d063db3a02b4e")
|
||
|
|
||
|
on_install(function (package)
|
||
|
os.cp("tinydir.h", package:installdir("include"))
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:has_cfuncs("tinydir_open", {includes = "tinydir.h"}))
|
||
|
end)
|