Skip to content

Commit

Permalink
(conan-io#15250) libsvtav1: Added latest releases
Browse files Browse the repository at this point in the history
* libsvtav1: Fixed nitpick from previous PR

* libsvtav1: Added latest releases
  • Loading branch information
Esteve Soria authored and StellaSmith committed Feb 2, 2023
1 parent e9b2a9e commit 83a65bd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
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

0 comments on commit 83a65bd

Please sign in to comment.