Skip to content
Draft
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
21 changes: 8 additions & 13 deletions pythonforandroid/recipes/av/__init__.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
from pythonforandroid.toolchain import Recipe
from pythonforandroid.recipe import CythonRecipe
from pythonforandroid.recipe import PyProjectRecipe


class PyAVRecipe(CythonRecipe):
class PyAVRecipe(PyProjectRecipe):

name = "av"
version = "13.1.0"
version = "17.0.0"
url = "https://github.com/PyAV-Org/PyAV/archive/v{version}.zip"

depends = ["python3", "cython", "ffmpeg", "av_codecs"]
opt_depends = ["openssl"]
patches = ['patches/compilation_syntax_errors.patch']
depends = ["python3", "ffmpeg", "av_codecs", "openssl"]
hostpython_prerequisites = ["cython>=3.1.0"]

def get_recipe_env(self, arch, with_flags_in_cc=True):
env = super().get_recipe_env(arch)

build_dir = Recipe.get_recipe("ffmpeg", self.ctx).get_build_dir(
arch.arch
)
self.setup_extra_args = ["--ffmpeg-dir={}".format(build_dir)]

build_dir = Recipe.get_recipe("ffmpeg", self.ctx).get_build_dir(arch.arch)
env["CFLAGS"] += f" -I{build_dir}"
self.extra_build_args += ["--config-setting=--ffmpeg-dir={}".format(build_dir)]
return env


Expand Down

This file was deleted.

Loading