xmake.lua 1.0 KB

12345678910111213141516171819202122232425
  1. package("guilite")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/idea4good/GuiLite")
  4. set_description("The smallest header-only GUI library (4 KLOC) for all platforms.")
  5. set_license("Apache-2.0")
  6. add_urls("https://github.com/idea4good/GuiLite/archive/refs/tags/$(version).zip",
  7. "https://github.com/idea4good/GuiLite.git")
  8. add_versions("v2.1", "53363a5e3a053708b3e081510134fca9bfc635cfdbc9ce01da1ea6ae7e5ba8bc")
  9. on_install("windows", "macosx", "linux", "mingw", "android", "iphoneos", function (package)
  10. os.cp("GuiLite.h", package:installdir("include"))
  11. end)
  12. on_test(function (package)
  13. assert(package:check_cxxsnippets({test = [[
  14. #define GUILITE_ON
  15. #include <GuiLite.h>
  16. void test() {
  17. c_surface_no_fb surface_no_fb(640, 480, 2, NULL, Z_ORDER_LEVEL_0);
  18. c_display display(NULL, 640, 480, &surface_no_fb);
  19. }
  20. ]]}, {configs = {languages = "c++11"}}))
  21. end)