xmake.lua 591 B

12345678910111213141516
  1. package("cmidi2")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/atsushieno/cmidi2")
  4. set_description("header-only MIDI 2.0 UMP and MIDI-CI binary processor library")
  5. set_license("MIT")
  6. add_urls("https://github.com/atsushieno/cmidi2.git")
  7. add_versions("2023.08.07", "8c7e2c218bb522bba6eabc6f55a6676e4a77138c")
  8. on_install(function (package)
  9. os.cp("cmidi2.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:has_cfuncs("cmidi2_ump_get_num_bytes", {includes = "cmidi2.h"}))
  13. end)