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.
 
 
 

28 lines
1.0 KiB

package("ssp")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/red0124/ssp")
set_description("C++ CSV parser")
set_license("MIT")
add_urls("https://github.com/red0124/ssp/archive/refs/tags/$(version).tar.gz",
"https://github.com/red0124/ssp.git")
add_versions("v1.8.0", "a4416746023c8a60f6808200193dd207f1044b6e37e6c5bc0462e85452307d1d")
add_versions("v1.6.1", "4cdf75959b0a5fabd0b3e6ec1bad41d7c3f298d5b7f822d6e12b7e4d7dfcdd34")
add_deps("cmake", "fast_float")
on_install(function (package)
import("package.tools.cmake").install(package, configs)
os.tryrm(package:installdir("include", "fast_float"))
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <ss/converter.hpp>
void test() {
auto converter = ss::converter{};
auto val = converter.convert<int>("5");
}
]]}, {configs = {languages = "c++17"}}))
end)