|
3 | 3 | import packaging.version |
4 | 4 |
|
5 | 5 | import sh |
6 | | -from pythonforandroid.recipe import PyProjectRecipe |
| 6 | +from pythonforandroid.recipe import PyProjectRecipe, Recipe |
7 | 7 | from pythonforandroid.toolchain import current_directory, shprint |
8 | 8 |
|
9 | 9 |
|
@@ -33,7 +33,7 @@ class KivyRecipe(PyProjectRecipe): |
33 | 33 | url = 'https://github.com/kivy/kivy/archive/{version}.zip' |
34 | 34 | name = 'kivy' |
35 | 35 |
|
36 | | - depends = [('sdl2', 'sdl3'), 'pyjnius', 'setuptools', 'android'] |
| 36 | + depends = [('sdl2', 'sdl3'), 'pyjnius', 'setuptools', 'android', 'libthorvg'] |
37 | 37 | python_depends = ['certifi', 'chardet', 'idna', 'requests', 'urllib3', 'filetype'] |
38 | 38 | hostpython_prerequisites = ["cython>=0.29.1,<=3.0.12"] |
39 | 39 |
|
@@ -70,6 +70,13 @@ def get_recipe_env(self, arch, **kwargs): |
70 | 70 | if not is_kivy_less_than_3(self, arch): |
71 | 71 | env['KIVY_CROSS_PLATFORM'] = 'android' |
72 | 72 |
|
| 73 | + # thorvg headers |
| 74 | + env['KIVY_THORVG_LIB_DIR'] = self.ctx.get_libs_dir(arch.arch) |
| 75 | + env['KIVY_THORVG_INCLUDE_DIR'] = join( |
| 76 | + Recipe.get_recipe('libthorvg', self.ctx).get_include_dir(arch), |
| 77 | + 'thorvg-1' |
| 78 | + ) |
| 79 | + |
73 | 80 | if 'sdl2' in self.ctx.recipe_build_order: |
74 | 81 | env['USE_SDL2'] = '1' |
75 | 82 | env['KIVY_SPLIT_EXAMPLES'] = '1' |
|
0 commit comments