Skip to content

Commit ce0a651

Browse files
authored
Merge pull request #1572 from JonasT/jpegfix
Fix APP_PLATFORM not properly passed in NDKRecipe
2 parents febdb3d + 8e62f5a commit ce0a651

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pythonforandroid/recipe.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,13 @@ def build_arch(self, arch, *extra_args):
668668

669669
env = self.get_recipe_env(arch)
670670
with current_directory(self.get_build_dir(arch.arch)):
671-
shprint(sh.ndk_build, 'V=1', 'APP_ABI=' + arch.arch, *extra_args, _env=env)
671+
shprint(
672+
sh.ndk_build,
673+
'V=1',
674+
'APP_PLATFORM=android-' + str(self.ctx.ndk_api),
675+
'APP_ABI=' + arch.arch,
676+
*extra_args, _env=env
677+
)
672678

673679

674680
class PythonRecipe(Recipe):

0 commit comments

Comments
 (0)