Skip to content

Commit

Permalink
qoa: add package
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Sep 29, 2024
1 parent 4c2fbbf commit 6550bbf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/q/qoa/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package("qoa")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/phoboslab/qoa")
set_description("The “Quite OK Audio Format” for fast, lossy audio compression")
set_license("MIT")

add_urls("https://github.com/phoboslab/qoa.git")

add_versions("2024.07.02", "e0c69447d4d3945c3c92ac1751e4cdc9803a8303")

on_install(function (package)
os.cp("qoa.h", package:installdir("include"))
end)

on_test(function (package)
assert(package:has_cfuncs("qoa_encode_header", {includes = "qoa.h"}))
end)

0 comments on commit 6550bbf

Please sign in to comment.