|
@@ -16,13 +16,20 @@ package("openh264")
|
|
|
|
|
|
add_deps("meson", "ninja", "nasm")
|
|
|
|
|
|
+ if on_check then
|
|
|
+ on_check("android", function (package)
|
|
|
+ local ndk = package:toolchain("ndk"):config("ndkver")
|
|
|
+ assert(ndk and tonumber(ndk) > 22, "package(openh264) require ndk version > 22")
|
|
|
+ end)
|
|
|
+ end
|
|
|
+
|
|
|
on_load("windows", function (package)
|
|
|
if package:is_arch("arm.*") and (not package:is_precompiled()) then
|
|
|
package:add("deps", "strawberry-perl")
|
|
|
end
|
|
|
end)
|
|
|
|
|
|
- on_install("!android and !bsd and !wasm", function (package)
|
|
|
+ on_install("!bsd and !wasm", function (package)
|
|
|
io.replace("meson.build", "-Werror", "", {plain = true})
|
|
|
|
|
|
if package:gitref() or package:version():ge("2.4.1") then
|