xmake.lua 603 B

1234567891011121314151617
  1. package("olive.c")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://tsoding.github.io/olive.c/")
  4. set_description("Simple 2D Graphics Library for C")
  5. set_license("MIT")
  6. add_urls("https://github.com/tsoding/olive.c.git")
  7. add_versions("2022.12.14", "95af28b808a243098fe7866e8035b24c3fe28ea1")
  8. on_install(function (package)
  9. os.cp("olive.c", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:has_cfuncs("olivec_fill", {includes = "olive.c",
  13. configs = {defines = "OLIVEC_IMPLEMENTATION"}}))
  14. end)