File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
pythonforandroid/recipes/png Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1
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
2
8
3
9
4
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 ()
You can’t perform that action at this time.
0 commit comments