Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libsvtav1: Added latest releases #15250

Merged
merged 2 commits into from
Jan 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions recipes/libsvtav1/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
sources:
"1.4.1":
url: https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v1.4.1/SVT-AV1-v1.4.1.tar.bz2
sha256: 0e988582f315fe76c909accf5e7f81b975c5bd2b850ee760d8e9fac297f70b5d
"1.3.0":
url: https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v1.3.0/SVT-AV1-v1.3.0.tar.bz2
sha256: f85fd13ef16880550e425797bdfdf1b0ba310c21d6b343f74ea79dd2fbb2336e
"1.2.1":
url: https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v1.2.1/SVT-AV1-v1.2.1.tar.bz2
sha256: 805827daa8aedec4f1362b959f377075e2a811680bfc76b6f4fbf2ef4e7101d4
7 changes: 5 additions & 2 deletions recipes/libsvtav1/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from conan import ConanFile
from conan.tools.cmake import cmake_layout, CMakeToolchain, CMakeDeps, CMake
from conan.tools.files import copy, get, rmdir
from conan.tools.scm import Version

required_conan_version = ">=1.53.0"

Expand All @@ -10,7 +11,7 @@ class SVTAV1Conan(ConanFile):
name = "libsvtav1"
license = "BSD-3-Clause"
description = "An AV1-compliant software encoder/decoder library"
topics = "av1", "codec", "encoder", "ffmpeg", "video"
topics = "av1", "codec", "encoder", "decoder", "video"
homepage = "https://gitlab.com/AOMediaCodec/SVT-AV1"
url = "https://github.com/conan-io/conan-center-index"
settings = "os", "arch", "compiler", "build_type"
Expand All @@ -36,6 +37,9 @@ def configure(self):
self.options.rm_safe("fPIC")

def build_requirements(self):
if Version(self.version) >= "1.3.0":
# at least CMake 3.16
self.tool_requires("cmake/3.25.0")
if self.settings.arch in ("x86", "x86_64"):
self.tool_requires("nasm/2.15.05")

Expand All @@ -50,7 +54,6 @@ def generate(self):
tc.variables["BUILD_APPS"] = False
tc.variables["BUILD_DEC"] = self.options.build_decoder
tc.variables["BUILD_ENC"] = self.options.build_encoder
tc.variables["BUILD_SHARED_LIBS"] = self.options.shared
if self.settings.arch in ("x86", "x86_64"):
tc.variables["ENABLE_NASM"] = True
tc.generate()
Expand Down
4 changes: 4 additions & 0 deletions recipes/libsvtav1/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
versions:
"1.4.1":
folder: all
"1.3.0":
folder: all
"1.2.1":
folder: all