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.
24 lines
814 B
24 lines
814 B
2 years ago
|
package("tinyexpr")
|
||
|
|
||
|
set_homepage("https://codeplea.com/tinyexpr")
|
||
|
set_description("TinyExpr is a very small parser and evaluation library for evaluating math expressions from C.")
|
||
|
set_license("zlib")
|
||
|
|
||
|
add_urls("https://github.com/codeplea/tinyexpr.git")
|
||
|
add_versions("2022.11.21", "74804b8c5d296aad0866bbde6c27e2bc1d85e5f2")
|
||
|
|
||
|
on_install(function (package)
|
||
|
io.writefile("xmake.lua", [[
|
||
|
add_rules("mode.debug", "mode.release")
|
||
|
target("tinyexpr")
|
||
|
set_kind("static")
|
||
|
add_files("tinyexpr.c")
|
||
|
add_headerfiles("tinyexpr.h")
|
||
|
]])
|
||
|
import("package.tools.xmake").install(package)
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:has_cfuncs("te_interp", {includes = "tinyexpr.h"}))
|
||
|
end)
|