add olive.c (#1761)

* add olive.c

* fix windows

* fix windows
pull/1763/head
ruki 2 years ago committed by GitHub
parent cbf310f922
commit cac0b1372e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      packages/o/olive.c/xmake.lua

@ -0,0 +1,17 @@
package("olive.c")
set_kind("library", {headeronly = true})
set_homepage("https://tsoding.github.io/olive.c/")
set_description("Simple 2D Graphics Library for C")
set_license("MIT")
add_urls("https://github.com/tsoding/olive.c.git")
add_versions("2022.12.14", "95af28b808a243098fe7866e8035b24c3fe28ea1")
on_install(function (package)
os.cp("olive.c", package:installdir("include"))
end)
on_test(function (package)
assert(package:has_cfuncs("olivec_fill", {includes = "olive.c",
configs = {defines = "OLIVEC_IMPLEMENTATION"}}))
end)
Loading…
Cancel
Save