2
0

xmake.lua 600 B

12345678910111213141516
  1. package("lua-format")
  2. set_kind("binary")
  3. set_homepage("https://github.com/Koihik/LuaFormatter")
  4. set_description("Code formatter for Lua")
  5. add_urls("https://github.com/Koihik/LuaFormatter.git")
  6. add_versions("1.3.5", "638ec8a7c114a0082ce60481afe8f46072e427e5")
  7. add_deps("cmake")
  8. on_install("@linux", "@macosx", "@windows", "@bsd", "@msys", function (package)
  9. local configs = {"-DBUILD_TESTS=OFF", "-DCOVERAGE=OFF"}
  10. import("package.tools.cmake").install(package, configs)
  11. end)
  12. on_test(function (package)
  13. os.run("lua-format --help")
  14. end)