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.
 
 
 

20 lines
839 B

package("opencl-headers")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/KhronosGroup/OpenCL-Headers/")
set_description("Khronos OpenCL-Headers")
set_license("Apache-2.0")
add_urls("https://github.com/KhronosGroup/OpenCL-Headers/archive/refs/tags/$(version).tar.gz",
"https://github.com/KhronosGroup/OpenCL-Headers.git")
add_versions("v2023.12.14", "407d5e109a70ec1b6cd3380ce357c21e3d3651a91caae6d0d8e1719c69a1791d")
add_versions("v2021.06.30", "6640d590c30d90f89351f5e3043ae6363feeb19ac5e64bc35f8cfa1a6cd5498e")
add_deps("cmake")
on_install(function (package)
import("package.tools.cmake").install(package, {"-DBUILD_TESTING=OFF"})
end)
on_test(function (package)
assert(package:has_ctypes("cl_int", {includes = "CL/cl.h"}))
end)