rapidxml: add package (#3529)
* rapidxml: add package * rapidxml: fix dir * xpack: use rapidxml package * rapidxml: small tweakpull/3530/head
parent
fd63520c7b
commit
1902e652a7
2 changed files with 23 additions and 2 deletions
@ -0,0 +1,22 @@ |
||||
package("rapidxml") |
||||
set_kind("library", {headeronly = true}) |
||||
set_homepage("https://sourceforge.net/projects/rapidxml") |
||||
set_description("An attempt to create the fastest XML parser possible") |
||||
set_license("MIT") |
||||
|
||||
set_urls("https://sourceforge.net/projects/rapidxml/files/rapidxml/rapidxml%20$(version)/rapidxml-$(version).zip") |
||||
|
||||
add_versions("1.13", "c3f0b886374981bb20fabcf323d755db4be6dba42064599481da64a85f5b3571") |
||||
|
||||
on_install(function (package) |
||||
os.vcp("**.hpp", package:installdir("include", "rapidxml")) |
||||
end) |
||||
|
||||
on_test(function (package) |
||||
assert(package:check_cxxsnippets({test = [[ |
||||
static void test() { |
||||
rapidxml::xml_document<> doc; |
||||
doc.parse<0>(""); |
||||
} |
||||
]]}, { includes = "rapidxml/rapidxml.hpp" })) |
||||
end) |
Loading…
Reference in new issue