xmake.lua 704 B

1234567891011121314151617
  1. package("cute_headers")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/RandyGaul/cute_headers")
  4. set_description("Collection of cross-platform one-file C/C++ libraries with no dependencies, primarily used for games")
  5. set_license("Public Domain")
  6. add_urls("https://github.com/RandyGaul/cute_headers.git")
  7. add_versions("2024.07.22", "cab36d7c6690e334720e705bd6cd3ce29b0b0844")
  8. on_install(function (package)
  9. os.cp("*.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:has_cfuncs("cute_aseprite_load_from_file", {includes = "cute_aseprite.h", defines = "CUTE_ASEPRITE_IMPLEMENTATION"}))
  13. end)