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.
 
 
 

19 lines
870 B

package("stc")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/stclib/STC")
set_description("A modern, user friendly, generic, type-safe and fast C99 container library: String, Vector, Sorted and Unordered Map and Set, Deque, Forward List, Smart Pointers, Bitset and Random numbers.")
set_license("MIT")
add_urls("https://github.com/stclib/STC/archive/refs/tags/$(version).tar.gz",
"https://github.com/stclib/STC.git")
add_versions("v4.2", "f16c3185ba5693f0257e5b521f0b6b3c11041433a4abbbbc531370364eb75d0c")
on_install(function (package)
os.cp("include", package:installdir())
end)
on_test(function (package)
local defines = {"i_type=Floats", "i_val=float"}
assert(package:has_cfuncs("Floats_push", {includes = "stc/cvec.h", configs = {defines = defines}}))
end)