We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78d9c87 commit f156c5bCopy full SHA for f156c5b
1 file changed
pythonforandroid/recipes/png/__init__.py
@@ -1,4 +1,10 @@
1
from pythonforandroid.recipe import NDKRecipe
2
+from pythonforandroid.util import current_directory
3
+from pythonforandroid.logger import shprint
4
+
5
+import sh
6
7
+from os.path import join
8
9
10
class PngRecipe(NDKRecipe):
@@ -15,5 +21,22 @@ class PngRecipe(NDKRecipe):
15
21
16
22
patches = ['build_shared_library.patch']
17
23
24
+ generated_libraries = ['libpng.so']
25
26
+ def build_arch(self, arch):
27
+ super(PngRecipe, self).build_arch(arch)
28
29
+ with current_directory(self.get_build_dir(arch.arch)):
30
+ shprint(
31
+ sh.cp,
32
+ join(
33
+ self.get_build_dir(arch.arch),
34
+ 'libs',
35
+ arch.arch,
36
+ 'libpng.so'),
37
+ join(self.ctx.get_libs_dir(arch.arch), 'libpng16.so'))
38
39
40
+ pass
18
41
19
42
recipe = PngRecipe()
0 commit comments