-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pyav recipe * flake8 fix * Update pythonforandroid/recipes/av/__init__.py Co-authored-by: Andre Miras <AndreMiras@users.noreply.github.com> --------- Co-authored-by: Andre Miras <AndreMiras@users.noreply.github.com>
- Loading branch information
1 parent
2b15b02
commit 10f0f29
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from pythonforandroid.toolchain import Recipe | ||
|
||
|
||
class PyAVCodecsRecipe(Recipe): | ||
depends = ["libx264", "libshine", "libvpx"] | ||
|
||
def build_arch(self, arch): | ||
pass | ||
|
||
|
||
recipe = PyAVCodecsRecipe() |