File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
pythonforandroid/recipes/libsecp256k1 Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- from pythonforandroid .toolchain import shprint , current_directory
1
+ from pythonforandroid .logger import shprint
2
+ from pythonforandroid .util import current_directory
2
3
from pythonforandroid .recipe import Recipe
3
4
from multiprocessing import cpu_count
4
5
from os .path import exists
7
8
8
9
class LibSecp256k1Recipe (Recipe ):
9
10
11
+ built_libraries = {'libsecp256k1.so' : '.libs' }
12
+
10
13
url = 'https://github.com/bitcoin-core/secp256k1/archive/master.zip'
11
14
12
- def build_arch (self , arch ):
13
- super (LibSecp256k1Recipe , self ).build_arch (arch )
15
+ def do_build_libs (self , arch ):
14
16
env = self .get_recipe_env (arch )
15
17
with current_directory (self .get_build_dir (arch .arch )):
16
18
if not exists ('configure' ):
@@ -25,8 +27,6 @@ def build_arch(self, arch):
25
27
'--enable-module-ecdh' ,
26
28
_env = env )
27
29
shprint (sh .make , '-j' + str (cpu_count ()), _env = env )
28
- libs = ['.libs/libsecp256k1.so' ]
29
- self .install_libs (arch , * libs )
30
30
31
31
32
32
recipe = LibSecp256k1Recipe ()
You can’t perform that action at this time.
0 commit comments