Skip to content

Commit

Permalink
feat: init libvpx
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamOfIce committed Aug 16, 2023
1 parent d15122f commit d0d0008
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions packages/l/libvpx/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package("libvpx")
set_homepage("http://www.webmproject.org/code/")
set_description("VP8/VP9 Codec SDK")
set_license("BSD-3")

add_urls("https://github.com/webmproject/libvpx.git",
"https://chromium.googlesource.com/webm/libvpx.git",
"https://github.com/webmproject/libvpx/archive/refs/tags/v$(version).tar.gz")

add_versions("1.10.0", "85803ccbdbdd7a3b03d930187cb055f1353596969c1f92ebec2db839fa4f834a")
add_versions("1.11.0", "965e51c91ad9851e2337aebcc0f517440c637c506f3a03948062e3d5ea129a83")
add_versions("1.12.0", "f1acc15d0fd0cb431f4bf6eac32d5e932e40ea1186fe78e074254d6d003957bb")
add_versions("1.13.0", "cb2a393c9c1fae7aba76b950bb0ad393ba105409fe1a147ccd61b0aaa1501066")

add_configs("examples", {description = "examples", default = false, type = "boolean"})
add_configs("tools", {description = "tools", default = false, type = "boolean"})
add_configs("docs", {description = "documentation", default = false, type = "boolean"})
add_configs("unit-tests", {description = "unit tests", default = false, type = "boolean"})

add_configs("vp8", {description = "VP8 codec support", default = true, type = "boolean"})
add_configs("vp9", {description = "VP9 codec support", default = true, type = "boolean"})
add_configs("multithread", {description = "multithreaded encoding and decoding", default = true, type = "boolean"})
add_configs("webm-io", {description = "enable input from and output to WebM container", default = false, type = "boolean"})
add_configs("libyuv", {description = "enable libyuv", default = false, type = "boolean"})
add_configs("postproc", {description = "postprocessing", default = false, type = "boolean"})
add_configs("vp9-postproc", {description = "vp9 specific postprocessing", default = false, type = "boolean"})
add_configs("vp9-highbitdepth", {description = "use VP9 high bit depth (10/12) profiles", default = false, type = "boolean"})

if is_plat("wasm") then
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
end

on_install(function (package)
end)

0 comments on commit d0d0008

Please sign in to comment.