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.
|
|
|
package("node-api-headers")
|
|
|
|
set_kind("library", {headeronly = true})
|
|
|
|
set_homepage("https://github.com/nodejs/node-api-headers")
|
|
|
|
set_description("C-based Node-API headers")
|
|
|
|
set_license("MIT")
|
|
|
|
|
|
|
|
set_urls("https://github.com/nodejs/node-api-headers/archive/refs/tags/$(version).tar.gz",
|
|
|
|
"https://github.com/nodejs/node-api-headers.git")
|
|
|
|
add_versions("v1.2.0", "deda1c8536ebae8b0a35c26d8547e23061c7d3cffd05ea70046be1c7c0efc2d0")
|
|
|
|
add_versions("v1.1.0", "70608bc1e6dddce280285f3462f18a106f687c0720a4b90893e1ecd86e5a8bbf")
|
|
|
|
|
|
|
|
on_install(function(package)
|
|
|
|
os.cp("include/*.h", package:installdir("include"))
|
|
|
|
end)
|
|
|
|
|
|
|
|
on_test(function (package)
|
|
|
|
assert(package:has_cfuncs("napi_async_init", {includes = "node_api.h"}))
|
|
|
|
end)
|