xmake.lua 1021 B

1234567891011121314151617181920212223242526
  1. package("gyp-next")
  2. set_kind("binary")
  3. set_homepage("https://github.com/nodejs/gyp-next")
  4. set_description("A fork of the GYP build system for use in the Node.js projects")
  5. set_license("BSD-3-Clause")
  6. add_urls("https://github.com/nodejs/gyp-next/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/nodejs/gyp-next.git")
  8. add_versions("v0.16.2", "145d5719a88112ae2631a88556361da3b8780f4179a928c823ba3d18ab796464")
  9. add_versions("v0.16.1", "892fecef9ca3fa1eff8bd18b7bcec54c6e8a2203788c048d26bccb53d9fcf737")
  10. add_versions("v0.11.0", "27fc51481d0e71d7fdc730b4c86dcee9825d11071875384d5fe4b263935501ef")
  11. add_deps("python 3.x", {kind = "binary"})
  12. on_install("@windows", "@macosx", "@linux", function (package)
  13. os.cp("*", package:installdir())
  14. package:addenv("PATH", ".")
  15. end)
  16. on_test(function (package)
  17. if is_host("windows") then
  18. os.vrun("gyp.bat --help")
  19. else
  20. os.vrun("gyp --help")
  21. end
  22. end)