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.
19 lines
674 B
19 lines
674 B
9 months ago
|
package("ruapu")
|
||
|
set_kind("library", {headeronly = true})
|
||
|
set_homepage("https://github.com/nihui/ruapu")
|
||
|
set_description("Detect CPU features with single-file")
|
||
|
set_license("MIT")
|
||
|
|
||
|
add_urls("https://github.com/nihui/ruapu/archive/refs/tags/$(version).tar.gz",
|
||
|
"https://github.com/nihui/ruapu.git")
|
||
|
|
||
|
add_versions("0.1.0", "65fd826ed1772717d4cee70b6620277df0328408612f7643658a0064f1a163ff")
|
||
|
|
||
|
on_install(function (package)
|
||
|
os.cp("ruapu.h", package:installdir("include"))
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:has_cfuncs("ruapu_init", {includes = "ruapu.h", defines = "RUAPU_IMPLEMENTATION"}))
|
||
|
end)
|