Create xmake.lua (#1378)

pull/1406/head
Сафиюлин Александр 2 years ago committed by GitHub
parent b9c4b57c4a
commit 3a08575d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      packages/a/argparse/xmake.lua

@ -0,0 +1,21 @@
package("argparse")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/p-ranav/argparse")
set_description("A single header argument parser for C++17")
set_license("MIT")
add_urls("https://github.com/p-ranav/argparse/archive/refs/tags/v$(version).zip",
"https://github.com/p-ranav/argparse.git")
add_versions("2.6", "ce4e58d527b83679bdcc4adfa852af7ec9df16b76c11637823ef642cb02d2618")
on_install(function (package)
os.cp("include/argparse/argparse.hpp", package:installdir("include/argparse"))
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test() {
argparse::ArgumentParser test("test");
}
]]}, {configs = {languages = "c++17"}, includes = "argparse/argparse.hpp"}))
end)
Loading…
Cancel
Save