xmake.lua 1.1 KB

12345678910111213141516171819202122232425
  1. package("genie")
  2. set_kind("binary")
  3. set_homepage("https://github.com/bkaradzic/GENie")
  4. set_description("GENie - Project generator tool")
  5. set_license("BSD-3-Clause")
  6. add_urls("https://github.com/bkaradzic/GENie.git")
  7. add_versions("1160", "f9bd455a8439dbcb807816c0be9e4aedf5991bc3")
  8. add_versions("1165", "5461c5ab94d0365c40031fef8f459b9c21b4d37a")
  9. add_versions("1170", "22cc907a4351db46c55f73e6aa901f1b2f0c52ad")
  10. add_configs("debug", {description = "Enable debug scripts.", default = false, type = "boolean", readonly = true})
  11. on_install("@windows", "@msys", "@macosx", "@linux", function (package)
  12. os.cp(path.join(os.scriptdir(), "port", "xmake.lua"), "xmake.lua")
  13. import("package.tools.xmake").install(package)
  14. end)
  15. on_test(function (package)
  16. local outfile = os.tmpfile()
  17. os.execv("genie" .. (package:is_plat("windows") and ".exe" or ""), {"--version"}, {stdout = outfile, try = true})
  18. local outdata = io.readfile(outfile)
  19. assert(outdata:find("GENie - Project generator tool", 1, true))
  20. end)