Skip to content

Commit 87dac5f

Browse files
committed
Removed more hardcoded 'armeabi' archs
1 parent 1bec42f commit 87dac5f

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

pythonforandroid/toolchain.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ def get_env(self):
515515
# AND: This also hardcodes armeabi, which isn't even correct,
516516
# don't forget to fix!
517517
env['BUILDLIB_PATH'] = join(
518-
hostpython_recipe.get_build_dir('armeabi'),
518+
hostpython_recipe.get_build_dir(self.arch),
519519
'build', 'lib.linux-{}-2.7'.format(uname()[-1]))
520520

521521
env['PATH'] = environ['PATH']
@@ -1839,12 +1839,6 @@ def get_recipe_dir(self):
18391839

18401840
# Public Recipe API to be subclassed if needed
18411841

1842-
def ensure_build_container_dir(self):
1843-
info_main('Preparing build dir for {}'.format(self.name))
1844-
1845-
build_dir = self.get_build_container_dir('armeabi')
1846-
ensure_dir(build_dir)
1847-
18481842
def download_if_necessary(self):
18491843
info_main('Downloading {}'.format(self.name))
18501844
user_dir = environ.get('P4A_{}_DIR'.format(self.name.lower()))
@@ -2204,8 +2198,8 @@ class PythonRecipe(Recipe):
22042198
def hostpython_location(self):
22052199
if not self.call_hostpython_via_targetpython:
22062200
return join(
2207-
Recipe.get_recipe('hostpython2', self.ctx).get_build_dir(
2208-
'armeabi'), 'hostpython')
2201+
Recipe.get_recipe('hostpython2', self.ctx).get_build_dir(),
2202+
'hostpython')
22092203
return self.ctx.hostpython
22102204

22112205
def should_build(self):
@@ -2495,7 +2489,7 @@ def biglink(ctx, arch):
24952489
arch = ArchARM(ctx)
24962490
env = ArchARM(ctx).get_env()
24972491
env['LDFLAGS'] = env['LDFLAGS'] + ' -L{}'.format(
2498-
join(ctx.bootstrap.build_dir, 'obj', 'local', 'armeabi'))
2492+
join(ctx.bootstrap.build_dir, 'obj', 'local', arch.arch))
24992493

25002494
if not len(glob.glob(join(obj_dir, '*'))):
25012495
info('There seem to be no libraries to biglink, skipping.')
@@ -2507,7 +2501,7 @@ def biglink(ctx, arch):
25072501
join(ctx.get_libs_dir(arch.arch), 'libpymodules.so'),
25082502
obj_dir.split(' '),
25092503
extra_link_dirs=[join(ctx.bootstrap.build_dir,
2510-
'obj', 'local', 'armeabi')],
2504+
'obj', 'local', arch.arch)],
25112505
env=env)
25122506

25132507

0 commit comments

Comments
 (0)