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.

26 lines
1.1 KiB

package("rapidcsv")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/d99kris/rapidcsv")
set_description("C++ header-only library for CSV parsing (by d99kris)")
set_license("BSD-3-Clause")
add_urls("https://github.com/d99kris/rapidcsv/archive/refs/tags/v$(version).zip")
add_versions("8.83", "ca7e99a7229d50a8d7e59d77f31b53970579429c71bf05bc53729d15135c9b6f")
add_versions("8.82", "e07c9355846b62b960ddebf79fef306ac21ee297f19880f237b7da8eb007a056")
add_versions("8.80", "5bdbecc3542a881c058624d63c27574fa171fafe32be857e925fccaa1ae75f46")
add_versions("8.50", "c7822b590f48f7d8c9b560a6e2d7e29d7ec2f7b3642eb75ddff40a803949b502")
on_install(function (package)
os.cp("src/rapidcsv.h", package:installdir("include"))
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test(int argc, char** argv) {
rapidcsv::Document doc("example.csv");
doc.GetColumn<float>("Example").size();
}
]]},{includes = "rapidcsv.h", configs = {languages = "cxx11"}}))
end)