• 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

54.55
/pythonforandroid/recipes/sdl3_ttf/__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 LibSDL3TTF(BootstrapNDKRecipe):
5✔
9
    version = "3.2.0"
5✔
10
    url = "https://github.com/libsdl-org/SDL_ttf/releases/download/release-{version}/SDL3_ttf-{version}.tar.gz"
5✔
11
    dir_name = "SDL3_ttf"
5✔
12

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

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

38

39
recipe = LibSDL3TTF()
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