xmake.lua 786 B

12345678910111213141516171819202122
  1. package("mikktspace")
  2. set_homepage("http://www.mikktspace.com/")
  3. set_description("A common standard for tangent space used in baking tools to produce normal maps.")
  4. add_urls("https://github.com/mmikk/MikkTSpace.git")
  5. add_versions("2020.03.26", "3e895b49d05ea07e4c2133156cfa94369e19e409")
  6. on_install(function (package)
  7. io.writefile("xmake.lua", [[
  8. add_rules("mode.debug", "mode.release")
  9. target("mikktspace")
  10. set_kind("$(kind)")
  11. add_files("mikktspace.c")
  12. add_headerfiles("mikktspace.h")
  13. ]])
  14. import("package.tools.xmake").install(package)
  15. end)
  16. on_test(function (package)
  17. assert(package:has_cfuncs("genTangSpace", {includes = "mikktspace.h"}))
  18. end)