forked from kivy/python-for-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
25 lines (16 loc) · 650 Bytes
/
Copy path__init__.py
File metadata and controls
25 lines (16 loc) · 650 Bytes
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
from pythonforandroid.toolchain import Recipe
from pythonforandroid.recipe import CythonRecipe
class PyAVRecipe(CythonRecipe):
name = "av"
version = "10.0.0"
url = "https://github.com/PyAV-Org/PyAV/archive/v{version}.zip"
depends = ["python3", "cython", "ffmpeg", "av_codecs"]
opt_depends = ["openssl"]
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)]
return env
recipe = PyAVRecipe()