File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
pythonforandroid/recipes/libffi Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
from os .path import exists , join
2
2
from pythonforandroid .recipe import Recipe
3
3
from pythonforandroid .logger import info , shprint
4
- from pythonforandroid .util import current_directory
4
+ from pythonforandroid .util import current_directory , ensure_dir
5
5
from glob import glob
6
6
import sh
7
7
@@ -87,8 +87,10 @@ def build_arch(self, arch):
87
87
with current_directory (host_build ):
88
88
shprint (cc , * cflags , _env = env )
89
89
90
- shprint (sh .cp , '-t' , self .ctx .get_libs_dir (arch .arch ),
91
- join (host_build , '.libs' , 'libffi.so' ))
90
+ ensure_dir (self .ctx .get_libs_dir (arch .arch ))
91
+ shprint (sh .cp ,
92
+ join (host_build , '.libs' , 'libffi.so' ),
93
+ self .ctx .get_libs_dir (arch .arch ))
92
94
93
95
def get_include_dirs (self , arch ):
94
96
return [join (self .get_build_dir (arch .arch ), self .get_host (arch ),
You can’t perform that action at this time.
0 commit comments