xmake.lua 741 B

12345678910111213141516171819
  1. package("sokol")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/floooh/sokol")
  4. set_description("Simple STB-style cross-platform libraries for C and C++, written in C.")
  5. set_license("zlib")
  6. add_urls("https://github.com/floooh/sokol.git")
  7. add_versions("2022.02.10", "e8931e4399a0eb4bf026120d7bdb89825815af9e")
  8. add_versions("2023.01.27", "dc6814bdecd277366a650b6b0b744b52bb9131e5")
  9. on_install(function (package)
  10. os.cp("*.h", package:installdir("include"))
  11. os.cp("util/*.h", package:installdir("include", "util"))
  12. end)
  13. on_test(function (package)
  14. assert(package:has_cfuncs("sargs_setup", {includes = "sokol_args.h", defines = "SOKOL_IMPL"}))
  15. end)