• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kivy / python-for-android / 3770697291

pending completion
3770697291

push

github

GitHub
Merge pull request #2718 from kivy/release-2022.12.20

877 of 2011 branches covered (43.61%)

Branch coverage included in aggregate %.

38 of 86 new or added lines in 16 files covered. (44.19%)

10 existing lines in 4 files now uncovered.

4515 of 6886 relevant lines covered (65.57%)

2.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

38.46
/pythonforandroid/recipes/ffpyplayer/__init__.py
1
from pythonforandroid.recipe import CythonRecipe
4✔
2
from pythonforandroid.toolchain import Recipe
4✔
3
from os.path import join
4✔
4

5

6
class FFPyPlayerRecipe(CythonRecipe):
4✔
7
    version = 'v4.3.2'
4✔
8
    url = 'https://github.com/matham/ffpyplayer/archive/{version}.zip'
4✔
9
    depends = ['python3', 'sdl2', 'ffmpeg']
4✔
10
    opt_depends = ['openssl', 'ffpyplayer_codecs']
4✔
11

12
    def get_recipe_env(self, arch, with_flags_in_cc=True):
4✔
13
        env = super().get_recipe_env(arch)
×
14

15
        build_dir = Recipe.get_recipe('ffmpeg', self.ctx).get_build_dir(arch.arch)
×
16
        env["FFMPEG_INCLUDE_DIR"] = join(build_dir, "include")
×
17
        env["FFMPEG_LIB_DIR"] = join(build_dir, "lib")
×
18

19
        env["SDL_INCLUDE_DIR"] = join(self.ctx.bootstrap.build_dir, 'jni', 'SDL', 'include')
×
20
        env["SDL_LIB_DIR"] = join(self.ctx.bootstrap.build_dir, 'libs', arch.arch)
×
21

22
        env["USE_SDL2_MIXER"] = '1'
×
23

24
        # ffpyplayer does not allow to pass more than one include dir for sdl2_mixer (and ATM is
25
        # not needed), so we only pass the first one.
NEW
26
        sdl2_mixer_recipe = self.get_recipe('sdl2_mixer', self.ctx)
×
NEW
27
        env["SDL2_MIXER_INCLUDE_DIR"] = sdl2_mixer_recipe.get_include_dirs(arch)[0]
×
28

29
        # NDKPLATFORM and LIBLINK are our switches for detecting Android platform, so can't be empty
30
        # FIXME: We may want to introduce a cleaner approach to this?
31
        env['NDKPLATFORM'] = "NOTNONE"
×
32
        env['LIBLINK'] = 'NOTNONE'
×
33

34
        # ffmpeg recipe enables GPL components only if ffpyplayer_codecs recipe used.
35
        # Therefor we need to disable libpostproc if skipped.
36
        if 'ffpyplayer_codecs' not in self.ctx.recipe_build_order:
×
37
            env["CONFIG_POSTPROC"] = '0'
×
38

39
        return env
×
40

41

42
recipe = FFPyPlayerRecipe()
4✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc