xmake.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. package("doxygen")
  2. set_kind("binary")
  3. set_homepage("https://www.doxygen.nl/")
  4. set_license("GPL-2.0")
  5. add_urls("https://doxygen.nl/files/doxygen-$(version).src.tar.gz", {alias = "archive"})
  6. add_urls("https://github.com/doxygen/doxygen.git", {alias = "github"})
  7. add_versions("archive:1.9.3", "f352dbc3221af7012b7b00935f2dfdc9fb67a97d43287d2f6c81c50449d254e0")
  8. add_versions("github:1.9.3", "Release_1_9_3")
  9. add_versions("github:1.9.2", "Release_1_9_2")
  10. add_versions("github:1.9.1", "Release_1_9_1")
  11. if not is_plat("windows") then
  12. add_deps("cmake", "bison >=2.7", "flex", {private = true})
  13. add_deps("python 3.x", {kind = "binary", private = true})
  14. end
  15. on_load("@windows", function (package)
  16. if package:is_built() then
  17. package:add("deps", "cmake", "bison >=2.7", "flex")
  18. package:add("deps", "python 3.x", {kind = "binary"})
  19. end
  20. end)
  21. on_install("@windows", "@macosx", "@linux", function (package)
  22. import("package.tools.cmake").install(package)
  23. end)
  24. on_test(function (package)
  25. os.vrun("doxygen -v")
  26. end)