From 02b2290b163b24e06b0b628809dbd3e929667913 Mon Sep 17 00:00:00 2001 From: Shaka Huang Date: Sun, 31 May 2020 18:42:13 +0800 Subject: [PATCH] Correct path of x86 libraries Signed-off-by: Shaka Huang --- build.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index 115bead2b..a4dccf8a2 100755 --- a/build.py +++ b/build.py @@ -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'))