xmake.lua 592 B

12345678910111213141516
  1. package("pl_mpeg")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/phoboslab/pl_mpeg")
  4. set_description("Single file C library for decoding MPEG1 Video and MP2 Audio")
  5. set_license("MIT")
  6. set_urls("https://github.com/phoboslab/pl_mpeg.git")
  7. add_versions("2024.04.12", "9e40dd6536269d788728e32c39bfacf2ab7a0866")
  8. on_install(function (package)
  9. os.cp("pl_mpeg.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:has_cfuncs("plm_create_with_filename", {includes = "pl_mpeg.h"}))
  13. end)