Skip to content

Commit 4454ad9

Browse files
committed
[ndk19] Fix png recipe for NDK r19+
We remove `get_recipe_env` because we don't need anymore to specify the flags set in there. Note: As per new NDK r19+ build system implemented in p4a, the removed `flags` should be automatically set by the android's NDK
1 parent 5d7f5d0 commit 4454ad9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pythonforandroid/recipes/png/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@ def should_build(self, arch):
1616
join(self.get_build_dir(arch.arch), '.libs', 'libpng16.so')
1717
)
1818

19-
def get_recipe_env(self, arch=None):
20-
env = super(PngRecipe, self).get_recipe_env(arch)
21-
ndk_lib_dir = join(self.ctx.ndk_platform, 'usr', 'lib')
22-
ndk_include_dir = join(self.ctx.ndk_dir, 'sysroot', 'usr', 'include')
23-
env['CFLAGS'] += ' -I{}'.format(ndk_include_dir)
24-
env['LDFLAGS'] += ' -L{}'.format(ndk_lib_dir)
25-
env['LDFLAGS'] += ' --sysroot={}'.format(self.ctx.ndk_platform)
26-
return env
27-
2819
def build_arch(self, arch):
2920
super(PngRecipe, self).build_arch(arch)
3021
build_dir = self.get_build_dir(arch.arch)

0 commit comments

Comments
 (0)