Correct path of x86 libraries

Signed-off-by: Shaka Huang <shakalaca@gmail.com>
This commit is contained in:
Shaka Huang 2020-05-31 18:42:13 +08:00 committed by John Wu
parent f8a814a588
commit 02b2290b16

View File

@ -560,10 +560,11 @@ def setup_ndk(args):
rm_rf(op.join(ndk_path, 'sysroot'))
header('* Replacing API-16 static libs')
for arch in ['arm', 'i686']:
for target in ['arm-linux-androideabi', 'i686-linux-android']:
arch = target.split('-')[0]
lib_dir = op.join(
ndk_path, 'toolchains', 'llvm', 'prebuilt', f'{os_name}-x86_64',
'sysroot', 'usr', 'lib', f'{arch}-linux-androideabi', '16')
'sysroot', 'usr', 'lib', f'{target}', '16')
src_dir = op.join('tools', 'ndk-bins', arch)
# Remove stupid macOS crap
rm(op.join(src_dir, '.DS_Store'))