add csv2 lib (#775)
* add csv2 lib * fix by review * Update xmake.lua Co-authored-by: ruki <waruqi@gmail.com>pull/778/head
parent
d6261ced9f
commit
6d92b5307a
1 changed files with 18 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||||||
|
package("csv2") |
||||||
|
set_kind("library", {headeronly = true}) |
||||||
|
set_homepage("https://github.com/p-ranav/csv2") |
||||||
|
set_description("A CSV parser library") |
||||||
|
set_license("MIT") |
||||||
|
|
||||||
|
add_urls("https://github.com/p-ranav/csv2/archive/refs/tags/$(version).tar.gz", |
||||||
|
"https://github.com/p-ranav/csv2.git") |
||||||
|
add_versions("v0.1", "e185d0378a95edb2ad0f2473970d8fe8579c87326640340d42bdf6327fd96791") |
||||||
|
|
||||||
|
on_install(function (package) |
||||||
|
os.cp("include/csv2", package:installdir("include")) |
||||||
|
end) |
||||||
|
|
||||||
|
on_test(function (package) |
||||||
|
assert(package:has_cxxtypes("csv2::Reader<csv2::delimiter<','>, csv2::quote_character<'\"'>, csv2::first_row_is_header<false>>", |
||||||
|
{configs = {languages = "c++11"}, includes = "csv2/reader.hpp"})) |
||||||
|
end) |
Loading…
Reference in new issue