xmake.lua 862 B

12345678910111213141516171819202122232425262728293031
  1. add_moduledirs("modules")
  2. task("gendoc")
  3. on_run("gendoc")
  4. set_menu {
  5. usage = "xmake gendoc [options] [arguments]",
  6. description = "Generate the xmake documents.",
  7. options = {
  8. {'o', "outputdir", "kv", "html", "Output html directory."},
  9. {'s', "siteroot", "kv", "https://xmake.io", "Site root."}
  10. }
  11. }
  12. task("opendoc")
  13. on_run("opendoc")
  14. set_menu {
  15. usage = "xmake opendoc [options] [arguments]",
  16. description = "Open the local xmake documents.",
  17. options = {
  18. {nil, "htmldir", "kv", "html", "The documents html directory."},
  19. }
  20. }
  21. task("update-apis")
  22. on_run("update-apis")
  23. set_menu {
  24. usage = "xmake update-apis",
  25. description = "Create markdown files based on the new available apis in xmake.",
  26. options = nil
  27. }