hedley: add package (#2793)

pull/2780/head^2
star9029 1 year ago committed by GitHub
parent 53a86fd2c2
commit 5fc69be0d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      packages/h/hedley/xmake.lua

@ -0,0 +1,22 @@
package("hedley")
set_kind("library", {headeronly = true})
set_homepage("https://nemequ.github.io/hedley/")
set_description("A C/C++ header to help move #ifdefs out of your code")
set_license("CC0-1.0")
add_urls("https://github.com/nemequ/hedley/archive/refs/tags/$(version).tar.gz",
"https://github.com/nemequ/hedley.git")
add_versions("v15", "e91c71b58f59d08c7b8289be8f687866863d934dfaa528e4be30b178139ae863")
on_install(function (package)
os.cp("hedley.h", package:installdir("include/hedley"))
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <hedley/hedley.h>
HEDLEY_NO_RETURN
void test() {}
]]}))
end)
Loading…
Cancel
Save