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

kivy / python-for-android / 14318575834

07 Apr 2025 08:13PM UTC coverage: 58.902% (-0.2%) from 59.111%
14318575834

Pull #3125

github

web-flow
Merge 2abaa319a into fbd525588
Pull Request #3125: [WIP] Add SDL3 bootstrap

1053 of 2397 branches covered (43.93%)

Branch coverage included in aggregate %.

77 of 146 new or added lines in 12 files covered. (52.74%)

188 existing lines in 2 files now uncovered.

4955 of 7803 relevant lines covered (63.5%)

3.16 hits per line

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

56.52
/pythonforandroid/recipes/sdl3_image/__init__.py
1
import os
5✔
2
import sh
5✔
3
from pythonforandroid.logger import shprint
5✔
4
from pythonforandroid.recipe import BootstrapNDKRecipe
5✔
5
from pythonforandroid.util import current_directory
5✔
6

7

8
class LibSDL3Image(BootstrapNDKRecipe):
5✔
9
    version = "3.2.4"
5✔
10
    url = "https://github.com/libsdl-org/SDL_image/releases/download/release-{version}/SDL3_image-{version}.tar.gz"
5✔
11
    dir_name = "SDL3_image"
5✔
12

13
    patches = ["enable-webp.patch"]
5✔
14

15
    def get_include_dirs(self, arch):
5✔
NEW
16
        return [
×
17
            os.path.join(
18
                self.ctx.bootstrap.build_dir, "jni", "SDL3_image", "include"
19
            ),
20
            os.path.join(
21
                self.ctx.bootstrap.build_dir,
22
                "jni",
23
                "SDL3_image",
24
                "include",
25
                "SDL3_image",
26
            ),
27
        ]
28

29
    def prebuild_arch(self, arch):
5✔
30
        # We do not have a folder for each arch on BootstrapNDKRecipe, so we
31
        # need to skip the external deps download if we already have done it.
NEW
32
        external_deps_dir = os.path.join(
×
33
            self.get_build_dir(arch.arch), "external"
34
        )
NEW
35
        if not os.path.exists(os.path.join(external_deps_dir, "libwebp")):
×
NEW
36
            with current_directory(external_deps_dir):
×
NEW
37
                shprint(sh.Command("./download.sh"))
×
NEW
38
        super().prebuild_arch(arch)
×
39

40

41
recipe = LibSDL3Image()
5✔
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