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
749 B

package("fxdiv")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/Maratyszcza/FXdiv")
set_description("C99/C++ header-only library for division via fixed-point multiplication by inverse")
set_license("MIT")
add_urls("https://github.com/Maratyszcza/FXdiv.git")
add_versions("2020.12.09", "63058eff77e11aa15bf531df5dd34395ec3017c8")
add_deps("cmake")
on_install("windows", "macosx", "linux", function (package)
local configs = {"-DFXDIV_BUILD_TESTS=OFF", "-DFXDIV_BUILD_BENCHMARKS=OFF"}
import("package.tools.cmake").install(package, configs)
end)
on_test(function (package)
assert(package:has_cfuncs("fxdiv_init_uint32_t", {includes = "fxdiv.h"}))
end)