[DO-981] qt package (!15)
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/15
This commit is contained in:
@@ -154,7 +154,7 @@ class FFMpegConan(ConanFile):
|
||||
"with_coreimage": True,
|
||||
"with_audiotoolbox": True,
|
||||
"with_videotoolbox": True,
|
||||
"with_programs": False,
|
||||
"with_programs": True,
|
||||
"with_libsvtav1": True,
|
||||
"with_libaom": True,
|
||||
"with_libdav1d": True,
|
||||
@@ -367,15 +367,15 @@ class FFMpegConan(ConanFile):
|
||||
|
||||
def build_requirements(self):
|
||||
if self.settings.arch in ("x86", "x86_64"):
|
||||
#if Version(self.version) >= "7.0":
|
||||
# if Version(self.version) >= "7.0":
|
||||
# INFO: FFmpeg 7.0+ added avcodec vvc_mc.asm which fails to assemble with yasm 1.3.0
|
||||
# src/libavcodec/x86/vvc/vvc_mc.asm:55: error: operand 1: expression is not simple or relocatable
|
||||
# self.tool_requires("nasm/2.16.01")
|
||||
#else:
|
||||
#self.tool_requires("yasm/1.3.0")
|
||||
self.tool_requires("nasm/[>=2.16.01]")
|
||||
if not self.conf.get("tools.gnu:pkg_config", check_type=str):
|
||||
self.tool_requires("pkgconf/[>=2.1.0]")
|
||||
# else:
|
||||
# self.tool_requires("yasm/1.3.0")
|
||||
if self.settings.os != "Linux" and not self.conf.get("tools.gnu:pkg_config", check_type=str):
|
||||
# See https://github.com/conan-io/conan-center-index/pull/26447#discussion_r1926682155
|
||||
self.tool_requires("pkgconf/[>=2.1 <3]")
|
||||
if self._settings_build.os == "Windows":
|
||||
self.win_bash = True
|
||||
if not self.conf.get("tools.microsoft.bash:path", check_type=str):
|
||||
@@ -643,11 +643,12 @@ class FFMpegConan(ConanFile):
|
||||
ranlib = buildenv_vars.get("RANLIB")
|
||||
if ranlib:
|
||||
args.append(f"--ranlib={unix_path(self, ranlib)}")
|
||||
# for some reason pkgconf from conan can't find .pc files on Linux in the context of ffmpeg configure...
|
||||
if self._settings_build.os != "Linux":
|
||||
pkg_config = self.conf.get("tools.gnu:pkg_config", default=buildenv_vars.get("PKG_CONFIG"), check_type=str)
|
||||
if pkg_config:
|
||||
args.append(f"--pkg-config={unix_path(self, pkg_config)}")
|
||||
pkg_config = self.conf.get("tools.gnu:pkg_config", default=buildenv_vars.get("PKG_CONFIG"), check_type=str)
|
||||
if pkg_config:
|
||||
# the ffmpeg configure script hardcodes the name of the executable,
|
||||
# unlike other tools that use the PKG_CONFIG environment variable
|
||||
# if we are aware the user has requested a specific pkg-config, we pass it to the configure script
|
||||
args.append(f"--pkg-config={unix_path(self, pkg_config)}")
|
||||
if is_msvc(self):
|
||||
args.append("--toolchain=msvc")
|
||||
if not check_min_vs(self, "190", raise_invalid=False):
|
||||
|
||||
Reference in New Issue
Block a user