rapidxml: add package (#3529)

* rapidxml: add package

* rapidxml: fix dir

* xpack: use rapidxml package

* rapidxml: small tweak
pull/3530/head
qudix 10 months ago committed by GitHub
parent fd63520c7b
commit 1902e652a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 22
      packages/r/rapidxml/xmake.lua
  2. 3
      packages/x/xpack/xmake.lua

@ -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)

@ -9,10 +9,9 @@ package("xpack")
add_versions("v1.0.5", "ea8693dd3a53d54e0c1e3c9e6e06f31ff7f593f7f8cf8fb4889f5c3354dbae8e")
add_deps("rapidjson")
add_deps("rapidjson", "rapidxml")
on_install(function (package)
os.cp("rapidxml", package:installdir("include"))
os.cp("*.h", package:installdir("include", "xpack"))
end)

Loading…
Cancel
Save