3
3
available via '-lglob' LDFLAG
4
4
"""
5
5
from os .path import exists , join
6
- from pythonforandroid .recipe import CompiledComponentsPythonRecipe
6
+ from pythonforandroid .recipe import Recipe
7
7
from pythonforandroid .toolchain import current_directory
8
8
from pythonforandroid .logger import info , shprint
9
9
import sh
10
10
11
11
12
- class LibGlobRecipe (CompiledComponentsPythonRecipe ):
12
+ class LibGlobRecipe (Recipe ):
13
13
"""Make a glob.h and glob.so for the python_install_dir()"""
14
14
version = '0.0.1'
15
15
url = None
@@ -20,6 +20,7 @@ class LibGlobRecipe(CompiledComponentsPythonRecipe):
20
20
# https://raw.githubusercontent.com/white-gecko/TokyoCabinet/master/glob.c
21
21
# and pushed in via patch
22
22
name = 'libglob'
23
+ built_libraries = {'libglob.so' : '.' }
23
24
24
25
depends = [('hostpython2' , 'hostpython3' )]
25
26
patches = ['glob.patch' ]
@@ -35,7 +36,7 @@ def prebuild_arch(self, arch):
35
36
info ("creating {}" .format (path ))
36
37
shprint (sh .mkdir , '-p' , path )
37
38
38
- def build_arch (self , arch ):
39
+ def do_build_libs (self , arch ):
39
40
"""simple shared compile"""
40
41
env = self .get_recipe_env (arch , with_flags_in_cc = False )
41
42
for path in (
@@ -60,7 +61,6 @@ def build_arch(self, arch):
60
61
cflags .extend (['-shared' , '-I.' , 'glob.o' , '-o' , 'libglob.so' ])
61
62
cflags .extend (env ['LDFLAGS' ].split ())
62
63
shprint (cc , * cflags , _env = env )
63
- shprint (sh .cp , 'libglob.so' , join (self .ctx .libs_dir , arch .arch ))
64
64
65
65
66
66
recipe = LibGlobRecipe ()
0 commit comments