package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
556 B
16 lines
556 B
3 years ago
|
package("miniaudio")
|
||
|
set_kind("library", {headeronly = true})
|
||
|
set_homepage("https://miniaud.io")
|
||
|
set_description("Single file audio playback and capture library written in C.")
|
||
|
|
||
|
add_urls("https://github.com/mackron/miniaudio.git")
|
||
|
add_versions("2021.12.31", "42abbbea4602af80d1ccb4a22cdc35813aceee7a")
|
||
|
|
||
|
on_install(function (package)
|
||
|
os.cp("miniaudio.h", package:installdir("include"))
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:has_cfuncs("ma_encoder_config_init", {includes = "miniaudio.h"}))
|
||
|
end)
|