-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconanfile.py
26 lines (21 loc) · 860 Bytes
/
conanfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from conan import ConanFile
required_conan_version = ">=1.60.0"
class ffmpeg(ConanFile):
settings = 'os', 'compiler', 'build_type', 'arch'
requires = 'ffmpeg/6.1.1'
tool_requires = 'pkgconf/2.1.0'
generators = 'MesonToolchain', 'PkgConfigDeps'
def configure(self):
self.options['ffmpeg'].disable_all_devices = True
# Linux and macOS
if self.settings.os != 'Windows':
self.options['ffmpeg'].fPIC = True
# Linux only
if self.settings.os == 'Linux':
self.options['ffmpeg'].with_libalsa = False
self.options['ffmpeg'].with_pulse = False
self.options['ffmpeg'].with_vulkan = False
self.options['ffmpeg'].with_xcb = False
self.options['ffmpeg'].with_vaapi = False
self.options['ffmpeg'].with_vdpau = False
self.options['ffmpeg'].with_xlib = False