• 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

93.1
/pythonforandroid/recipes/libvpx/__init__.py
1
from pythonforandroid.recipe import Recipe
4✔
2
from pythonforandroid.toolchain import current_directory, shprint
4✔
3
from os.path import join, realpath
4✔
4
from multiprocessing import cpu_count
4✔
5
import sh
4✔
6

7

8
TARGETS = {
4✔
9
    'armeabi-v7a': 'armv7-android-gcc',
10
    'arm64-v8a': 'arm64-android-gcc',
11
    'x86': 'x86-android-gcc',
12
    'x86_64': 'x86_64-android-gcc',
13
}
14

15

16
class VPXRecipe(Recipe):
4✔
17
    version = '1.11.0'
4✔
18
    url = 'https://github.com/webmproject/libvpx/archive/v{version}.tar.gz'
4✔
19

20
    patches = [
4✔
21
        # See https://git.io/Jq50q
22
        join('patches', '0001-android-force-neon-runtime.patch'),
23
    ]
24

25
    def get_recipe_env(self, arch=None):
4✔
26
        env = super().get_recipe_env(arch)
4✔
27
        env['CXXFLAGS'] += f' -I{self.ctx.ndk.libcxx_include_dir}'
4✔
28
        return env
4✔
29

30
    def build_arch(self, arch):
4✔
31
        with current_directory(self.get_build_dir(arch.arch)):
4✔
32
            env = self.get_recipe_env(arch)
4✔
33
            flags = [
4✔
34
                '--target=' + TARGETS[arch.arch],
35
                '--enable-pic',
36
                '--enable-vp8',
37
                '--enable-vp9',
38
                '--enable-static',
39
                '--enable-small',
40
                '--disable-shared',
41
                '--disable-examples',
42
                '--disable-unit-tests',
43
                '--disable-tools',
44
                '--disable-docs',
45
                '--disable-install-docs',
46
                '--disable-realtime-only',
47
                f'--prefix={realpath(".")}',
48
            ]
49

50
            if arch.arch == 'armeabi-v7a':
4!
NEW
51
                flags.append('--disable-neon-asm')
×
52

53
            configure = sh.Command('./configure')
4✔
54
            shprint(configure, *flags, _env=env)
4✔
55
            shprint(sh.make, '-j', str(cpu_count()), _env=env)
4✔
56
            shprint(sh.make, 'install', _env=env)
4✔
57

58

59
recipe = VPXRecipe()
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

© 2026 Coveralls, Inc