Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions pythonforandroid/recipes/boost/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand All @@ -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()