8000 boost recipe handle arch armeabi-v7a · loaf/python-for-android@c8223fd · GitHub
[go: up one dir, main page]

Skip to content

Commit c8223fd

Browse files
committed
boost recipe handle arch armeabi-v7a
1 parent 54afc33 commit c8223fd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pythonforandroid/recipes/boost/__init__.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
from os.path import join, exists
33
import sh
44

5-
# This recipe creates a custom toolchain and bootstraps Boost from source to build Boost.Build
6-
# including python bindings
5+
"""
6+
This recipe creates a custom toolchain and bootstraps Boost from source to build Boost.Build
7+
including python bindings
8+
"""
79
class BoostRecipe(Recipe):
810
version = '1.60.0'
911
# Don't forget to change the URL when changing the version
@@ -48,7 +50,7 @@ def build_arch(self, arch):
4850
join(self.ctx.get_libs_dir(arch.arch), 'libgnustl_shared.so'))
4951

5052
def select_build_arch(self, arch):
51-
return arch.arch.replace('eabi', '')
53+
return arch.arch.replace('eabi-v7a', '').replace('eabi', '')
5254

5355
def get_recipe_env(self, arch):
5456
env = super(BoostRecipe, self).get_recipe_env(arch)
@@ -62,4 +64,5 @@ def get_recipe_env(self, arch):
6264
env['TOOLCHAIN_PREFIX'] = join(env['CROSSHOME'], 'bin', env['CROSSHOST'])
6365
return env
6466

65-
recipe = BoostRecipe()
67+
68+
recipe = BoostRecipe()

0 commit comments

Comments
 (0)
0