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.
25 lines
998 B
25 lines
998 B
package("pegtl") |
|
|
|
set_kind("library", {headeronly = true}) |
|
set_homepage("https://github.com/taocpp/PEGTL") |
|
set_description("Parsing Expression Grammar Template Library") |
|
set_license("BSL-1.0") |
|
|
|
add_urls("https://github.com/taocpp/PEGTL/archive/refs/tags/$(version).tar.gz", |
|
"https://github.com/taocpp/PEGTL.git") |
|
add_versions("3.2.2", "c6616275e78c618c016b79054eed0a0bdf4c1934f830d3ab33d3c3dac7320b03") |
|
|
|
add_deps("cmake") |
|
on_install("windows", "macosx", "linux", "mingw", function (package) |
|
import("package.tools.cmake").install(package, {"-DPEGTL_BUILD_TESTS=OFF", "-DPEGTL_BUILD_EXAMPLES=OFF"}) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:check_cxxsnippets({test = [[ |
|
#include <tao/pegtl.hpp> |
|
namespace pegtl = TAO_PEGTL_NAMESPACE; |
|
void test(int argc, char *argv[]) { |
|
pegtl::argv_input in(argv, 1); |
|
} |
|
]]}, {configs = {languages = "c++17"}})) |
|
end)
|
|
|