From c8223fde2a7740adfa1965b536ef3b06c389edf5 Mon Sep 17 00:00:00 2001 From: Paul Brussee Date: Wed, 27 Apr 2016 23:30:54 +0200 Subject: [PATCH] boost recipe handle arch armeabi-v7a --- pythonforandroid/recipes/boost/__init__.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pythonforandroid/recipes/boost/__init__.py b/pythonforandroid/recipes/boost/__init__.py index bbd10bffb3..671a1f247b 100644 --- a/pythonforandroid/recipes/boost/__init__.py +++ b/pythonforandroid/recipes/boost/__init__.py @@ -2,8 +2,10 @@ from os.path import join, exists import sh -# This recipe creates a custom toolchain and bootstraps Boost from source to build Boost.Build -# including python bindings +""" +This recipe creates a custom toolchain and bootstraps Boost from source to build Boost.Build +including python bindings +""" class BoostRecipe(Recipe): version = '1.60.0' # Don't forget to change the URL when changing the version @@ -48,7 +50,7 @@ def build_arch(self, arch): join(self.ctx.get_libs_dir(arch.arch), 'libgnustl_shared.so')) def select_build_arch(self, arch): - return arch.arch.replace('eabi', '') + return arch.arch.replace('eabi-v7a', '').replace('eabi', '') def get_recipe_env(self, arch): env = super(BoostRecipe, self).get_recipe_env(arch) @@ -62,4 +64,5 @@ def get_recipe_env(self, arch): env['TOOLCHAIN_PREFIX'] = join(env['CROSSHOME'], 'bin', env['CROSSHOST']) return env -recipe = BoostRecipe() + +recipe = BoostRecipe() \ No newline at end of file