xmake.lua 614 B

123456789101112131415
  1. package("subprocess.h")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/sheredom/subprocess.h")
  4. set_description("single header process launching solution for C and C++ ")
  5. add_urls("https://github.com/sheredom/subprocess.h.git")
  6. add_versions("2022.12.20", "cf95c9615953c90177498aed43621cb1cbc8f3e1")
  7. on_install("windows", "macosx", "linux", "mingw", "bsd", function (package)
  8. os.cp("*.h", package:installdir("include"))
  9. end)
  10. on_test(function (package)
  11. assert(package:has_cfuncs("subprocess_create", {includes = "subprocess.h"}))
  12. end)