xmake.lua 422 B

123456789101112
  1. package("libudev")
  2. set_homepage("https://www.freedesktop.org/wiki/Software/systemd/")
  3. set_description("API for enumerating and introspecting local devices")
  4. on_fetch("linux", function (package, opt)
  5. if opt.system then
  6. return package:find_package("pkgconfig::libudev") or package:find_package("system::udev")
  7. end
  8. end)
  9. add_extsources("apt::libudev-dev", "pacman::systemd")