Use remote packages for aom and libyuv

This commit is contained in:
dijunkun
2024-05-22 16:17:05 +08:00
parent c95a2a32dc
commit fdb8819926
115 changed files with 36 additions and 98518 deletions

View File

@@ -3,19 +3,16 @@ package("libyuv")
set_homepage("https://chromium.googlesource.com/libyuv/libyuv/")
set_description("libyuv is an open source project that includes YUV scaling and conversion functionality.")
set_license("BSD-3-Clause")
-- add_versions("20210528", "eb6e7bb63738e29efd82ea3cf2a115238a89fa51")
set_urls("https://chromium.googlesource.com/libyuv/libyuv.git")
add_versions("2024.5.21", "8e18fc93c8c07d2ba6f9671281d6f35c8c47b2f4")
-- set_urls("https://chromium.googlesource.com/libyuv/libyuv.git")
-- add_versions("2023.10.27", "31e1d6f896615342d5d5b6bde8f7b50b3fd698dc")
set_sourcedir(os.scriptdir())
add_deps("cmake")
on_install("windows", "linux", "macosx", "android", "cross", "bsd", "mingw", function (package)
local configs = {"-DTEST=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
io.replace("CMakeLists.txt", "INSTALL ( PROGRAMS ${CMAKE_BINARY_DIR}/yuvconvert DESTINATION bin )", "", {plain = true})
io.replace("CMakeLists.txt", "INSTALL ( PROGRAMS ${CMAKE_BINARY_DIR}/yuvconvert DESTINATION bin )", "", {plain = true})
import("package.tools.cmake").install(package, configs)
if package:is_plat("macosx", "linux", "android") then
@@ -26,3 +23,7 @@ package("libyuv")
end
end
end)
on_test(function (package)
assert(package:has_cfuncs("I420Rotate", {includes = "libyuv/rotate.h"}))
end)