2
2
from conan import ConanFile
3
3
from conan .tools .cmake import cmake_layout , CMakeToolchain , CMakeDeps , CMake
4
4
from conan .tools .files import copy , get , rmdir
5
+ from conan .tools .scm import Version
5
6
6
7
required_conan_version = ">=1.53.0"
7
8
@@ -10,7 +11,7 @@ class SVTAV1Conan(ConanFile):
10
11
name = "libsvtav1"
11
12
license = "BSD-3-Clause"
12
13
description = "An AV1-compliant software encoder/decoder library"
13
- topics = "av1" , "codec" , "encoder" , "ffmpeg " , "video"
14
+ topics = "av1" , "codec" , "encoder" , "decoder " , "video"
14
15
homepage = "https://gitlab.com/AOMediaCodec/SVT-AV1"
15
16
url = "https://github.com/conan-io/conan-center-index"
16
17
settings = "os" , "arch" , "compiler" , "build_type"
@@ -36,6 +37,9 @@ def configure(self):
36
37
self .options .rm_safe ("fPIC" )
37
38
38
39
def build_requirements (self ):
40
+ if Version (self .version ) >= "1.3.0" :
41
+ # at least CMake 3.16
42
+ self .tool_requires ("cmake/3.25.0" )
39
43
if self .settings .arch in ("x86" , "x86_64" ):
40
44
self .tool_requires ("nasm/2.15.05" )
41
45
@@ -50,7 +54,6 @@ def generate(self):
50
54
tc .variables ["BUILD_APPS" ] = False
51
55
tc .variables ["BUILD_DEC" ] = self .options .build_decoder
52
56
tc .variables ["BUILD_ENC" ] = self .options .build_encoder
53
- tc .variables ["BUILD_SHARED_LIBS" ] = self .options .shared
54
57
if self .settings .arch in ("x86" , "x86_64" ):
55
58
tc .variables ["ENABLE_NASM" ] = True
56
59
tc .generate ()
0 commit comments